message

package
v0.0.0-...-1fee6d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package message provides SMTP utility functions for MIME messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Store

func Store(session *Session, m Message) error

Stores a Message on disk, adding useful headers ("Received", "Return-Path").

Types

type Message

type Message struct {
	ID           int         //The non-unique ID of the message, if picked up from disk
	File         os.FileInfo //The FileInfo of the message, if picked up from disk
	Path         string      //The filepath of the message, if picked up from disk
	RemoteDomain string      //The identity used with EHLO or HELO
	Sender       string      //Return-Path set with the MAIL fommand
	Recipients   []string    //Recipients set with various RCPT commands
	Text         string      //Data received with the DATA command
}

A single message.

Jump to

Keyboard shortcuts

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