Remove soft hyphens from names and subjects

pull/214/head
M66B 10 months ago
parent b854f606dc
commit 4eba6e0f08

@ -2616,6 +2616,8 @@ public class MessageHelper {
InternetAddress iaddress = (InternetAddress) address;
String email = iaddress.getAddress();
String personal = iaddress.getPersonal();
if (!TextUtils.isEmpty(personal))
personal = personal.replace("\u00ad", ""); // soft hyphen
if (TextUtils.isEmpty(email) && TextUtils.isEmpty(personal))
continue;
@ -2851,7 +2853,8 @@ public class MessageHelper {
return subject
.trim()
.replace("\n", "")
.replace("\r", "");
.replace("\r", "")
.replace("\u00ad", ""); // soft hyphen
}
Long getSize() throws MessagingException {

Loading…
Cancel
Save