mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 16:16:33 +02:00
Fixed fetching reply-to address
Who had thought that get 'reply-to' would return 'to' if not present?
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user