Documentation ¶
Index ¶
- Variables
- func Fuzz(data []byte) int
- func IsRecoverableError(err error) bool
- func Parse(line string) (Header, Payload, error)
- func ParseWithCustomTimeFormat(line string, format rawparser.TimeFormat) (Header, Payload, error)
- type BounceCreated
- type CleanupMessageAccepted
- type CleanupMilterReject
- type Delays
- type DovecotAuthFailed
- type DovecotAuthFailedReason
- type Header
- type LightmeterDumpedHeader
- type LightmeterRelayedBounce
- type Payload
- type Pickup
- type QmgrMailQueued
- type QmgrMessageExpired
- type QmgrRemoved
- type SmtpSentStatus
- type SmtpSentStatusExtraMessageNewUUID
- type SmtpSentStatusExtraMessageSentQueued
- type SmtpStatus
- type SmtpdConnect
- type SmtpdDisconnect
- type SmtpdDisconnectStat
- type SmtpdMailAccepted
- type SmtpdReject
- type Time
- type Version
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidHeaderLine = rawparser.ErrInvalidHeaderLine ErrUnsupportedLogLine = rawparser.ErrUnsupportedLogLine )
View Source
var ErrInvalidStatus = errors.New(`Invalid Status`)
Functions ¶
func IsRecoverableError ¶
Types ¶
type BounceCreated ¶
type CleanupMessageAccepted ¶
type CleanupMilterReject ¶
type DovecotAuthFailed ¶
type DovecotAuthFailedReason ¶
type DovecotAuthFailedReason int
const ( // TODO: Should we use iota for those values? // If we do not store them in a database, iota works just well UnsupportedDovecotAuthFailedReason DovecotAuthFailedReason = 0 DovecotAuthFailedReasonPasswordMismatch DovecotAuthFailedReason = 1 DovecotAuthFailedReasonUnknownUser DovecotAuthFailedReason = 2 DovecotAuthFailedReasonAuthPolicyRefusal DovecotAuthFailedReason = 3 )
func (DovecotAuthFailedReason) String ¶
func (r DovecotAuthFailedReason) String() string
type Header ¶
type LightmeterDumpedHeader ¶
type LightmeterDumpedHeader rawparser.LightmeterDumpedHeader
type LightmeterRelayedBounce ¶
type LightmeterRelayedBounce rawparser.LightmeterRelayedBounce
type QmgrMailQueued ¶
type QmgrMessageExpired ¶
type QmgrRemoved ¶
type QmgrRemoved struct {
Queue string
}
type SmtpSentStatus ¶
type SmtpSentStatus struct { Queue string RecipientLocalPart string RecipientDomainPart string OrigRecipientLocalPart string OrigRecipientDomainPart string RelayName string RelayPath string RelayIP net.IP RelayPort uint16 Delay float32 Delays Delays Dsn string Status SmtpStatus ExtraMessage string ExtraMessagePayload Payload }
type SmtpSentStatusExtraMessageNewUUID ¶
type SmtpSentStatusExtraMessageNewUUID struct {
ID string
}
type SmtpStatus ¶
type SmtpStatus int
const ( SentStatus SmtpStatus = 0 BouncedStatus SmtpStatus = 1 DeferredStatus SmtpStatus = 2 ExpiredStatus SmtpStatus = 3 ReturnedStatus SmtpStatus = 4 ReceivedStatus SmtpStatus = 42 // not an actual status; used in Message Detective RepliedStatus SmtpStatus = 43 // not an actual status; used in Message Detective )
func ParseStatus ¶
func ParseStatus(s string) (SmtpStatus, error)
func (SmtpStatus) String ¶
func (s SmtpStatus) String() string
type SmtpdConnect ¶
type SmtpdDisconnect ¶
type SmtpdDisconnect struct { Host string IP net.IP Stats map[string]SmtpdDisconnectStat }
type SmtpdDisconnectStat ¶
type SmtpdDisconnectStat = rawparser.SmtpdDisconnectStat
type SmtpdReject ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.