postfixpipe

package
v0.0.0-...-00f1f15 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package postfixpipe provides helpers for writing programs for Postfix dot-forwards and aliases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(es ExitStatus)

Exit and return a status to Postfix.

Types

type ExitStatus

type ExitStatus interface {
	// contains filtered or unexported methods
}

ExitStatus is an exit status that a program can pass to Postfix. May be a simple Sysexit code or (TODO) an RFC 3463 Enhanced Status Code.

type Message

type Message struct {
	// contains filtered or unexported fields
}

A Message is a context for a Postfix-pipe helper process; it is what Postix passes us.

func Get

func Get() *Message

Get instantiates a new Postfix-pipe context for this process.

func (*Message) Args

func (pm *Message) Args() []string

Args returns the command line arguments passed in by Postfix.

func (*Message) Intro

func (pm *Message) Intro() (string, locale.Error)

Intro returns the envelope line insertet by Postfix before the RFC 822-style message.

func (*Message) Reader

func (pm *Message) Reader() (io.Reader, locale.Error)

Reader returns an io.Reader for the RFC 822-style message.

type Sysexit

type Sysexit uint8

Sysexit is a simple numeric POSIX exit code.

Jump to

Keyboard shortcuts

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