We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef89036 commit e767b0dCopy full SHA for e767b0d
imapclient/status.go
@@ -31,7 +31,13 @@ func statusItems(options *imap.StatusOptions) []string {
31
}
32
33
// Status sends a STATUS command.
34
+//
35
+// A nil options pointer is equivalent to a zero options value.
36
func (c *Client) Status(mailbox string, options *imap.StatusOptions) *StatusCommand {
37
+ if options == nil {
38
+ options = new(imap.StatusOptions)
39
+ }
40
+
41
cmd := &StatusCommand{mailbox: mailbox}
42
enc := c.beginCommand("STATUS", cmd)
43
enc.SP().Mailbox(mailbox).SP()
0 commit comments