Repository: james-project Updated Branches: refs/heads/master 1ac73240b -> 9aff85c34
JAMES-1888 clone with attachment is no more needed in SimpleMailboxMessage Project: http://git-wip-us.apache.org/repos/asf/james-project/repo Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/1a3438ad Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/1a3438ad Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/1a3438ad Branch: refs/heads/master Commit: 1a3438add029490daea4280bea2ee34a2715d8fd Parents: 1ac7324 Author: Benoit Tellier <[email protected]> Authored: Fri Dec 16 10:08:50 2016 +0700 Committer: Benoit Tellier <[email protected]> Committed: Mon Dec 19 11:12:39 2016 +0700 ---------------------------------------------------------------------- .../mailbox/store/mail/model/impl/SimpleMailboxMessage.java | 7 ------- 1 file changed, 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/james-project/blob/1a3438ad/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessage.java ---------------------------------------------------------------------- diff --git a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessage.java b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessage.java index d0db478..3b8037d 100644 --- a/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessage.java +++ b/mailbox/store/src/main/java/org/apache/james/mailbox/store/mail/model/impl/SimpleMailboxMessage.java @@ -47,13 +47,6 @@ public class SimpleMailboxMessage extends DelegatingMailboxMessage { return copy(mailboxId, original, original.getAttachments()); } - public static SimpleMailboxMessage cloneWithAttachments(MailboxMessage mailboxMessage, List<MessageAttachment> attachments) throws MailboxException { - SimpleMailboxMessage simpleMailboxMessage = copy(mailboxMessage.getMailboxId(), mailboxMessage, attachments); - simpleMailboxMessage.setUid(mailboxMessage.getUid()); - simpleMailboxMessage.setModSeq(mailboxMessage.getModSeq()); - return simpleMailboxMessage; - } - private static SimpleMailboxMessage copy(MailboxId mailboxId, MailboxMessage original, List<MessageAttachment> attachments) throws MailboxException { Date internalDate = original.getInternalDate(); long size = original.getFullContentOctets(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
