mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-28 04:02:19 -05:00
Set a default hostname if we can't get the local hostname. Fixes issue 2750.
This commit is contained in:
parent
a3b669251b
commit
6c52c8d927
@ -196,6 +196,12 @@ public class SmtpTransport extends Transport
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If we don't have a hostname for whatever reason, set a sane default (see issue 2750).
|
||||||
|
if (localHost.equals(""))
|
||||||
|
{
|
||||||
|
localHost = "android";
|
||||||
|
}
|
||||||
|
|
||||||
List<String> results = executeSimpleCommand("EHLO " + localHost);
|
List<String> results = executeSimpleCommand("EHLO " + localHost);
|
||||||
|
|
||||||
m8bitEncodingAllowed = results.contains("8BITMIME");
|
m8bitEncodingAllowed = results.contains("8BITMIME");
|
||||||
|
Loading…
Reference in New Issue
Block a user