pop3

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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