mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-13 12:33:42 +02:00
Added Gmail label support
This commit is contained in:
@@ -944,6 +944,20 @@ public class MessageHelper {
|
||||
return thread;
|
||||
}
|
||||
|
||||
String[] getLabels() throws MessagingException {
|
||||
//ensureMessage(false);
|
||||
|
||||
List<String> labels = new ArrayList<>();
|
||||
if (imessage instanceof GmailMessage)
|
||||
for (String label : ((GmailMessage) imessage).getLabels())
|
||||
if (!label.startsWith("\\"))
|
||||
labels.add(label);
|
||||
|
||||
Collections.sort(labels);
|
||||
|
||||
return labels.toArray(new String[0]);
|
||||
}
|
||||
|
||||
Integer getPriority() throws MessagingException {
|
||||
Integer priority = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user