Show return path

pull/191/head
M66B 4 years ago
parent 9f5e8915eb
commit 5d6b71dff6

@ -1200,7 +1200,12 @@ public class MessageHelper {
}
Address[] getSender() throws MessagingException {
return getAddressHeader("Sender");
Address[] sender = getAddressHeader("Sender");
if (BuildConfig.DEBUG) {
if (sender == null || sender.length == 0)
sender = getAddressHeader("Return-Path");
}
return sender;
}
Address[] getFrom() throws MessagingException {

Loading…
Cancel
Save