Browse Source

Fixed fetching reply-to address

Who had thought that get 'reply-to' would return 'to' if not present?
main
M66B 6 years ago
parent
commit
f25ca38376
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/src/main/java/eu/faircode/email/MessageHelper.java

+ 5
- 1
app/src/main/java/eu/faircode/email/MessageHelper.java 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) {


Loading…
Cancel
Save