Lines 108-127
Link Here
|
108 |
extractfield(p); |
108 |
extractfield(p); |
109 |
} |
109 |
} |
110 |
/* try and append one valid field to rdheader from stdin */ |
110 |
/* try and append one valid field to rdheader from stdin */ |
111 |
int readhead P((void)) |
111 |
int readhead P((void)) |
112 |
{ int idlen; |
112 |
{ int idlen; |
113 |
getline(); |
113 |
procmail_getline(); |
114 |
if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */ |
114 |
if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */ |
115 |
return 0; |
115 |
return 0; |
116 |
if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */ |
116 |
if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */ |
117 |
{ if(rdheader) |
117 |
{ if(rdheader) |
118 |
return 0; /* the From_ line was a fake! */ |
118 |
return 0; /* the From_ line was a fake! */ |
119 |
for(;buflast=='>';getline()); /* gather continued >From_ lines */ |
119 |
for(;buflast=='>';procmail_getline()); /* gather continued >From_ lines */ |
120 |
} |
120 |
} |
121 |
else |
121 |
else |
122 |
for(;;getline()) /* get the rest of the continued field */ |
122 |
for(;;procmail_getline()) /* get the rest of the continued field */ |
123 |
{ switch(buflast) /* will this line be continued? */ |
123 |
{ switch(buflast) /* will this line be continued? */ |
124 |
{ case ' ':case '\t': /* yep, it sure is */ |
124 |
{ case ' ':case '\t': /* yep, it sure is */ |
125 |
continue; |
125 |
continue; |
126 |
} |
126 |
} |
127 |
break; |
127 |
break; |