Documentation ¶
Overview ¶
Package mbox saves a form to a local .mbox file (opengpg option)
Usage of mbox library is as follows:
Define mbox.Destination variable in your program ¶
Accept an email, populate the mbox.Form struct like this:
mbox.From = "joe" mbox.Email = "joe@blowtorches.info mbox.Message = "hello world" mbox.Subject = "re: hello joe" mbox.Save()
Package mbox saves a form to a local .mbox file (opengpg option)
Usage of mbox library is as follows:
Define mbox.Destination variable in your program ¶
Accept an email, populate the mbox.Form struct like this:
mbox.From = "joe" mbox.Email = "joe@blowtorches.info mbox.Message = "hello world" mbox.Subject = "re: hello joe" mbox.Save()
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ValidationLevel should be set to something other than 1 to resolve hostnames and validate emails ValidationLevel = 1 // Destination is the address where mail is "sent", its useful to change this to the address you will be replying to. Destination = "mbox@localhost" // Mail is the local mbox, implemented as a logger Mail *os.File )
View Source
var Writer = make(chan *Form)
Functions ¶
Types ¶
type Form ¶
Form is a single email. No Attachments yet.
func ParseFormGPG ¶
ParseFormGPG parses a url submitted query and returns a mbox.Form
func ParseQuery ¶
ParseQuery returns a mbox.Form from url.Values
func ParseQueryGPG ¶
ParseQueryGPG returns a mbox.Form from a url.Values but encodes the form.Message if publicKey is not nil
Click to show internal directories.
Click to hide internal directories.