From 7db729877dd255029ce846414ddab872ac8dc146 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 23 Sep 1999 12:42:38 +0000 Subject: Workaround for GroupWise. svn path=/trunk/; revision=2586 --- driver.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index bbcaa768..4c9a05fc 100644 --- a/driver.c +++ b/driver.c @@ -1962,6 +1962,15 @@ const int maxfetch; /* maximum number of messages to fetch */ { if ((ok=(protocol->fetch_body)(mailserver_socket,ctl,num,&len))) goto cleanUp; + /* + * Work around a bug in Novell's + * broken GroupWise IMAP server; + * its body FETCH response is missing + * the required length for the data + * string. This violates RFC2060. + */ + if (len == -1) + len = msgsizes[num-1] - msglen; if (outlevel > O_SILENT && !wholesize) report_complete(stdout, _(" (%d body octets) "), len); -- cgit v1.2.3