Commit 3657c15f authored by Mickaël Guessant's avatar Mickaël Guessant

IMAP: detect icedove header fetch to improve performance

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2488 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 5fe41bf1
......@@ -838,6 +838,7 @@ public class ImapConnection extends AbstractConnection {
if ( ( parameters.contains("BODY.PEEK[HEADER.FIELDS (")
// exclude mutt header request
&& !parameters.contains("X-LABEL") )
|| parameters.equals("RFC822.SIZE RFC822.HEADER FLAGS") // icedove
|| Settings.getBooleanProperty("davmail.imapAlwaysApproxMsgSize") )
{ // Send approximate size
size = message.size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment