Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InternalDateSource InternalDateSource
// NeverMarkSpam keeps Gmail's spam classifier from filing the message as
// spam, whatever it makes of it.
NeverMarkSpam bool
// ProcessForCalendar has Gmail add the invitations the message carries to
// the user's calendar.
ProcessForCalendar bool
// Deleted marks the message as permanently deleted, visible only to a
// Workspace administrator.
Deleted bool
FetchOptions []fetch_config.Option
}
type InternalDateSource ¶
type InternalDateSource string
InternalDateSource is where Gmail takes an imported message's internal date from, which is what the mailbox sorts and dates it by.
const ( // InternalDateSourceReceivedTime dates the message at the moment it is // imported. Gmail's default. InternalDateSourceReceivedTime InternalDateSource = "receivedTime" // InternalDateSourceDateHeader dates the message by its own Date header. InternalDateSourceDateHeader InternalDateSource = "dateHeader" )
type Option ¶
type Option func(*Config)
func WithDeleted ¶
func WithFetchOptions ¶
func WithFetchOptions(fetchOptions ...fetch_config.Option) Option
func WithInternalDateSource ¶
func WithInternalDateSource(source InternalDateSource) Option
func WithNeverMarkSpam ¶
func WithProcessForCalendar ¶
Click to show internal directories.
Click to hide internal directories.