gm
github.com/galdor/go-mbox
go get github.com/galdor/go-mbox
gm

github.com/galdor/go-mbox

A Go library to parse mbox files.

by Nicolas Martyanoff

v0.0.0-20170509063637-183f307051a6 (see all)License:ISC
go get github.com/galdor/go-mbox
Readme

# 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.

```go 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.

GitHub Stars

11

LAST COMMIT

5yrs ago

MAINTAINERS

0

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
v0.0.0-20170509063637-183f307051a6
3yrs ago
No alternatives found
No tutorials found
Add a tutorial