Under Development
stars

Add or Update a Contact#

Prerequisites#

  1. An alias file configured via $alias_file and loaded with :source.

  2. If you haven’t set this up, complete Using the Address Book first.

Add a New Contact Manually#

  1. Open your alias file ($alias_file) in your editor.

  2. Add an :alias line:

alias carol Carol Davis <carol@example.com>    # tags:work
  1. Save the file.

  2. 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#

  1. Open a message in the index or pager.

  2. Press a (<create-alias>).

  3. Confirm or edit the alias name when prompted.

Expected result: NeoMutt appends the alias to $alias_file.

  1. Reload the file so the alias takes effect immediately:

:source ~/.config/neomutt/aliases

Update an Existing Contact#

  1. Open your alias file.

  2. Find and edit the alias line.

  3. Save and reload with :source.

Expected result: the alias expands to the updated address.

Remove a Contact#

  1. Delete the alias line from your alias file.

  2. 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.