plaintext

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: BSD-3-Clause Imports: 2 Imported by: 4

Documentation

Overview

Package plaintext handles plain text messages.

Index

Constants

This section is empty.

Variables

View Source
var RenderPlainPDF func(env *envelope.Envelope, lmi, body, filename string) error
View Source
var Type = message.Type{
	Tag:     "plain",
	Name:    "plain text message",
	Article: "a",
}

Type is the type definition for a plain text message.

Functions

This section is empty.

Types

type PlainText

type PlainText struct {
	message.BaseMessage
	OriginMsgID string
	Handling    string
	Subject     string
	Body        string
}

PlainText holds the details of a plain text message.

func New

func New() (m *PlainText)

New creates a new plain text message.

func (*PlainText) EncodeBody

func (m *PlainText) EncodeBody() string

func (*PlainText) RenderPDF added in v1.8.3

func (m *PlainText) RenderPDF(env *envelope.Envelope, filename string) (err error)

Jump to

Keyboard shortcuts

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