Merge "Don't remove fromUser email from From header"
This commit is contained in:
@@ -494,9 +494,10 @@ public abstract class OutgoingEmail {
|
||||
j.remove();
|
||||
}
|
||||
}
|
||||
for (EmailHeader hdr : headers.values()) {
|
||||
if (hdr instanceof AddressList) {
|
||||
((AddressList) hdr).remove(fromEmail);
|
||||
for (Map.Entry<String, EmailHeader> entry : headers.entrySet()) {
|
||||
// Don't remove fromEmail from the "From" header though!
|
||||
if (entry.getValue() instanceof AddressList && entry.getKey() != "From") {
|
||||
((AddressList) entry.getValue()).remove(fromEmail);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user