Improve handling of From: Headers without parseable email addresses (fixes 3814)

This commit is contained in:
Bernhard Redl 2011-11-02 02:04:19 +01:00
parent c89743635c
commit 6a76b073c3
1 changed files with 2 additions and 0 deletions

View File

@ -149,6 +149,8 @@ public class Address {
}
} catch (MimeException pe) {
Log.e(K9.LOG_TAG, "MimeException in Address.parse()", pe);
//but we do an silent failover : we just use the given string as name with empty address
addresses.add(new Address("", addressList));
}
return addresses.toArray(EMPTY_ADDRESS_ARRAY);
}