mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:04:39 +03:00
remove last remnants of treating a mailbox named "Sent" specially, in favor of special-use mailbox flags
a few places still looked at the name "Sent". but since we have special-use flags, we should always look at those. this also changes the config so admins can specify different names for the special-use mailboxes to create for new accounts, e.g. in a different language. the old config option is still understood, just deprecated.
This commit is contained in:
@ -71,7 +71,11 @@ func TestListExtended(t *testing.T) {
|
||||
}
|
||||
|
||||
uidvals := map[string]uint32{}
|
||||
for _, name := range store.InitialMailboxes {
|
||||
use := store.DefaultInitialMailboxes.SpecialUse
|
||||
for _, name := range []string{"Inbox", use.Archive, use.Draft, use.Junk, use.Sent, use.Trash} {
|
||||
uidvals[name] = 1
|
||||
}
|
||||
for _, name := range store.DefaultInitialMailboxes.Regular {
|
||||
uidvals[name] = 1
|
||||
}
|
||||
var uidvalnext uint32 = 2
|
||||
|
Reference in New Issue
Block a user