Selaa lähdekoodia

plugins/base: always show INBOX first

master
Simon Ser 4 vuotta sitten
vanhempi
commit
4cf5ad68af
No known key found for this signature in database GPG Key ID: FDE7BE0E88F5E48
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. +6
    -0
      plugins/base/imap.go

+ 6
- 0
plugins/base/imap.go Näytä tiedosto

@@ -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


Ladataan…
Peruuta
Tallenna