From c1fbae6e0f5981d4d60f5b614d5d195ae5cde4a8 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Thu, 23 Apr 2020 23:39:20 +0200 Subject: A mailbox may exist, but not be writable when \Noselect is set --- internal/util/util.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 internal/util/util.go (limited to 'internal/util/util.go') 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 +} -- cgit v1.2.3-70-g09d2