pop3

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: BSD-3-Clause, GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Decoder = &decoder.StreamDecoder{
	Type:        types.Type_NC_POP3,
	Name:        servicePOP3,
	Description: "The POP3 protocol is used to fetch emails from a mail server",
	PostInit: func(sd *decoder.StreamDecoder) (err error) {
		pop3Log, _, err = logging.InitZapLogger(
			decoderconfig.Instance.Out,
			"pop3",
			decoderconfig.Instance.Debug,
		)
		if err != nil {
			return err
		}
		pop3LogSugared = pop3Log.Sugar()
		return nil
	},
	CanDecode: func(client, server []byte) bool {
		return bytes.Contains(server, pop3Ident)
	},
	DeInit: func(sd *decoder.StreamDecoder) error {
		return pop3Log.Sync()
	},
	Factory: &pop3Reader{},
	Typ:     core.TCP,
}

Decoder for protocol analysis and writing audit records to disk.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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