aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--driver.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e78160a4..da21d29e 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,9 @@ bugs --
* Correction to length-extraction code for servers that return (nnn octets).
+* Correction to RF822 continuation code so it doesn't eat leading blank-led
+ lines in the text.
+
There are 211 people on the fetchmail-friends list.
------------------------------------------------------------------------------
diff --git a/driver.c b/driver.c
index aad43332..fe8a0d70 100644
--- a/driver.c
+++ b/driver.c
@@ -444,6 +444,8 @@ char *realname; /* real name of host */
/* leave extra room for reply_hack to play with */
line = realloc(line, strlen(line) + strlen(buf) + HOSTLEN + 1);
strcat(line, buf);
+ if (line[0] == '\r' && line[1] == '\n')
+ break;
} while
/* we may need to grab RFC822 continuations */
((ch = SockPeek(sockfp)) == ' ' || ch == '\t');