Small improvement

pull/174/head
M66B 5 years ago
parent 3a7f3bce01
commit 581b560bdc

@ -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 &&

Loading…
Cancel
Save