diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-05-17 20:52:31 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-05-17 20:52:31 +0000 |
commit | 88b00ff0ca283e8c2e80587a1f05e01b922c9b89 (patch) | |
tree | afe2d63bbf0a8d4d3340a0b7141b20f5a7d88668 /imap.c | |
parent | a740d71a69fb785d63d498f99fa3a9c5f607c7fb (diff) | |
download | fetchmail-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.c | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -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; |