mail

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouteMessage

func RouteMessage(message *amqp.Delivery)

RouteMessage routes a message to the appropriate worker

Types

type ReceivedMailPayload

type ReceivedMailPayload struct {
	Content    string   `json:"content"`     // MIME content of the email
	IP         string   `json:"ip"`          // Client IP address
	Hostname   string   `json:"hostname"`    // Server hostname
	From       string   `json:"from"`        // Sender email address
	Rcpt       []string `json:"rcpt"`        // Recipient email addresses
	QueueID    string   `json:"queue_id"`    // Queue identifier
	User       string   `json:"user"`        // Authenticated user (if any)
	DeliverTo  string   `json:"deliver_to"`  // Primary delivery address
	ReceivedAt string   `json:"received_at"` // Date and time when the email was received
}

ReceivedMailPayload represents the complete AMQP payload for received mail messages

Jump to

Keyboard shortcuts

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