exim

package
v0.0.0-...-b45dff2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package exim implements some stuff around the Exim SMTP server.

Currently this is limited to a mainlog processor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mainlog

type Mainlog struct {
	Files             []string
	Verbose, Warnings bool
	MaxProcs          int
}

Mainlog represent the collection of mainlog files

func (Mainlog) Parse

func (mainlog Mainlog) Parse(messages chan<- *MessageLog) error

Parse walks the Mainlogs and sends completed MessageLogs to the messages channel.

type MainlogLine

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

mainlogLine represents a mainlog line

func (*MainlogLine) String

func (ml *MainlogLine) String() string

String represents the Mainlog line as a string

type MessageLog

type MessageLog struct {
	TimeReceived, TimeDone time.Time
	ID                     string

	Sender    string
	Client    string
	Proto     string
	Completed bool

	Recipients []string
	// contains filtered or unexported fields
}

MessageLog represents the logs of a single message

func (MessageLog) Fields

func (m MessageLog) Fields() (fields []string)

Fields returns the list of exported fields

func (*MessageLog) Log

func (ml *MessageLog) Log() (lines []string)

Log returns the log lines

Jump to

Keyboard shortcuts

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