james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1139597 - /james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java
Date Sat, 25 Jun 2011 19:28:58 GMT
Author: norman
Date: Sat Jun 25 19:28:58 2011
New Revision: 1139597

URL: http://svn.apache.org/viewvc?rev=1139597&view=rev
Log:
Make sure we set the recent flag when copy

Modified:
    james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java

Modified: james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java?rev=1139597&r1=1139596&r2=1139597&view=diff
==============================================================================
--- james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java
(original)
+++ james/mailbox/trunk/maildir/src/main/java/org/apache/james/mailbox/maildir/mail/MaildirMessageMapper.java
Sat Jun 25 19:28:58 2011
@@ -264,6 +264,9 @@ public class MaildirMessageMapper extend
      */
     protected MessageMetaData copy(Mailbox<Integer> mailbox, long uid, long modSeq,
Message<Integer> original) throws MailboxException {
         SimpleMessage<Integer> theCopy = new SimpleMessage<Integer>(mailbox,
original);
+        Flags flags = theCopy.createFlags();
+        flags.add(Flag.RECENT);
+        theCopy.setFlags(flags);
         return save(mailbox, theCopy);        
     }
 



---------------------------------------------------------------------
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