aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-11 01:49:02 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-11 01:49:02 +0000
commit57382ccdb69c04128dcbbe9e510e579ab2edde25 (patch)
treeb35cf4d9a676dc568baa1824a2e296040ccf0aeb
parent0bb6bc63b4a3e6ab618541c977fcc137470af655 (diff)
downloadfetchmail-57382ccdb69c04128dcbbe9e510e579ab2edde25.tar.gz
fetchmail-57382ccdb69c04128dcbbe9e510e579ab2edde25.tar.bz2
fetchmail-57382ccdb69c04128dcbbe9e510e579ab2edde25.zip
Avoid trashing lines beginning with dots in IMAP.
svn path=/trunk/; revision=294
-rw-r--r--driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 892e9690..a7652b47 100644
--- a/driver.c
+++ b/driver.c
@@ -308,9 +308,9 @@ struct hostrec *queryctl;
bufp = buf;
if (buf[0] == '\0' || buf[0] == '\r' || buf[0] == '\n')
inheaders = 0;
- if (*bufp == '.') {
+ if (delimited && *bufp == '.') {
bufp++;
- if (delimited && *bufp == 0)
+ if (*bufp == 0)
break; /* end of message */
}
strcat(bufp, "\n");