Documentation ¶
Index ¶
- func AddHeaders(content string, headers map[string]string) string
- func ExtractReceiverInternalName(content string) (receiver string, err error)
- func ExtractReceiverInternalNames(content string) (receiver []string, err error)
- func ExtractSenderAddress(content string) (address string, err error)
- func InternalToExternalAddress(address string) (shortAddr, fullAddr string, err error)
- func IsInternal(name string) bool
- func RewriteFromHeader(message string) (rewrittenMessage string, fromAddr string, toAddr []string, err error)
- func StripDomain(name string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHeaders ¶ added in v0.5.0
AddHeaders adds headers to a message.
func ExtractReceiverInternalNames ¶ added in v0.5.0
func ExtractSenderAddress ¶
ExtractSenderAddress returns full sender's address extracted from the content.
func InternalToExternalAddress ¶
InternalToExternalAddress parses the address and returns the short and full address suitable for sending messages to the external destinations.
func IsInternal ¶ added in v0.5.0
IsInternal returns true if the name refers to an internal recipient.
func RewriteFromHeader ¶
func RewriteFromHeader(message string) (rewrittenMessage string, fromAddr string, toAddr []string, err error)
RewriteFromHeader rewrites the message to change sender from internal to external format.
func StripDomain ¶ added in v0.5.0
StripDomain removes the domain name from name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.