Documentation ¶
Index ¶
- func HashMailboxName(mailbox string) string
- func MakePathPrefixer(prefix string) func(string) string
- func MatchWithWildcards(p string, s string) bool
- func SliceContains(slice []string, s string) bool
- func SliceToLower(slice []string)
- func StringAddress(a *mail.Address) string
- func StringAddressList(addrs []*mail.Address) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashMailboxName ¶
HashMailboxName accepts a mailbox name and hashes it. filestore uses this as the directory to house the mailbox
func MakePathPrefixer ¶
MakePathPrefixer returns a function that will add the specified prefix (base) to URI strings. The returned prefixer expects all provided paths to start with /.
func MatchWithWildcards ¶
MatchWithWildcards tests if a "s" string matches a "p" pattern with wildcards (*, ?)
func SliceContains ¶
SliceContains returns true if s is present in slice.
func SliceToLower ¶
func SliceToLower(slice []string)
SliceToLower lowercases the contents of slice of strings.
func StringAddress ¶
StringAddress converts an Address to a UTF-8 string.
func StringAddressList ¶
StringAddressList converts a list of addresses to a list of UTF-8 strings.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.