1
0
Fork 0
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:
M66B 2018-08-14 17:23:35 +00:00
parent 794e3d86b7
commit f25ca38376

View file

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