Show return path

This commit is contained in:
M66B 2021-01-11 09:03:15 +01:00
parent 9f5e8915eb
commit 5d6b71dff6
1 changed files with 6 additions and 1 deletions

View File

@ -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 {