Added sort on sender

This commit is contained in:
M66B
2018-12-27 11:32:20 +00:00
parent 0ab8452495
commit 02a89260b4
11 changed files with 1341 additions and 9 deletions

View File

@@ -463,6 +463,17 @@ public class MessageHelper {
return TextUtils.join(", ", formatted);
}
static String getSortKey(Address[] addresses) {
if (addresses == null || addresses.length == 0)
return null;
InternetAddress address = (InternetAddress) addresses[0];
String personal = address.getPersonal();
if (TextUtils.isEmpty(personal))
return address.getAddress();
else
return personal;
}
String getHtml() throws MessagingException, IOException {
return getHtml(imessage);
}