Expand description
Mutt-style address aliases: lines of alias nick expansion... read
from $RMUT_ALIASES or ~/.config/rmut/aliases.
Functions§
- append_
to - Append
alias nick expansionto the alias file (create-alias), creating the file if needed. A repeated nick wins by coming later. Returns the path written. The same, into the file the config names. - complete
- Completion candidates for a partial address: expansions of every
alias whose nick starts with
word(case-insensitive), then query_command results, sorted and deduplicated.sortis mutt’s $sort_alias: “address” (by the expansion; the default), “alias” (by nick; “unsorted” reads the same, the file being a map), with “reverse-” flipping either. - default_
path - expand
- Expand comma-separated recipients; a bare token exactly matching an alias nick is replaced by its expansion.
- load
- The aliases in the file the config names, or the default one.
- parse
- path_
for - The alias file: what the config names (mutt’s $alias_file), else
$RMUT_ALIASES, else ~/.config/rmut/aliases. A leading
~is the home directory, as it is everywhere else. - query
- Run mutt’s query_command (
%s= the search word, appended when the command has no%s) and parse its output: the first line is a human message, then oneaddress<TAB>name[<TAB>extra]per line. - remove_
from - mutt’s unalias: drop these nicks (or every alias, for
*) from the alias file, rewriting it without them. How many lines went.