Registry / serialization / emersion-go-mbox

emersion-go-mbox

JSON →
library1.0.4gogounverified

Package mbox parses and formats the mbox file format, specifically the mboxo variant, for reading and writing email archives.

go get github.com/emersion/go-mbox
INSTALL
IMPORT
SIG · EMERSION-GO-MBOX
E
emersion-go-mbox
serializationgov1.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mbox
github.com/emersion/go-mbox

Parse an mbox file and read each message's subject

package main import ( "fmt" "strings" "github.com/emersion/go-mbox" ) func main() { r := mbox.NewReader(strings.NewReader("From user@example.com\nSubject: Test\n\nHello")) for { msg, err := r.NextMessage() if err != nil { break } fmt.Println(msg.Header.Get("Subject")) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
emersion-go-mbox — go get emersion-go-mbox · libregistry