Versions in this module Expand all Collapse all v0 v0.0.3 Sep 10, 2020 v0.0.2 Sep 5, 2020 Changes in this version + const BounceInterval + func NewBot(backend Backend) *bot + func NewBotFactory(backend Backend) botFactory + func NewList(backend Backend, definition Definition) *list + func SendMail(addr string, a smtp.Auth, from string, to []string, msg []byte) error + type Backend interface + Config func() Config + CreateList func(Definition) error + DeleteList func(string) error + ListIsSubscribed func(Definition, string) (*Subscription, error) + ListSetBounce func(Definition, string, uint16, time.Time) error + ListSubscribe func(Definition, string) error + ListSubscribers func(Definition) ([]Subscription, error) + ListUnsubscribe func(Definition, string) error + Lists func() ([]Definition, error) + LookupList func(string) (*Definition, error) + ModifyList func(string, Definition) error + type BounceResponse struct + Address string + BounceAddress string + List string + type Command struct + func AddCommand(app *kingpin.Application, admin bool, userAddress string, ...) *Command + func NewCommand(admin bool, userAddress string, b *bot, w io.Writer) *Command + func (c *Command) Parse(params []string) (string, error) + func (c *Command) ParseString(paramsString string) (string, error) + type Config struct + AdminAddresses []string + BouncesAddress string + CommandAddress string + Debug bool + SMTPHostname string + SMTPPassword string + SMTPPort uint64 + SMTPUsername string + type Definition struct + Address string + Bcc []string + Description string + Hidden bool + Locked bool + Name string + Posters []string + SubscribersOnly bool + func (def Definition) String() string + type Message struct + Address string + Bcc string + Body []byte + Cc string + ContentType string + Date string + From string + Headers map[string][]string + InReplyTo string + ListArchive string + ListHelp string + ListID string + ListOwner string + ListSubscribe string + ListUnsubscribe string + MIMEVersion string + Precedence string + Sender string + Subject string + To string + XLoop string + XMailingList string + func (msg *Message) FromReader(stream io.Reader) error + func (msg *Message) Reply() *Message + func (msg *Message) ResendAs(list *list, commandAddress string) *Message + func (msg *Message) Send(envelopeSender string, recipients []string, SMTPHostname string, ...) error + func (msg *Message) SendDebug(envelopeSender string, recipients []string) string + func (msg *Message) SendVERP(envelopeSender string, recipients []string, SMTPHostname string, ...) error + func (msg *Message) String() string + type Subscription struct + Address string + Bounces uint16 + LastBounce time.Time