envelope

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package envelope implements functions related to handling email envelopes (basically tuples of (from, to, data).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeader

func AddHeader(data []byte, k, v string) []byte

AddHeader adds (prepends) a MIME header to the message.

func DomainIn

func DomainIn(addr string, locals *set.String) bool

DomainIn checks that the domain of the address is on the given set.

func DomainOf

func DomainOf(addr string) string

DomainOf user@domain returns domain.

func Split

func Split(addr string) (string, string)

Split an user@domain address into user and domain.

func UserOf

func UserOf(addr string) string

UserOf user@domain returns user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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