Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

go-mbox

Introduction

mbox is a Go library to parse mbox files. It currently supports the mboxrd format used for example for Google Mail exports.

Library

The basic use case is to open a mailbox file and read its messages. The following code does not include error handling.

mbox, _ := mbox.Open(path, mbox.Mboxrd)

for {
    msg, _ := mbox.Read()
    if msg == nil {
        break
    }

    fmt.Printf("%s\n", msg.Id)
}

mbox.Close()

mbox command

The mbox directory contains a tool to work with mbox files. Commands and options can be displayed with mbox -h.

Contact

If you have an idea or a question, email me at khaelin@gmail.com.

About

A Go library to parse mbox files.

Resources

License

Releases

No releases published

Packages

No packages published

Languages