Fixed decoding of addresses

pull/212/head
M66B 2 years ago
parent 5efa0f75e1
commit b4be7c35fa

@ -3119,7 +3119,7 @@ public class MessageHelper {
return email;
}
static String decodeMime(String text) {
public static String decodeMime(String text) {
if (text == null)
return null;

@ -253,7 +253,7 @@ public class InternetAddress extends Address implements Cloneable {
if (encodedPersonal != null) {
try {
personal = MimeUtility.decodeText(encodedPersonal);
personal = eu.faircode.email.MessageHelper.decodeMime(encodedPersonal);
return personal;
} catch (Exception ex) {
// 1. ParseException: either its an unencoded string or

Loading…
Cancel
Save