On Mon, 29 Jan 2007, tsuraan wrote:
If I were you, I would do a mail_fetch_fast() of the entire mailbox first,
and then pass the actual message sizes as the "last" argument rather than
passing 0.
Will doing that force the library to only fetch the desired number of bytes
rather than reading until the end of the IMAP reply? A problem I've seen is
that MS Exchange is broken and gives "estimates" of email sizes rather than
actually saying how many bytes are in the message; sometimes it reports too
many bytes, sometimes too few.

You must have either a very old, or poorly-configured version of Exchange. This bug was supposedly fixed something like 8 years ago.

When you leave the "last" argument specified as 0, what is actually sent by the c-client library to the IMAP server is 4294967295 which is the maximum size of a message in IMAP. You might be setting yourself up for grief if the server mishandles large uint32 values.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to