mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 11:28:41 +01:00
Improved error reporting
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user