aboutsummaryrefslogtreecommitdiff
path: root/internal/util
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-23 23:39:20 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-23 23:39:20 +0200
commitc1fbae6e0f5981d4d60f5b614d5d195ae5cde4a8 (patch)
treefd75401dadbe1e4788b19458bc84e697b722d386 /internal/util
parentf8a89ce8d9a3d5882a484fcaec810dc90f4a5e5d (diff)
downloadfeed2imap-go-c1fbae6e0f5981d4d60f5b614d5d195ae5cde4a8.tar.gz
feed2imap-go-c1fbae6e0f5981d4d60f5b614d5d195ae5cde4a8.tar.bz2
feed2imap-go-c1fbae6e0f5981d4d60f5b614d5d195ae5cde4a8.zip
A mailbox may exist, but not be writable when \Noselect is set
Diffstat (limited to 'internal/util')
-rw-r--r--internal/util/util.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/util/util.go b/internal/util/util.go
new file mode 100644
index 0000000..c5472ab
--- /dev/null
+++ b/internal/util/util.go
@@ -0,0 +1,11 @@
+package util
+
+func StrContains(haystack []string, needle string) bool {
+ for _, s := range haystack {
+ if s == needle {
+ return true
+ }
+ }
+
+ return false
+}