email_processor

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailProcessor added in v0.1.12

func NewEmailProcessor(
	repositories *repository.Repositories,
	eventsService *events.EventsService,
	aiService interfaces.AIService,
) interfaces.EmailProcessor

Types

type EmailHeaders added in v0.1.13

type EmailHeaders struct {
	AutoSubmitted      bool
	ContentDescription string
	DeliveryStatus     bool
	ListUnsubscribe    bool
	Precedence         string
	ReturnPath         string
	ReturnPathExists   bool
	XAutoreply         string
	XAutoresponse      string
	XLoop              bool
	XFailedRecipients  []string
	ReplyTo            string
	ReplyToExists      bool
	Sender             string
	ForwardedFor       string
	DKIM               []string
	SPF                string
	DMARC              string
}

type ImapProcessor added in v0.1.12

type ImapProcessor struct {
	interfaces.EmailProcessor
	// contains filtered or unexported fields
}

func NewImapProcessor added in v0.1.12

func NewImapProcessor(
	processor interfaces.EmailProcessor, imapService interfaces.IMAPService, emailStore interfaces.EmailStore,
) *ImapProcessor

func (*ImapProcessor) ProcessIMAPMessage added in v0.1.12

func (p *ImapProcessor) ProcessIMAPMessage(ctx context.Context, inboundEmail dto.EmailReceived) error

Jump to

Keyboard shortcuts

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