Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

galdor/go-mbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages