filter

package
v0.0.0-...-d18f405 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveUnlessToMe

func ArchiveUnlessToMe(fltr gmail.Filter) gmail.Filter

Types

type Filter

type Filter struct {
	Archive           bool
	ArchiveUnlessToMe bool
	Delete            bool
	ForwardTo         string
	Label             string
	Query             string
	QueryOr           []string
	Read              bool
	ToMe              bool
}

Filter defines a filter object.

func FindExistingFilter

func FindExistingFilter(filters []Filter, query string) Filter

func (Filter) ToGmailFilter

func (f Filter) ToGmailFilter() (gmail.Filter, error)

ToGmailFilter converts the an action into one or more gmail filters.

type Filterfile

type Filterfile struct {
	Filter []Filter
}

Filterfile defines a set of filter objects.

Jump to

Keyboard shortcuts

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