mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Fixed fetching reply-to address
Who had thought that get 'reply-to' would return 'to' if not present?
This commit is contained in:
parent
794e3d86b7
commit
f25ca38376
1 changed files with 5 additions and 1 deletions
|
@ -211,7 +211,11 @@ public class MessageHelper {
|
|||
}
|
||||
|
||||
Address[] getReply() throws MessagingException {
|
||||
return imessage.getReplyTo();
|
||||
String[] headers = imessage.getHeader("Reply-To");
|
||||
if (headers != null && headers.length > 0)
|
||||
return imessage.getReplyTo();
|
||||
else
|
||||
return null;
|
||||
}
|
||||
|
||||
static String getFormattedAddresses(Address[] addresses, boolean full) {
|
||||
|
|
Loading…
Reference in a new issue