1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-18 21:28:54 +00:00

Improved error reporting

This commit is contained in:
M66B 2019-06-09 13:21:56 +02:00
parent 9382b98a63
commit d56ff5ffde

View file

@ -592,9 +592,10 @@ public class MessageHelper {
}
Address[] getListPost() throws MessagingException {
String list = null;
try {
// https://www.ietf.org/rfc/rfc2369.txt
String list = imessage.getHeader("List-Post", null);
list = imessage.getHeader("List-Post", null);
if (list == null)
return null;
@ -613,7 +614,7 @@ public class MessageHelper {
return new Address[]{new InternetAddress(mailto.getTo().split(",")[0])};
} catch (android.net.ParseException ex) {
Log.w(ex);
Log.w(new IllegalArgumentException(list, ex));
return null;
} catch (AddressException ex) {
Log.w(ex);