mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-26 07:53:12 +00:00
Small improvement
This commit is contained in:
parent
3a7f3bce01
commit
581b560bdc
1 changed files with 10 additions and 8 deletions
|
@ -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…
Reference in a new issue