mbox

package module
v0.0.0-...-f139c57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2013 License: MIT Imports: 6 Imported by: 0

README

mbox

A golang parser for mbox format.

This code was adapted from https://github.com/bytbox/slark (it was packaged as an app, not a library). Also, we switched to the stdlib mail parser.

Documentation

Overview

Package mbox parses the mbox file format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader, debug bool) (msgs []*mail.Message, err error)

If debug is true, errors parsing messages will be printed to stderr. If false, they will be ignored. Either way those messages will not appear in the msgs slice.

func ReadFile

func ReadFile(filename string, debug bool) ([]*mail.Message, error)

If debug is true, errors parsing messages will be printed to stderr. If false, they will be ignored. Either way those messages will not appear in the msgs slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL