imapserver: fix returning special-use mailbox "\Drafts" instead of "\Draft"

related to issue #66 by x8x, though this doesn't fix that (macos mail doesn't
yet request the special-use flags).
This commit is contained in:
Mechiel Lukkien 2023-09-23 14:50:02 +02:00
parent 0707f53361
commit 8c2814df89
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -194,7 +194,7 @@ func (c *conn) cmdList(tag, cmd string, p *parser) {
flags = append(flags, bare(`\Archive`)) flags = append(flags, bare(`\Archive`))
} }
if info.mailbox.Draft { if info.mailbox.Draft {
flags = append(flags, bare(`\Draft`)) flags = append(flags, bare(`\Drafts`))
} }
if info.mailbox.Junk { if info.mailbox.Junk {
flags = append(flags, bare(`\Junk`)) flags = append(flags, bare(`\Junk`))

View file

@ -109,7 +109,7 @@ func TestListExtended(t *testing.T) {
Fhasnochildren = `\HasNoChildren` Fhasnochildren = `\HasNoChildren`
Fnonexistent = `\NonExistent` Fnonexistent = `\NonExistent`
Farchive = `\Archive` Farchive = `\Archive`
Fdraft = `\Draft` Fdraft = `\Drafts`
Fjunk = `\Junk` Fjunk = `\Junk`
Fsent = `\Sent` Fsent = `\Sent`
Ftrash = `\Trash` Ftrash = `\Trash`