Keyword fixes/improvements

This commit is contained in:
M66B
2020-01-28 13:21:22 +01:00
parent f03c4d2ba1
commit 12503ba9ce
4 changed files with 16 additions and 18 deletions

View File

@@ -48,6 +48,7 @@ import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashMap;
@@ -629,7 +630,9 @@ public class MessageHelper {
}
String[] getKeywords() throws MessagingException {
return imessage.getFlags().getUserFlags();
List<String> keywords = Arrays.asList(imessage.getFlags().getUserFlags());
Collections.sort(keywords);
return keywords.toArray(new String[0]);
}
String getMessageID() throws MessagingException {