From 30b707bc3633d8442a05a892446dca65d35d76d7 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 27 Oct 1997 13:41:01 +0000 Subject: Various minor bug fixes. svn path=/trunk/; revision=1530 --- imap.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'imap.c') 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; -- cgit v1.2.3