aboutsummaryrefslogtreecommitdiff
path: root/internal/imap
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-04-24 18:53:32 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-04-24 18:53:32 +0200
commit79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 (patch)
treecbfd034a362666b8dab842d3afed18cf95124ede /internal/imap
parent7822c9d443458ae9d1d9d678e279bfc516da7a8f (diff)
downloadfeed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.gz
feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.bz2
feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.zip
Replace `interface{}` by `any`
Diffstat (limited to 'internal/imap')
-rw-r--r--internal/imap/connection.go4
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...)