Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Name string `scfg:",param"`
Server string `scfg:"server"`
Username string `scfg:"username"`
PasswordCmd []string `scfg:"password-cmd"` // Command and arguments to retrieve password.
LocalPath string `scfg:"local-path"`
PostSyncCmd []string `scfg:"post-sync-cmd"` // Command to run after each sync.
MaxConnections int `scfg:"max-connections"`
Ignore []Ignore `scfg:"ignore"`
// Runtime-resolved commands.
Password string
Plaintext bool
// Testing only.
StateDir string
}
Account represents a single IMAP account configuration.
func (Account) IgnoreRegexes ¶ added in v0.4.2
func (*Account) ResolvePassword ¶
ResolvePassword executes the password-cmd and stores the result in Password field. The password is read from stdout and trimmed of whitespace/newlines.
Click to show internal directories.
Click to hide internal directories.