Save an email to a .mbox file (sucks)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
LICENSE.md
README.md
gpg.go
mbox.go
mbox_test.go
writer.go

README.md

mbox library

save an email to an mbox file

package main

import "github.com/aerth/mbox"

func main(){
mbox.Destination = "me@localhost"

// Choose file name
mbox.Open("my.mbox")

// Build the email
var form mbox.Form
form.Email = "root@localhost"
form.Subject = "As seen on TV!!!"
form.Message = "This really works!"

// Save message to mailbox
mbox.Save(&form)
}