Add or Update a Contact#
Prerequisites#
An alias file configured via
$alias_fileand loaded with:source.If you haven’t set this up, complete Using the Address Book first.
Add a New Contact Manually#
Open your alias file (
$alias_file) in your editor.Add an
:aliasline:
alias carol Carol Davis <carol@example.com> # tags:work
Save the file.
Reload it in NeoMutt:
:source ~/.config/neomutt/aliases
Expected result: the new alias is available at address prompts.
Add a Contact from a Received Message#
Open a message in the index or pager.
Press a (
<create-alias>).Confirm or edit the alias name when prompted.
Expected result: NeoMutt appends the alias to $alias_file.
Reload the file so the alias takes effect immediately:
:source ~/.config/neomutt/aliases
Update an Existing Contact#
Open your alias file.
Find and edit the alias line.
Save and reload with
:source.
Expected result: the alias expands to the updated address.
Remove a Contact#
Delete the alias line from your alias file.
Save and reload.
Alternatively, remove it at runtime without editing the file:
unalias carol
Expected result: the alias is no longer available.
See Manage Aliases for the full alias syntax and Using the Address Book for the setup tutorial.