msgid

package
v0.0.0-...-30b4a77 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package msgid contains helper functions for message ID generation and parsing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(sender string, rand io.Reader) (string, error)

Generate generates a new messageID in the form "year-month-hex(16byte-random)-sender".

func Parse

func Parse(messageID string) string

Parse parses the sender from the given messageID and returns it. Returns "" in case of error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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