smtp.mailfrom with quotes

pull/194/merge
M66B 3 years ago
parent 50d8bbc59d
commit fec54f1656

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

Loading…
Cancel
Save