mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Small improvement
This commit is contained in:
@@ -2176,10 +2176,10 @@ class Core {
|
||||
}
|
||||
|
||||
boolean check_spam = prefs.getBoolean("check_spam", false);
|
||||
if (check_spam)
|
||||
try {
|
||||
String host = helper.getReceivedFromHost();
|
||||
if (host != null) {
|
||||
if (check_spam) {
|
||||
String host = helper.getReceivedFromHost();
|
||||
if (host != null) {
|
||||
try {
|
||||
InetAddress addr = InetAddress.getByName(host);
|
||||
Log.i("Received from " + host + "=" + addr);
|
||||
|
||||
@@ -2208,13 +2208,15 @@ class Core {
|
||||
else
|
||||
message.warning += ", " + lookup;
|
||||
} catch (UnknownHostException ignore) {
|
||||
// Not blocked
|
||||
}
|
||||
} catch (UnknownHostException ex) {
|
||||
Log.w(ex);
|
||||
} catch (Throwable ex) {
|
||||
Log.w(folder.name, ex);
|
||||
}
|
||||
} catch (UnknownHostException ex) {
|
||||
|
||||
} catch (Throwable ex) {
|
||||
Log.w(folder.name, ex);
|
||||
}
|
||||
}
|
||||
|
||||
boolean check_reply = prefs.getBoolean("check_reply", false);
|
||||
if (check_reply &&
|
||||
|
||||
Reference in New Issue
Block a user