xml

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 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 interface {
	// Export exports Gmail filters into the Gmail xml format.
	Export(author cfgv2.Author, filters filter.Filters, w io.Writer) error
}

Exporter exports the given entries to the Gmail xml format.

func DefaultExporter

func DefaultExporter() Exporter

DefaultExporter returns a default implementation of the XMLExporter interface.

Jump to

Keyboard shortcuts

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