xml

package
v0.0.0-...-ad46a6f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PropertyFrom             = "from"
	PropertyTo               = "to"
	PropertySubject          = "subject"
	PropertyHas              = "hasTheWord"
	PropertyMarkImportant    = "shouldAlwaysMarkAsImportant"
	PropertyMarkNotImportant = "shouldNeverMarkAsImportant"
	PropertyApplyLabel       = "label"
	PropertyApplyCategory    = "smartLabelToApply"
	PropertyDelete           = "shouldTrash"
	PropertyArchive          = "shouldArchive"
	PropertyMarkRead         = "shouldMarkAsRead"
	PropertyMarkNotSpam      = "shouldNeverSpam"
	PropertyStar             = "shouldStar"
	PropertyForward          = "forwardTo"
)

Property values

View Source
const (
	SmartLabelPersonal     = "personal"
	SmartLabelGroup        = "group"
	SmartLabelNotification = "notification"
	SmartLabelPromo        = "promo"
	SmartLabelSocial       = "social"
)

SmartLabel values

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

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

Exporter exports the given entries to the Gmail xml format.

func DefaultExporter

func DefaultExporter() Exporter

DefaultExporter returns a default XML exporter.

func NewWithTime

func NewWithTime(now func() time.Time) Exporter

NewWithTime returns a new exporter with the given time function.

func (Exporter) Export

func (x Exporter) Export(author v1alpha3.Author, filters filter.Filters, w io.Writer) error

Export exports Gmail filters into the Gmail xml format.

Jump to

Keyboard shortcuts

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