Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + func PlusToken(m InboundMail) (string, bool) + type Attachment struct + ContentType string + Data []byte + Filename string + Size int + type Handler func(ctx context.Context, m InboundMail) error + type InboundMail struct + Attachments []Attachment + Cc []string + From string + HTML string + Headers map[string]string + MessageID string + ReceivedAt time.Time + Subject string + Text string + To []string + func FromMailgun(r *http.Request) (InboundMail, error) + func FromSendGrid(r *http.Request) (InboundMail, error) + func ParseRFC822(raw []byte) (InboundMail, error) + type Matcher func(m InboundMail) bool + func SubjectMatch(pattern string) Matcher + func ToContains(sub string) Matcher + func ToPrefix(prefix string) Matcher + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) CatchAll(h Handler) + func (s *Service) Dispatch(ctx context.Context, m InboundMail) error + func (s *Service) Received() []InboundMail + func (s *Service) Route(m Matcher, h Handler)