xmailerdaemon

package
v0.0.0-...-2d08fc6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package xmailerdaemon mail delivery reports parser with X-Mailer-Daemon-* header.

Supported X-Mailer-Daemon-* delimiters is ";" and ","

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorNilMessage returned when message is nil
	ErrorNilMessage = errors.New("Message is nil")

	// ErrorDSNNotFound retured when DSN cannot be found in message
	ErrorDSNNotFound = errors.New("DSN not found in message")
)

Functions

func IsDSN

func IsDSN(message *mail.Message) bool

IsDSN checks that message is valid Delivery Status Notification (DSN)

Types

type Result

type Result struct {
	Address string
	Reason  string
}

Result represent Parse results

func Parse

func Parse(message *mail.Message) ([]Result, error)

Parse parses Delivery Status Notification (DSN) from mail message and returs failed recipients list

Jump to

Keyboard shortcuts

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