pop3

package
v0.0.186 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pop3 provides shared POP3 protocol utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractApopTimestamp

func ExtractApopTimestamp(greeting string) (string, bool)

ExtractApopTimestamp looks for an APOP timestamp token (<...@...>) in the greeting.

func ParseCapabilities

func ParseCapabilities(lines []string) (caps []string, authMechanisms []string, implementation string, loginDelay int, expireDays string)

ParseCapabilities parses the multi-line response from a CAPA command. Input is the full response body (lines after +OK, before the terminating ".").

func ParseGreeting

func ParseGreeting(line string) string

ParseGreeting extracts the greeting message text from a "+OK ..." line.

func ReadGreeting

func ReadGreeting(reader *bufio.Reader) (string, error)

ReadGreeting reads the initial POP3 +OK greeting from a buffered reader. The caller must supply the persistent reader so no bytes are lost to discard.

Types

This section is empty.

Jump to

Keyboard shortcuts

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