aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-14 19:28:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-14 19:28:01 +0000
commit8fd5a218113c39471797e537541bfc6227a37885 (patch)
treeec2d194a628982444723a72c00507728e468e242 /driver.c
parent6e5d497bfda191ecb53cb05cba282b3c70931f5b (diff)
downloadfetchmail-8fd5a218113c39471797e537541bfc6227a37885.tar.gz
fetchmail-8fd5a218113c39471797e537541bfc6227a37885.tar.bz2
fetchmail-8fd5a218113c39471797e537541bfc6227a37885.zip
Works with Microsoft Exchange.
svn path=/trunk/; revision=1337
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 7a8bf2d9..80a5d3f0 100644
--- a/driver.c
+++ b/driver.c
@@ -435,6 +435,9 @@ static int smtp_open(struct query *ctl)
}
}
+ if (outlevel >= O_VERBOSE && ctl->smtp_socket != -1)
+ error(0, 0, "forwarding to SMTP port on %s", ctl->smtphost);
+
return(ctl->smtp_socket);
}
@@ -526,7 +529,7 @@ int num; /* index of message */
headers = received_for = NULL;
from_offs = ctt_offs = env_offs = -1;
oldlen = 0;
- for (remaining = len; remaining > 0; remaining -= linelen)
+ for (remaining = len; remaining > 0 || protocol->delimited; remaining -= linelen)
{
char *line;