Skip to content

Commit

Permalink
Merge pull request #100 from i2p/imap4-fixes
Browse files Browse the repository at this point in the history
IMAP4 fixes
  • Loading branch information
str4d authored Apr 8, 2018
2 parents 0454319 + f1facc9 commit 2925170
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webapp/src/main/java/i2p/bote/imap/BoteMailbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import com.google.common.base.Optional;

import org.apache.james.mailbox.MessageUid;
import org.apache.james.mailbox.model.MailboxConstants;
import org.apache.james.mailbox.model.MailboxPath;
import org.apache.james.mailbox.model.MessageRange;
import org.apache.james.mailbox.store.mail.model.MailboxMessage;
Expand Down Expand Up @@ -69,7 +70,7 @@ public class BoteMailbox extends SimpleMailbox {
private FolderListener folderListener;

public BoteMailbox(EmailFolder folder, long uidValidity, MessageUid nextUid) {
super(new MailboxPath("I2P-Bote", "bote", folder.getName()), uidValidity,
super(new MailboxPath(MailboxConstants.USER_NAMESPACE, "bote", folder.getName()), uidValidity,
new BoteMailboxId(folder.getName()));
this.folder = folder;
this.messageMap = Collections.synchronizedSortedMap(new TreeMap<Email, BoteMessage>(new Comparator<Email>() {
Expand Down Expand Up @@ -106,7 +107,6 @@ public int compare(Email email1, Email email2) {
nextModSeqLock.writeLock().lock();
try {
nextModSeq = System.currentTimeMillis();
nextModSeq <<= 32;
} finally {
nextModSeqLock.writeLock().unlock();
}
Expand Down
1 change: 0 additions & 1 deletion webapp/src/main/java/i2p/bote/imap/MapperFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class MapperFactory extends MailboxSessionMapperFactory {
this.folderManager = folderManager;
mailboxes = new HashMap<>();
uidValidity = System.currentTimeMillis();
uidValidity <<= 32;
uidProvider = createUidProvider();
modSeqProvider = createModSeqProvider();
}
Expand Down

0 comments on commit 2925170

Please sign in to comment.