patch-src_fields_c 1.0 KB

1234567891011121314151617181920212223
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- procmail-3.22.orig/src/fields.c 2001-09-11 06:57:08.000000000 +0200
  3. +++ procmail-3.22/src/fields.c 2009-06-02 00:23:11.000000000 +0200
  4. @@ -110,16 +110,16 @@ void dispfield(p)register const struct f
  5. /* try and append one valid field to rdheader from stdin */
  6. int readhead P((void))
  7. { int idlen;
  8. - getline();
  9. + getline2();
  10. if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
  11. return 0;
  12. if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */
  13. { if(rdheader)
  14. return 0; /* the From_ line was a fake! */
  15. - for(;buflast=='>';getline()); /* gather continued >From_ lines */
  16. + for(;buflast=='>';getline2()); /* gather continued >From_ lines */
  17. }
  18. else
  19. - for(;;getline()) /* get the rest of the continued field */
  20. + for(;;getline2()) /* get the rest of the continued field */
  21. { switch(buflast) /* will this line be continued? */
  22. { case ' ':case '\t': /* yep, it sure is */
  23. continue;