mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
fix the Status command on imapclient.Conn
it needs at least 1 attribute. also make types for those attributes, so its harder to get them wrong. nothing was using this function.
This commit is contained in:
@ -692,7 +692,7 @@ func DisabledTestReference(t *testing.T) {
|
||||
defer tc3.close()
|
||||
tc3.client.Login("mjl@mox.example", password0)
|
||||
tc3.transactf("ok", `list "" "inbox" return (status (messages))`)
|
||||
tc3.xuntagged(imapclient.UntaggedList{Separator: '/', Mailbox: "Inbox"}, imapclient.UntaggedStatus{Mailbox: "Inbox", Attrs: map[string]int64{"MESSAGES": 0}})
|
||||
tc3.xuntagged(imapclient.UntaggedList{Separator: '/', Mailbox: "Inbox"}, imapclient.UntaggedStatus{Mailbox: "Inbox", Attrs: map[imapclient.StatusAttr]int64{imapclient.StatusMessages: 0}})
|
||||
|
||||
tc2.transactf("ok", "fetch 1 rfc822.size")
|
||||
tc.xuntagged(imapclient.UntaggedFetch{Seq: 1, Attrs: []imapclient.FetchAttr{imapclient.FetchRFC822Size(len(exampleMsg))}})
|
||||
|
Reference in New Issue
Block a user