mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
Refactoring
This commit is contained in:
@@ -307,7 +307,7 @@ public class FragmentDialogJunk extends FragmentDialogBase {
|
||||
|
||||
try {
|
||||
boolean common = false;
|
||||
Address[] froms = InternetAddress.parseHeader(from, false);
|
||||
Address[] froms = MessageHelper.parseAddresses(context, from);
|
||||
String email = (froms.length == 0 ? null : ((InternetAddress) froms[0]).getAddress());
|
||||
int at = (email == null ? -1 : email.indexOf('@'));
|
||||
String domain = (at > 0 ? email.substring(at + 1).toLowerCase(Locale.ROOT) : null);
|
||||
|
||||
Reference in New Issue
Block a user