57 lines
2.3 KiB
Diff
57 lines
2.3 KiB
Diff
|
diff -Naur old/src/fields.c new/src/fields.c
|
||
|
--- old/src/fields.c 2001-09-11 08:57:08.000000000 +0400
|
||
|
+++ new/src/fields.c 2019-07-01 14:37:35.790000000 +0300
|
||
|
@@ -110,16 +110,16 @@
|
||
|
/* try and append one valid field to rdheader from stdin */
|
||
|
int readhead P((void))
|
||
|
{ int idlen;
|
||
|
- getline();
|
||
|
+ procmail_getline();
|
||
|
if((idlen=breakfield(buf,buffilled))<=0) /* not the start of a valid field */
|
||
|
return 0;
|
||
|
if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */
|
||
|
{ if(rdheader)
|
||
|
return 0; /* the From_ line was a fake! */
|
||
|
- for(;buflast=='>';getline()); /* gather continued >From_ lines */
|
||
|
+ for(;buflast=='>';procmail_getline()); /* gather continued >From_ lines */
|
||
|
}
|
||
|
else
|
||
|
- for(;;getline()) /* get the rest of the continued field */
|
||
|
+ for(;;procmail_getline()) /* get the rest of the continued field */
|
||
|
{ switch(buflast) /* will this line be continued? */
|
||
|
{ case ' ':case '\t': /* yep, it sure is */
|
||
|
continue;
|
||
|
diff -Naur old/src/formail.c new/src/formail.c
|
||
|
--- old/src/formail.c 2001-09-11 08:57:32.000000000 +0400
|
||
|
+++ new/src/formail.c 2019-07-01 14:38:58.500000000 +0300
|
||
|
@@ -819,7 +819,7 @@
|
||
|
{ if(split) /* gobble up the next start separator */
|
||
|
{ buffilled=0;
|
||
|
#ifdef sMAILBOX_SEPARATOR
|
||
|
- getline();buffilled=0; /* but only if it's defined */
|
||
|
+ procmail_getline();buffilled=0; /* but only if it's defined */
|
||
|
#endif
|
||
|
if(buflast!=EOF) /* if any */
|
||
|
goto splitit;
|
||
|
diff -Naur old/src/formisc.c new/src/formisc.c
|
||
|
--- old/src/formisc.c 2001-06-29 06:20:45.000000000 +0400
|
||
|
+++ new/src/formisc.c 2019-07-01 14:39:59.460000000 +0300
|
||
|
@@ -115,7 +115,7 @@
|
||
|
buf[buffilled++]=c;
|
||
|
}
|
||
|
|
||
|
-int getline P((void)) /* read a newline-terminated line */
|
||
|
+int procmail_getline P((void)) /* read a newline-terminated line */
|
||
|
{ if(buflast==EOF) /* at the end of our Latin already? */
|
||
|
{ loadchar('\n'); /* fake empty line */
|
||
|
return EOF; /* spread the word */
|
||
|
diff -Naur old/src/formisc.h new/src/formisc.h
|
||
|
--- old/src/formisc.h 1999-04-19 10:42:15.000000000 +0400
|
||
|
+++ new/src/formisc.h 2019-07-01 14:40:31.680000000 +0300
|
||
|
@@ -17,4 +17,4 @@
|
||
|
char*
|
||
|
skipwords P((char*start));
|
||
|
int
|
||
|
- getline P((void));
|
||
|
+ procmail_getline P((void));
|