mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
25 lines
892 B
Plaintext
25 lines
892 B
Plaintext
$NetBSD: patch-ae,v 1.16 2011/02/03 14:11:51 tron Exp $
|
|
|
|
Work around the broken IMAP implementation of Exchange 2010.
|
|
Patch taken from here:
|
|
|
|
http://dev.mutt.org/trac/ticket/3459
|
|
|
|
--- imap/message.c.orig 2010-08-24 17:34:21.000000000 +0100
|
|
+++ imap/message.c 2011-02-03 13:17:56.000000000 +0000
|
|
@@ -242,6 +242,14 @@
|
|
char *cmd;
|
|
|
|
fetchlast = msgend + 1;
|
|
+ /* Microsoft Exchange 2010 violates the IMAP protocol and
|
|
+ * starts omitting messages if one FETCHes more than 2047 (or
|
|
+ * or somewhere around that number. We therefore split the
|
|
+ * FETCH into chunks of 2000 messages each. */
|
|
+ if (fetchlast - msgno - 1 > 2000)
|
|
+ {
|
|
+ fetchlast = msgno + 1 + 2000;
|
|
+ }
|
|
safe_asprintf (&cmd, "FETCH %d:%d (UID FLAGS INTERNALDATE RFC822.SIZE %s)",
|
|
msgno + 1, fetchlast, hdrreq);
|
|
imap_cmd_start (idata, cmd);
|