aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-05-17 20:52:31 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-05-17 20:52:31 +0000
commit88b00ff0ca283e8c2e80587a1f05e01b922c9b89 (patch)
treeafe2d63bbf0a8d4d3340a0b7141b20f5a7d88668 /imap.c
parenta740d71a69fb785d63d498f99fa3a9c5f607c7fb (diff)
downloadfetchmail-88b00ff0ca283e8c2e80587a1f05e01b922c9b89.tar.gz
fetchmail-88b00ff0ca283e8c2e80587a1f05e01b922c9b89.tar.bz2
fetchmail-88b00ff0ca283e8c2e80587a1f05e01b922c9b89.zip
Another step towards cleaner code.
svn path=/trunk/; revision=1017
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/imap.c b/imap.c
index 8e675b61..b887f94a 100644
--- a/imap.c
+++ b/imap.c
@@ -194,16 +194,11 @@ static int imap_fetch_headers(int sock, struct query *ctl, int number, int *lenp
/* expunges change the fetch numbers */
number -= deletecount;
- switch (imap_version)
- {
- case IMAP4rev1: /* RFC 2060 */
- gen_send(sock, "FETCH %d BODY[HEADER]", number);
- break;
-
- default: /* RFC 1176 */
- gen_send(sock, "FETCH %d RFC822.HEADER", number);
- break;
- }
+ /*
+ * This is blessed by RFC 1176, RFC1730, RFC2060.
+ * it should *not* set the \Seen flag.
+ */
+ gen_send(sock, "FETCH %d RFC822.HEADER", number);
/* looking for FETCH response */
do {
@@ -221,7 +216,7 @@ static int imap_fetch_headers(int sock, struct query *ctl, int number, int *lenp
}
static int imap_fetch_body(int sock, struct query *ctl, int number, int *lenp)
-/* request nth message */
+/* request headers of nth message */
{
char buf [POPBUFSIZE+1];
int num;