network

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: 16 Imported by: 0

Documentation

Overview

Deprecated: Will be replaced by the more general *World interface.

Index

Constants

This section is empty.

Variables

View Source
var OSNetwork osNetwork

Functions

func PrepareSend

func PrepareSend(rawmsg []byte) (sender *mail.Address, tos []*mail.Address, filteredrawmsg []byte, err error)

PrepareSend respects Sender, From, To, Cc, Bcc

func SendSMTP

func SendSMTP(network Network, cnf *config.Config, crypter vault.Crypter, sack sacks.Sack, mid msgs.MessageId) error

strips out Bcc

func Unique

func Unique(addresses []*mail.Address) error

Types

type ErrPartialSend

type ErrPartialSend struct {
	// contains filtered or unexported fields
}

TODO export fields

func (*ErrPartialSend) Error

func (err *ErrPartialSend) Error() string

func (*ErrPartialSend) Unwrap

func (err *ErrPartialSend) Unwrap() error

type Network

type Network interface {
	SendSMTP(crypter vault.Crypter, sender *config.Address, recipients []*netmail.Address, rawmessage msgs.Undocketed) error
}

Jump to

Keyboard shortcuts

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