Explorar el Código

plugins/base: always show INBOX first

master
Simon Ser hace 4 años
padre
commit
4cf5ad68af
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: FDE7BE0E88F5E48
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. +6
    -0
      plugins/base/imap.go

+ 6
- 0
plugins/base/imap.go Ver fichero

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


Cargando…
Cancelar
Guardar