Quote dots in addresses

This commit is contained in:
M66B 2020-05-21 08:25:59 +02:00
parent d664399ac5
commit 0a24bf0c17
1 changed files with 2 additions and 1 deletions

View File

@ -1304,7 +1304,8 @@ public class MessageHelper {
boolean quote = false;
personal = personal.replace("\"", "");
for (int c = 0; c < personal.length(); c++)
if ("()<>,;:\\\"[]@".indexOf(personal.charAt(c)) >= 0) {
// https://tools.ietf.org/html/rfc822
if ("()<>@,;:\\\".[]".indexOf(personal.charAt(c)) >= 0) {
quote = true;
break;
}