mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 18:13:24 +02:00
Relaxed address parsing
This commit is contained in:
@@ -3845,9 +3845,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
// Get data
|
||||
InternetAddress[] afrom = (identity == null ? null : new InternetAddress[]{new InternetAddress(identity.email, identity.name)});
|
||||
InternetAddress[] ato = (TextUtils.isEmpty(to) ? null : InternetAddress.parse(to));
|
||||
InternetAddress[] acc = (TextUtils.isEmpty(cc) ? null : InternetAddress.parse(cc));
|
||||
InternetAddress[] abcc = (TextUtils.isEmpty(bcc) ? null : InternetAddress.parse(bcc));
|
||||
InternetAddress[] ato = (TextUtils.isEmpty(to) ? null : InternetAddress.parseHeader(to, false));
|
||||
InternetAddress[] acc = (TextUtils.isEmpty(cc) ? null : InternetAddress.parseHeader(cc, false));
|
||||
InternetAddress[] abcc = (TextUtils.isEmpty(bcc) ? null : InternetAddress.parseHeader(bcc, false));
|
||||
|
||||
// Safe guard
|
||||
if (action == R.id.action_send) {
|
||||
|
||||
Reference in New Issue
Block a user