email

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 13 Imported by: ? 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 email registers a handler of email messages, such as .eml files, which returns their kind, their subject, sender, date, identifier and the start of their text as Dublin Core, their addresses and attachments, and their headers and text as Markdown

Index

Constants

View Source
const (
	// Namespace is the namespace of the addresses and attachments of an
	// email message
	Namespace = "email"
)

Variables

This section is empty.

Functions

func Markdown

func Markdown(ctx context.Context, m *eml.Message, untitled string) (string, error)

Markdown returns a message as Markdown: its subject as a heading, or the untitled heading, when it has no subject and it isn't empty, its sender, recipients, date and attachments as a list, and its text as paragraphs, with its line breaks, and its quoted lines as block quotes, or its HTML converted to Markdown, when it has no text. It's empty for a message without any of them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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