diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-23 12:42:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-23 12:42:38 +0000 |
commit | 7db729877dd255029ce846414ddab872ac8dc146 (patch) | |
tree | 2b25a47b5823658788bf2990688802eb5f9d9053 /driver.c | |
parent | 33d9765dd84fd3846b833202aa495c7725e88662 (diff) | |
download | fetchmail-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |