config

package
v0.0.0-...-5584dbf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Username contains the IMAPv4 user that your client will use to login.
	Username string `yaml:"username"`

	// Password contains the password for the user above. It must be bcrypted,
	// e.g. with `htpasswd -bnBC 10 "" 'potato'`
	Password string `yaml:"password"`

	// Maildir is the path to the directory holding your mail notmuch
	// database.
	Maildir string `yaml:"maildir"`

	// Mailboxes is a list of mailbox names and notmuch search querie.
	Mailboxes []Mailbox `yaml:"mailboxes"`

	// UidDatabase is used to persist the assigned UID for a message, to
	// keep clients from getting confused.
	UidDatabase string `yaml:"uidDataabase"`

	// If wanting to use encryption, path to the TLS certificate and private
	// key.
	TLSCertificate string `yaml:"tlsCertificate"`
	TLSKey         string `yaml:"tlsKey"`

	// Enable debug logging in go-imap
	Debug bool `yaml:"debug"`
}

func New

func New(path string) (*Config, error)

func (*Config) SetDefaults

func (c *Config) SetDefaults()

type Mailbox

type Mailbox struct {
	Name       string   `yaml:"name"`
	Query      string   `yaml:"query"`
	Attributes []string `yaml:"attributes"`
}

Jump to

Keyboard shortcuts

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