fieldnames

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package fieldnames is a collection of standard or commonly enough used field names in RFC 822 style mail messages. All herein defined symbols are string constants and in canonical form, as defined by net/textproto.CanonicalMIMEHeaderKey.

Index

Constants

View Source
const (
	MessageId = "Message-Id"

	Date = "Date"

	From   = "From"
	Sender = "Sender"

	To  = "To"
	Cc  = "Cc"
	Bcc = "Bcc"

	Subject = "Subject"

	ReplyTo    = "Reply-To"
	InReplyTo  = "In-Reply-To"
	References = "References"

	// RFC 8098 2.1
	DispositionNotificationTo = "Disposition-Notification-To"
)

standard

View Source
const (
	//Base = "Base"
	//ContentAlternative = "Content-Alternative"
	//ContentBase = "Content-Base"
	ContentDescription = "Content-Description"
	ContentDisposition = "Content-Disposition"
	//ContentDuration = "Content-Duration"
	//ContentFeatures = "Content-Features"
	//ContentId = "Content-Id"
	ContentLanguage = "Content-Language"
	//ContentLocation = "Content-Location"
	//ContentMd5 = "Content-Md5"
	ContentTransferEncoding = "Content-Transfer-Encoding"
	//ContentTranslationType = "ContentTranslationType"
	ContentType = "Content-Type"
	MimeVersion = "Mime-Version"
)

MIME see also Category.MIME()

View Source
const (
	XMailer   = "X-Mailer"
	UserAgent = "User-Agent"
)

non-standard

View Source
const (
	XBrief = "X-Brief"

	// this is a prefix
	XBrief_ = "X-Brief-"

	XBriefDocket   = XBrief_ + "Docket"
	XBriefChecksum = XBrief_ + "Checksum"
	XBriefSeal     = XBrief_ + "Seal"

	// this is a prefix
	XBriefSanitised__ = XBrief_ + "Sanitised--"

	// this is a prefix
	XBriefComposing_        = XBrief_ + "Composing-"
	XBriefComposingNote     = XBriefComposing_ + "Note"
	XBriefComposingIsolator = XBriefComposing_ + "Isolator"
)

non-standard, brief-defined

Variables

View Source
var Category category

home-brewed namespace

Functions

func ContainsCanonically

func ContainsCanonically(fieldnames []string, fieldname string) bool

like go 1.21's slices.Contains

Types

This section is empty.

Jump to

Keyboard shortcuts

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