Skip to content

Commit

Permalink
Email does not appear in the new folder after moving #78
Browse files Browse the repository at this point in the history
  • Loading branch information
zaharchenko committed Apr 9, 2019
1 parent 4ca8db9 commit 9a85b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/core/test/spec/imap/core/events/ImapEventsSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,8 @@ class ImapEventsSpec extends Specification {
imapEvents.count {
it instanceof EmailMovedImapEvent &&
it.message.folder.name == "other-folder" &&
it.message.msgUid == START_EMAIL_UID + 1 &&
it.newFolderName == "other-folder" &&
it.oldFolderName == "INBOX"
it.message.msgUid == START_EMAIL_UID &&
it.oldFolder.name == "INBOX"
} == 1
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class EmailMovedImapEvent extends BaseImapEvent {
private final ImapFolder oldFolder;

@SuppressWarnings("WeakerAccess")
@Deprecated
public EmailMovedImapEvent(ImapMessage message, String oldFolderName) {
super(message);
this.oldFolder = null;
Expand Down

0 comments on commit 9a85b91

Please sign in to comment.