email_classification

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SUBSCRIBED_SUBJECT = enum.EventEmailInboundClassify.String()

Functions

func NewEmailClassificationService

func NewEmailClassificationService(
	natsConn *nats_internal.NATSConnections,
	repositories *repository.Repositories,
) interfaces.EmailProcessor

Types

type EmailClassificationService

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

func (*EmailClassificationService) Close

func (s *EmailClassificationService) Close() error

Close gracefully shuts down the service

func (*EmailClassificationService) Start

Start begins listening for events

type EmailHeaders

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
}

Jump to

Keyboard shortcuts

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