aboutsummaryrefslogtreecommitdiff
path: root/plugins/base
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base')
-rwxr-xr-xplugins/base/imap.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/base/imap.go b/plugins/base/imap.go
index 760138b..14409eb 100755
--- a/plugins/base/imap.go
+++ b/plugins/base/imap.go
@@ -54,6 +54,12 @@ func listMailboxes(conn *imapclient.Client) ([]MailboxInfo, error) {
}
sort.Slice(mailboxes, func(i, j int) bool {
+ if mailboxes[i].Name == "INBOX" {
+ return true
+ }
+ if mailboxes[j].Name == "INBOX" {
+ return false
+ }
return mailboxes[i].Name < mailboxes[j].Name
})
return mailboxes, nil