xfailedrecipients

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 xfailedrecipients mail delivery reports parser with X-Failed-Recipients header.

Supported X-Failed-Recipients 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 X-Failed-Recipients Delivery Status Notification (DSN)

func Parse

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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