Documentation
¶
Overview ¶
Package configedit makes small, comment-preserving changes to a mailctl config file. It edits the YAML node tree rather than round-tripping through the config structs, which would delete every comment in the file.
Comments, key order, and quoting all survive an edit, because the yaml.Node tree carries them. Blank lines do not: yaml.Node has no node representing a blank line, so re-encoding the tree drops every blank line in the file, not just ones near the edited section. Callers that edit a hand-formatted file should tell the operator; see main's noteConfigRewritten.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMailbox ¶
AddMailbox appends a mailbox to a domain.
func RemoveAlias ¶
RemoveAlias drops an alias from a domain.
func RemoveMailbox ¶
RemoveMailbox drops a mailbox from a domain. It does not delete the mailbox at the provider; that happens on the next apply with -prune.
Types ¶
This section is empty.