eml2img

package module
v0.0.0-...-21e7174 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 5 Imported by: 0

README

eml2img

GoDoc Go Report Card

Convert MIME emails to an image.

Usage

Ensure wkhtmltoimage is installed. Then:

$ go run cmd/eml2img/main.go mail.eml out.png

Credits

eml2img makes use of several great projects:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EML2Img

type EML2Img struct {
	// contains filtered or unexported fields
}

EML2Img is a type which provides methods to allow an email to be converted to an image. Use New() to construct an instance of this type.

func New

func New() (*EML2Img, error)

New creates a new instance of EML2Img.

func (*EML2Img) Convert

func (e2i *EML2Img) Convert(ctx context.Context, r io.Reader, w io.Writer) error

Convert takes as input an eml file and outputs a png image.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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