1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

For my own convenience

This commit is contained in:
M66B 2022-02-06 16:20:05 +01:00
parent ce38948d19
commit 7519eddfa2

View file

@ -1494,6 +1494,25 @@ public class MessageHelper {
}
}
if (thread == null && BuildConfig.DEBUG) {
String awsses = imessage.getHeader("X-SES-Outgoing", null);
if (!TextUtils.isEmpty(awsses)) {
Address[] froms = getFrom();
if (froms != null && froms.length > 0) {
String from = ((InternetAddress) froms[0]).getAddress();
if (!TextUtils.isEmpty(from) && from.endsWith("@faircode.eu")) {
Address[] rr = getReply();
Address[] tos = (rr != null && rr.length > 0 ? rr : getTo());
if (tos != null && tos.length > 0) {
String email = ((InternetAddress) tos[0]).getAddress();
if (!TextUtils.isEmpty(email))
thread = "ses:" + email;
}
}
}
}
}
// Common reference
if (thread == null && refs.size() > 0) {
String ref = refs.get(0);