From cacba6b362fb7907d1bb2d529e95504b27a00d25 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Mar 1998 19:43:14 +0000 Subject: Use TOP instead of RETR for POP3 retrieval. svn path=/trunk/; revision=1727 --- driver.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 6963ea80..5257819a 100644 --- a/driver.c +++ b/driver.c @@ -2029,11 +2029,13 @@ const struct method *proto; /* protocol method table */ flag force_retrieval; /* - * What forces this code is that in POP3 and - * IMAP2BIS you can't fetch a message without - * having it marked `seen'. In IMAP4, on the - * other hand, you can (peek_capable is set to - * convey this). + * What forces this code is that in POP2 and + * IMAP2bis you can't fetch a message without + * having it marked `seen'. In POP3 and IMAP4, on the + * other hand, you can (peek_capable is set by + * each driver module to convey this; it's not a + * method constant because of the difference between + * IMAP2bis and IMAP4). * * The result of being unable to peek is that if there's * any kind of transient error (DNS lookup failure, or @@ -2477,7 +2479,7 @@ int size; /* length of buffer */ if (buf[strlen(buf)-1] == '\n') buf[strlen(buf)-1] = '\0'; if (buf[strlen(buf)-1] == '\r') - buf[strlen(buf)-1] = '\r'; + buf[strlen(buf)-1] = '\0'; if (outlevel == O_VERBOSE) error(0, 0, "%s< %s", protocol->name, buf); phase = oldphase; -- cgit v1.2.3