Documentation ¶
Index ¶
- Constants
- Variables
- func EmailAddrToReverse(e string) (string, error)
- func EmailAddrToSwapped(e string) (string, error)
- func EmailUserHostToReverse(user, host string) string
- func EmailUserHostToSwapped(user, host string) string
- func GmailAddressPlusTime(smtpUser string) (string, error)
- func ParseEmailAddress(e string) (string, string, error)
Constants ¶
View Source
const GmailHost = "gmail.com"
GmailHost is the Google mail smtp hostname.
Variables ¶
View Source
var ( ErrEmailAddressEmpty = errors.New("empty email address") ErrEmailAddressInvalidTooManyAts = errors.New("invalid email address. Too many ats") )
Functions ¶
func EmailAddrToReverse ¶ added in v0.41.0
EmailAddrToSwapped converts an email address to "reverse" format for sorting like: "com.example.www@@info"
func EmailAddrToSwapped ¶ added in v0.41.0
EmailAddrToSwapped converts an email address to "swapped" format for sorting like: "www.example.com@@info"
func EmailUserHostToReverse ¶ added in v0.41.0
func EmailUserHostToSwapped ¶ added in v0.41.0
func GmailAddressPlusTime ¶
GmailUserPlusTime creates a Gmail SMTP address appending a time in "DT14" time format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.