james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1147289 - /james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
Date Fri, 15 Jul 2011 19:21:39 GMT
Author: norman
Date: Fri Jul 15 19:21:39 2011
New Revision: 1147289

URL: http://svn.apache.org/viewvc?rev=1147289&view=rev
Log:
Send the UID in the FetchResponse if QRESYNC is enabled. See IMAP-307

Modified:
    james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java

Modified: james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
URL: http://svn.apache.org/viewvc/james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java?rev=1147289&r1=1147288&r2=1147289&view=diff
==============================================================================
--- james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
(original)
+++ james/imap/trunk/processor/src/main/java/org/apache/james/imap/processor/fetch/FetchProcessor.java
Fri Jul 15 19:21:39 2011
@@ -111,6 +111,10 @@ public class FetchProcessor extends Abst
                 //       If we do so we could prolly save one mailbox access which should
give use some more speed up
                 respondVanished(mailboxSession, mailbox, ranges, changedSince, mailbox.getMetaData(false,
mailboxSession, org.apache.james.mailbox.MessageManager.MetaData.FetchGroup.NO_COUNT), responder);
             }
+            // if QRESYNC is enable its necessary to also return the UID in all cases
+            if (EnableProcessor.getEnabledCapabilities(session).contains(ImapConstants.SUPPORTS_QRESYNC))
{
+                fetch.setUid(true);
+            }
             processMessageRanges(session, mailbox, ranges, fetch, useUids, mailboxSession,
responder);
 
             



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message