Refactoring

This commit is contained in:
M66B 2021-11-08 12:46:20 +01:00
parent 26b0033929
commit 945e4b4f1d
1 changed files with 1 additions and 1 deletions

View File

@ -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);