mirror of https://github.com/M66B/FairEmail.git
Small fix (unused code)
This commit is contained in:
parent
cc48b5ad69
commit
9d54d89782
|
@ -1121,12 +1121,11 @@ public class MessageHelper {
|
||||||
String[] h = origin.split("\\s+");
|
String[] h = origin.split("\\s+");
|
||||||
if (h.length > 1 && h[0].equalsIgnoreCase("from")) {
|
if (h.length > 1 && h[0].equalsIgnoreCase("from")) {
|
||||||
String host = h[1];
|
String host = h[1];
|
||||||
if (host.startsWith("["))
|
int s = origin.indexOf('[');
|
||||||
host = host.substring(1);
|
int e = origin.indexOf(']');
|
||||||
if (host.endsWith("]"))
|
if (s > 0 && e > s + 1)
|
||||||
host = host.substring(0, host.length() - 1);
|
host = origin.substring(s + 1, e);
|
||||||
if (!TextUtils.isEmpty(host))
|
return host;
|
||||||
return host;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue