mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 18:43:23 +02:00
Refactoring
This commit is contained in:
@@ -2389,6 +2389,16 @@ public class MessageHelper {
|
||||
return email;
|
||||
}
|
||||
|
||||
static boolean isRemoved(Throwable ex) {
|
||||
while (ex != null) {
|
||||
if (ex instanceof MessageRemovedException ||
|
||||
ex instanceof MessageRemovedIOException)
|
||||
return true;
|
||||
ex = ex.getCause();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static boolean equalEmail(Address a1, Address a2) {
|
||||
String email1 = ((InternetAddress) a1).getAddress();
|
||||
String email2 = ((InternetAddress) a2).getAddress();
|
||||
|
||||
Reference in New Issue
Block a user