Skip to content

Commit

Permalink
imapserver: fix returning special-use mailbox "\Drafts" instead of "\…
Browse files Browse the repository at this point in the history
…Draft"

related to issue #66 by x8x, though this doesn't fix that (macos mail doesn't
yet request the special-use flags).
  • Loading branch information
mjl- committed Sep 23, 2023
1 parent 0707f53 commit 8c2814d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imapserver/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (c *conn) cmdList(tag, cmd string, p *parser) {
flags = append(flags, bare(`\Archive`))
}
if info.mailbox.Draft {
flags = append(flags, bare(`\Draft`))
flags = append(flags, bare(`\Drafts`))
}
if info.mailbox.Junk {
flags = append(flags, bare(`\Junk`))
Expand Down
2 changes: 1 addition & 1 deletion imapserver/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestListExtended(t *testing.T) {
Fhasnochildren = `\HasNoChildren`
Fnonexistent = `\NonExistent`
Farchive = `\Archive`
Fdraft = `\Draft`
Fdraft = `\Drafts`
Fjunk = `\Junk`
Fsent = `\Sent`
Ftrash = `\Trash`
Expand Down

0 comments on commit 8c2814d

Please sign in to comment.