mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Added support for Mail-Followup-To and Mail-Followup-To headers (untested)
This commit is contained in:
parent
c54cd33428
commit
15b88e331e
1 changed files with 16 additions and 0 deletions
|
@ -1211,6 +1211,14 @@ public class MessageHelper {
|
|||
}
|
||||
|
||||
Address[] getCc() throws MessagingException {
|
||||
try {
|
||||
// https://cr.yp.to/proto/replyto.html
|
||||
Address[] a = getAddressHeader("Mail-Followup-To");
|
||||
if (a != null)
|
||||
return a;
|
||||
} catch (MessagingException ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
return getAddressHeader("Cc");
|
||||
}
|
||||
|
||||
|
@ -1219,6 +1227,14 @@ public class MessageHelper {
|
|||
}
|
||||
|
||||
Address[] getReply() throws MessagingException {
|
||||
try {
|
||||
// https://cr.yp.to/proto/replyto.html
|
||||
Address[] a = getAddressHeader("Mail-Reply-To");
|
||||
if (a != null)
|
||||
return a;
|
||||
} catch (MessagingException ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
return getAddressHeader("Reply-To");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue