瀏覽代碼

plugins/base: always show INBOX first

master
Simon Ser 4 年之前
父節點
當前提交
4cf5ad68af
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: FDE7BE0E88F5E48
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. +6
    -0
      plugins/base/imap.go

+ 6
- 0
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


Loading…
取消
儲存