smtp.mailfrom with quotes

This commit is contained in:
M66B 2021-12-12 20:02:49 +01:00
parent 50d8bbc59d
commit fec54f1656
1 changed files with 3 additions and 0 deletions

View File

@ -1520,6 +1520,9 @@ public class MessageHelper {
if (s > 0)
v = v.substring(0, s);
if (v.startsWith("\"") && v.endsWith("\""))
v = v.substring(1, v.length() - 1);
try {
mailfrom = InternetAddress.parseHeader(v, false);
} catch (Throwable ex) {