mirror of https://github.com/M66B/FairEmail.git
Remove soft hyphens from names and subjects
This commit is contained in:
parent
b854f606dc
commit
4eba6e0f08
|
@ -2616,6 +2616,8 @@ public class MessageHelper {
|
||||||
InternetAddress iaddress = (InternetAddress) address;
|
InternetAddress iaddress = (InternetAddress) address;
|
||||||
String email = iaddress.getAddress();
|
String email = iaddress.getAddress();
|
||||||
String personal = iaddress.getPersonal();
|
String personal = iaddress.getPersonal();
|
||||||
|
if (!TextUtils.isEmpty(personal))
|
||||||
|
personal = personal.replace("\u00ad", ""); // soft hyphen
|
||||||
|
|
||||||
if (TextUtils.isEmpty(email) && TextUtils.isEmpty(personal))
|
if (TextUtils.isEmpty(email) && TextUtils.isEmpty(personal))
|
||||||
continue;
|
continue;
|
||||||
|
@ -2851,7 +2853,8 @@ public class MessageHelper {
|
||||||
return subject
|
return subject
|
||||||
.trim()
|
.trim()
|
||||||
.replace("\n", "")
|
.replace("\n", "")
|
||||||
.replace("\r", "");
|
.replace("\r", "")
|
||||||
|
.replace("\u00ad", ""); // soft hyphen
|
||||||
}
|
}
|
||||||
|
|
||||||
Long getSize() throws MessagingException {
|
Long getSize() throws MessagingException {
|
||||||
|
|
Loading…
Reference in New Issue