mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
a8215cd7bd
commit
69e375b542
|
@ -2491,11 +2491,12 @@ public class FragmentCompose extends FragmentBase {
|
|||
if (!TextUtils.isEmpty(cc))
|
||||
try {
|
||||
acc = InternetAddress.parse(cc);
|
||||
if (action == R.id.action_send)
|
||||
if (action == R.id.action_send) {
|
||||
for (InternetAddress address : acc)
|
||||
address.validate();
|
||||
if (lookup_mx)
|
||||
ConnectionHelper.lookup(acc, context);
|
||||
}
|
||||
} catch (AddressException ex) {
|
||||
throw new AddressException(context.getString(R.string.title_address_parse_error,
|
||||
Helper.ellipsize(cc, ADDRESS_ELLIPSIZE), ex.getMessage()));
|
||||
|
@ -2504,11 +2505,12 @@ public class FragmentCompose extends FragmentBase {
|
|||
if (!TextUtils.isEmpty(bcc))
|
||||
try {
|
||||
abcc = InternetAddress.parse(bcc);
|
||||
if (action == R.id.action_send)
|
||||
if (action == R.id.action_send) {
|
||||
for (InternetAddress address : abcc)
|
||||
address.validate();
|
||||
if (lookup_mx)
|
||||
ConnectionHelper.lookup(abcc, context);
|
||||
}
|
||||
} catch (AddressException ex) {
|
||||
throw new AddressException(context.getString(R.string.title_address_parse_error,
|
||||
Helper.ellipsize(bcc, ADDRESS_ELLIPSIZE), ex.getMessage()));
|
||||
|
|
Loading…
Reference in New Issue