james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1164257 - /james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
Date Thu, 01 Sep 2011 20:25:52 GMT
Author: eric
Date: Thu Sep  1 20:25:52 2011
New Revision: 1164257

URL: http://svn.apache.org/viewvc?rev=1164257&view=rev
Log:
Ensure copy succeeds for the JPAEncryptedMessage. Thx to Sai Valluripalli (MAILBOX-129)

Modified:
    james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java

Modified: james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java?rev=1164257&r1=1164256&r2=1164257&view=diff
==============================================================================
--- james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
(original)
+++ james/mailbox/trunk/jpa/src/main/java/org/apache/james/mailbox/jpa/mail/JPAMessageMapper.java
Thu Sep  1 20:25:52 2011
@@ -36,6 +36,7 @@ import org.apache.james.mailbox.MessageR
 import org.apache.james.mailbox.MessageRange.Type;
 import org.apache.james.mailbox.jpa.mail.model.JPAMailbox;
 import org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage;
+import org.apache.james.mailbox.jpa.mail.model.openjpa.JPAEncryptedMessage;
 import org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage;
 import org.apache.james.mailbox.jpa.mail.model.openjpa.JPAStreamingMessage;
 import org.apache.james.mailbox.store.SimpleMessageMetaData;
@@ -331,6 +332,8 @@ public class JPAMessageMapper extends Ab
         Message<Long> copy;
         if (original instanceof JPAStreamingMessage) {
             copy = new JPAStreamingMessage((JPAMailbox) mailbox, uid, modSeq, original);
+        } else if(original instanceof JPAEncryptedMessage) {
+            copy = new JPAEncryptedMessage((JPAMailbox) mailbox, uid, modSeq, original);
         } else {
             copy = new JPAMessage((JPAMailbox) mailbox, uid, modSeq, original);
         }



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