Small fix

This commit is contained in:
M66B 2019-07-16 18:47:35 +02:00
parent a8215cd7bd
commit 69e375b542
1 changed files with 8 additions and 6 deletions

View File

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