MCPcopy Create free account
hub / github.com/M66B/FairEmail / isExpunged

Method isExpunged

app/src/main/java/com/sun/mail/imap/IMAPMessage.java:1759–1781  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1757 }
1758
1759 @Override
1760 public boolean isExpunged() {
1761 if (super.isExpunged())
1762 return true;
1763
1764 // Workaround expunged messages without deleted flag
1765 if (envelope != null &&
1766 envelope.date == null &&
1767 envelope.subject == null &&
1768 envelope.from == null &&
1769 envelope.sender == null &&
1770 envelope.replyTo == null &&
1771 envelope.to == null &&
1772 envelope.cc == null &&
1773 envelope.inReplyTo == null &&
1774 envelope.messageId == null &&
1775 headersLoaded && (headers == null || !headers.getAllHeaders().hasMoreElements())) {
1776 eu.faircode.email.Log.w("Expunged workaround host=" + ((IMAPStore) folder.getStore()).host);
1777 return true;
1778 }
1779
1780 return false;
1781 }
1782}

Callers 6

toMessageSetMethod · 0.95
toUIDSetMethod · 0.95
getCountMethod · 0.95
forceCheckExpungedMethod · 0.45
fillMethod · 0.45

Calls 4

wMethod · 0.80
getAllHeadersMethod · 0.65
hasMoreElementsMethod · 0.45
getStoreMethod · 0.45

Tested by

no test coverage detected