mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 14:46:31 +02:00
Remove soft hyphens from names and subjects
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user