Documentation ¶
Index ¶
Constants ¶
const DefaultDomain = "@bitmaelum.network"
DefaultDomain is the default (dummy?) domain to be used to translate the BitMaelum address to/from
const GatewayAddress = "mailgateway!"
GatewayAddress is the gateway address to send external email messages to
Variables ¶
This section is empty.
Functions ¶
func AddrToEmail ¶
AddrToEmail will translate an address string to a valid email using DefaultDomain
func EmailToAddr ¶
EmailToAddr will translate a (mocked?) domain on the DefaultDomain to an address string
func GetClientAndInfo ¶
GetClientAndInfo will get AccountInfo and API from account in the Vault
Types ¶
type MimeMessage ¶
type MimeMessage struct { ID string From *mail.Address To []*mail.Address Subject string Date time.Time Blocks []string Attachments map[string][]byte }
MimeMessage contains the struct to encode or decode a mime message the attachments are in the format "filename" -> base64 data
func DecodeFromMime ¶
func DecodeFromMime(m string) (*MimeMessage, error)
DecodeFromMime will decode a mime message and return a MimeMessage struct
func (*MimeMessage) EncodeToMime ¶
func (msg *MimeMessage) EncodeToMime() ([]byte, error)
EncodeToMime will encode a MimeMessage struct to a MIME message