diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-27 13:41:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-27 13:41:01 +0000 |
commit | 30b707bc3633d8442a05a892446dca65d35d76d7 (patch) | |
tree | 70677532a6237b8092f51fbd7c3767cb1c13d780 /imap.c | |
parent | c2c96e332ee43b86cf3393a195af822f2f77bf05 (diff) | |
download | fetchmail-30b707bc3633d8442a05a892446dca65d35d76d7.tar.gz fetchmail-30b707bc3633d8442a05a892446dca65d35d76d7.tar.bz2 fetchmail-30b707bc3633d8442a05a892446dca65d35d76d7.zip |
Various minor bug fixes.
svn path=/trunk/; revision=1530
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -470,7 +470,15 @@ static int imap_getsizes(int sock, int count, int *sizes) { char buf [POPBUFSIZE+1]; - gen_send(sock, "FETCH 1:%d RFC822.SIZE", count); + /* + * Some servers (as in, PMDF5.1-9.1 under OpenVMS 6.1) + * won't accept 1:1 as valid set syntax. Some implementors + * should be taken out and shot for excessive anality. + */ + if (count == 1) + gen_send(sock, "FETCH 1 RFC822.SIZE", count); + else + gen_send(sock, "FETCH 1:%d RFC822.SIZE", count); for (;;) { int num, size, ok; |