mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 09:21:49 -05:00
IMAP: new patch from Gellule to fix disappearing messages issue
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@949 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
3ceb6421b4
commit
3785581305
@ -432,8 +432,9 @@ public class ImapConnection extends AbstractConnection {
|
||||
for (ExchangeSession.Message message : currentMessages) {
|
||||
if (!uidSet.contains(message.getImapUid())) {
|
||||
sendClient("* " + index + " EXPUNGE");
|
||||
} else {
|
||||
index++;
|
||||
}
|
||||
index++;
|
||||
}
|
||||
sendClient("* " + currentFolder.count() + " EXISTS");
|
||||
sendClient("* " + currentFolder.count() + " RECENT");
|
||||
@ -1013,14 +1014,15 @@ public class ImapConnection extends AbstractConnection {
|
||||
|
||||
protected void expunge(boolean silent) throws IOException {
|
||||
if (currentFolder.messages != null) {
|
||||
int index = 0;
|
||||
int index = 1;
|
||||
for (ExchangeSession.Message message : currentFolder.messages) {
|
||||
index++;
|
||||
if (message.deleted) {
|
||||
message.delete();
|
||||
if (!silent) {
|
||||
sendClient("* " + index + " EXPUNGE");
|
||||
}
|
||||
} else {
|
||||
index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user