From 57382ccdb69c04128dcbbe9e510e579ab2edde25 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 11 Oct 1996 01:49:02 +0000 Subject: Avoid trashing lines beginning with dots in IMAP. svn path=/trunk/; revision=294 --- driver.c | 4 ++-- 1 file 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"); -- cgit v1.2.3