|
|
|
@ -42,3 +42,36 @@ index 866f17737..929e82d33 100644
|
|
|
|
|
/**
|
|
|
|
|
* Set the user name to be used with the PROXYAUTH command.
|
|
|
|
|
* The PROXYAUTH user name can also be set using the
|
|
|
|
|
diff --git a/app/src/main/java/com/sun/mail/imap/IMAPMessage.java b/app/src/main/java/com/sun/mail/imap/IMAPMessage.java
|
|
|
|
|
index 453479d98..29433351f 100644
|
|
|
|
|
--- a/app/src/main/java/com/sun/mail/imap/IMAPMessage.java
|
|
|
|
|
+++ b/app/src/main/java/com/sun/mail/imap/IMAPMessage.java
|
|
|
|
|
@@ -1697,4 +1697,28 @@ public class IMAPMessage extends MimeMessage implements ReadableMime {
|
|
|
|
|
Session _getSession() {
|
|
|
|
|
return session;
|
|
|
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public boolean isExpunged() {
|
|
|
|
|
+ if (super.isExpunged())
|
|
|
|
|
+ return true;
|
|
|
|
|
+
|
|
|
|
|
+ // Workaround expunged messages without deleted flag
|
|
|
|
|
+ if (size == 0 &&
|
|
|
|
|
+ receivedDate != null &&
|
|
|
|
|
+ receivedDate.getTime() == 0 &&
|
|
|
|
|
+ envelope != null &&
|
|
|
|
|
+ envelope.date == null &&
|
|
|
|
|
+ envelope.subject == null &&
|
|
|
|
|
+ envelope.from == null &&
|
|
|
|
|
+ envelope.sender == null &&
|
|
|
|
|
+ envelope.replyTo == null &&
|
|
|
|
|
+ envelope.to == null &&
|
|
|
|
|
+ envelope.cc == null &&
|
|
|
|
|
+ envelope.inReplyTo == null &&
|
|
|
|
|
+ envelope.messageId == null)
|
|
|
|
|
+ return true;
|
|
|
|
|
+
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
|
|
}
|
|
|
|
|