mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +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:
@ -363,14 +363,14 @@ func (c *Conn) xuntagged() Untagged {
|
||||
mailbox := c.xastring()
|
||||
c.xspace()
|
||||
c.xtake("(")
|
||||
attrs := map[string]int64{}
|
||||
attrs := map[StatusAttr]int64{}
|
||||
for !c.take(')') {
|
||||
if len(attrs) > 0 {
|
||||
c.xspace()
|
||||
}
|
||||
s := c.xatom()
|
||||
c.xspace()
|
||||
S := strings.ToUpper(s)
|
||||
S := StatusAttr(strings.ToUpper(s))
|
||||
var num int64
|
||||
// ../rfc/9051:7059
|
||||
switch S {
|
||||
|
Reference in New Issue
Block a user