Documentation ¶
Index ¶
- func AddAddrContext(email, context string) (string, error)
- func CanonicalEmail(email string) string
- func FormReply(email *Email, reply string) string
- func MergeEmailLists(lists ...[]string) []string
- func ParsePatch(message []byte) (diff string)
- func RemoveAddrContext(email string) (string, string, error)
- func RemoveFromEmailList(list []string, toRemove string) []string
- type Command
- type Email
- type MessageAction
- type OldThreadInfo
- type SingleCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAddrContext ¶
AddAddrContext embeds context into local part of the provided email address using '+'. Returns the resulting email address.
func CanonicalEmail ¶
func MergeEmailLists ¶
MergeEmailLists merges several email lists removing duplicates and invalid entries.
func ParsePatch ¶
func RemoveAddrContext ¶
RemoveAddrContext extracts context after '+' from the local part of the provided email address. Returns address without the context and the context.
func RemoveFromEmailList ¶
Types ¶
type Email ¶
type MessageAction ¶
type MessageAction string
const ( ActionIgnore MessageAction = "ignore" ActionAppend MessageAction = "append" ActionNewThread MessageAction = "new-thread" )
func NewMessageAction ¶
func NewMessageAction(msg *Email, msgType dashapi.DiscussionType, oldThread *OldThreadInfo) MessageAction
type OldThreadInfo ¶
type OldThreadInfo struct {
ThreadType dashapi.DiscussionType
}
type SingleCommand ¶
Click to show internal directories.
Click to hide internal directories.