diff options
Diffstat (limited to '')
-rw-r--r-- | internal/imap/connection.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/imap/connection.go b/internal/imap/connection.go index b93a61f..8c0f59c 100644 --- a/internal/imap/connection.go +++ b/internal/imap/connection.go @@ -125,7 +125,7 @@ func (conn *connection) ensureFolder(folder Folder) error { } switch { - case found == 0 || (found == 1 && util.StrContains(mbox.Attributes, imap.NoSelectAttr)): + case found == 0 || (found == 1 && util.Contains(mbox.Attributes, imap.NoSelectAttr)): return conn.createFolder(folder.str) case found == 1: conn.mailboxes.add(mbox) @@ -137,7 +137,7 @@ func (conn *connection) ensureFolder(folder Folder) error { func (conn *connection) delete(uids []uint32) error { storeItem := imap.FormatFlagsOp(imap.AddFlags, true) - deleteFlag := []interface{}{imap.DeletedFlag} + deleteFlag := []any{imap.DeletedFlag} seqSet := new(imap.SeqSet) seqSet.AddNum(uids...) |