aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-09-23 12:42:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-09-23 12:42:38 +0000
commit7db729877dd255029ce846414ddab872ac8dc146 (patch)
tree2b25a47b5823658788bf2990688802eb5f9d9053 /driver.c
parent33d9765dd84fd3846b833202aa495c7725e88662 (diff)
downloadfetchmail-7db729877dd255029ce846414ddab872ac8dc146.tar.gz
fetchmail-7db729877dd255029ce846414ddab872ac8dc146.tar.bz2
fetchmail-7db729877dd255029ce846414ddab872ac8dc146.zip
Workaround for GroupWise.
svn path=/trunk/; revision=2586
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c9
1 files changed, 9 insertions, 0 deletions
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);