mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 03:26:37 +03:00
implement IMAP CREATE-SPECIAL-USE extension for the mailbox create command, part of rfc 6154
we already supported special-use flags. settable through the webmail interface, and new accounts already got standard mailboxes with special-use flags predefined. but now the IMAP "CREATE" command implements creating mailboxes with special-use flags.
This commit is contained in:
@ -513,7 +513,7 @@ func TestLiterals(t *testing.T) {
|
||||
defer tc.close()
|
||||
|
||||
tc.client.Login("mjl@mox.example", password0)
|
||||
tc.client.Create("tmpbox")
|
||||
tc.client.Create("tmpbox", nil)
|
||||
|
||||
tc.transactf("ok", "rename {6+}\r\ntmpbox {7+}\r\nntmpbox")
|
||||
|
||||
@ -642,7 +642,7 @@ func TestMailboxDeleted(t *testing.T) {
|
||||
tc.client.Login("mjl@mox.example", password0)
|
||||
tc2.client.Login("mjl@mox.example", password0)
|
||||
|
||||
tc.client.Create("testbox")
|
||||
tc.client.Create("testbox", nil)
|
||||
tc2.client.Select("testbox")
|
||||
tc.client.Delete("testbox")
|
||||
|
||||
@ -663,7 +663,7 @@ func TestMailboxDeleted(t *testing.T) {
|
||||
|
||||
tc2.transactf("ok", "unselect")
|
||||
|
||||
tc.client.Create("testbox")
|
||||
tc.client.Create("testbox", nil)
|
||||
tc2.client.Select("testbox")
|
||||
tc.client.Delete("testbox")
|
||||
tc2.transactf("ok", "close")
|
||||
|
Reference in New Issue
Block a user