Fix Missing or Outdated Aliases#
Prerequisites#
An alias file configured via
$alias_file(see Using the Address Book).
Alias Does Not Expand#
Confirm the alias file is sourced in your
neomuttrc:
source ~/.config/neomutt/aliases
Confirm the file path matches
$alias_file:
:set alias_file?
Reload the file:
:source ~/.config/neomutt/aliases
Expected result: after reloading, the alias expands at address prompts.
Check for Syntax Errors#
Look for common problems in the alias file:
Missing angle brackets around the email address.
Commas missing between multiple addresses in a group alias.
Unmatched quotes in comments.
Correct format:
alias alice Alice Example <alice@example.com>
alias team alice, bob
Start NeoMutt and watch for error messages on the command line at the bottom of the screen.
Expected result: NeoMutt reports the file and line number of any syntax error.
Alias Saved but Not Available#
When <create-alias> appends to $alias_file, NeoMutt does not re-source the file automatically.
Reload after saving:
:source ~/.config/neomutt/aliases
Or use a macro that saves and reloads in one step (see Speed Up Address Book Access).
Expected result: the newly saved alias is immediately usable.
Alias Points to an Old Address#
Open the alias file and update the entry.
Save and reload with
:source.
Expected result: the alias expands to the corrected address.
Duplicate Alias Names#
Alias names are matched case-insensitively. If two entries share the same name, the last one defined wins.
Search the alias file for duplicates:
grep -i "^alias alice" ~/.config/neomutt/aliases
Remove or rename the duplicate.
Expected result: only one alias with that name remains.
See Manage Aliases for the full alias syntax.