From 80f04b2bec3236310a19ea17a3a3462f5d5f8de9 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 18 Sep 1997 02:42:03 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=1364 --- NEWS | 3 ++- driver.c | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 2b312850..e038ee7d 100644 --- a/NEWS +++ b/NEWS @@ -19,8 +19,9 @@ fetchmail-4.2.2 () * ETRN mode no longer tries to flush queue for "localhost". * Introduced new DNS error return 11 to indicate DNS failure at startup. * More portation tweaks for unusual Unixes. +* Make sure any X-Fetchmail-Error: line is properly terminated. -There are 286 people on the fetchmail-friends list. +There are 287 people on the fetchmail-friends list. fetchmail-4.2.1 (Sun Sep 14 16:31:58 EDT 1997) * Type and inclusion changes to eliminate warnings on weird Unixes. diff --git a/driver.c b/driver.c index 56046e16..fc6f23c4 100644 --- a/driver.c +++ b/driver.c @@ -447,7 +447,7 @@ static RETSIGTYPE (*sigchld)(); static int sizeticker; static int stuffline(struct query *ctl, char *buf) -/* ship a line to the given control block's SMTP server */ +/* ship a line to the given control block's output sink (SMTP server or MDA) */ { int n; @@ -1127,6 +1127,8 @@ int num; /* index of message */ } + strcat(errmsg, "\n"); + /* ship out the error line */ if (sinkfp) stuffline(ctl, errmsg); -- cgit v1.2.3