aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-10-27 13:41:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-10-27 13:41:01 +0000
commit30b707bc3633d8442a05a892446dca65d35d76d7 (patch)
tree70677532a6237b8092f51fbd7c3767cb1c13d780 /imap.c
parentc2c96e332ee43b86cf3393a195af822f2f77bf05 (diff)
downloadfetchmail-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.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index 873aaffc..4729186e 100644
--- a/imap.c
+++ b/imap.c
@@ -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;