Fixed fetching reply-to address

Who had thought that get 'reply-to' would return 'to' if not present?
pull/50/head
M66B 6 years ago
parent 794e3d86b7
commit f25ca38376

@ -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…
Cancel
Save