ALI(1)

πŸ’– okay bestie, this is the manual for ali, the little tool that lists your nmh mail aliases ✨


🌸 NAME 🌸

ali β€” list nmh mail aliases πŸ’Œ

πŸ“œ SYNOPSIS πŸ“œ

ali [-help] [-version] [-alias aliasfile] [-list | -nolist] [-user |
     -nouser] [aliases ...]

πŸ’… DESCRIPTION πŸ’…

ali digs through the mail alias files you point it to, looks up each alias you give it, builds a list of addresses for those aliases, and writes that list to standard output. No arguments? It serves up every alias entry πŸ”₯

By default, when an alias expands to multiple addresses, they get separated by commas and printed on as few lines as possible 🧁 But if you use -list, and an address expands to multiple addresses, each address gets its own line πŸ¦‹

-user flips the whole vibe πŸ™ƒ Instead of listing the addresses each alias expands to, ali lists the aliases that expand to each address you gave it. Main character energy πŸ‘‘

The files named by the profile entry β€œAliasfile” get read, plus any extra alias files you add with -alias aliasfile πŸ“‚ Every alias gets processed the way mh-alias(5) describes 🧚

  • -help and -version β€” these two show up in the SYNOPSIS, but this page doesn't say anything more about them, so no tea spilled here 🀷
  • -alias aliasfile β€” adds another alias file to read, on top of the one from your profile πŸ“
  • -list β€” puts each address that an address expands to on its own line 🌈
  • -nolist β€” the default, so commas and as few lines as possible πŸ“
  • -user β€” lists the aliases that expand to each given address, instead of the addresses each alias expands to πŸ”„
  • -nouser β€” the default, so you get the regular alias-to-addresses listing πŸ’œ
  • aliases ... β€” the aliases you want looked up. Leave this out and you get all the entries ✨

πŸ“‚ FILES πŸ“‚

Alias files get looked up in a few different places, so listen up πŸ‘€ If the pathname is absolute, or starts with β€œ.” or β€œ..”, ali opens it directly 🎯 Otherwise, tilde expansion happens on usernames, then it searches the user's Mail directory as set in their profile πŸ“¬ If it's not there either, it checks the directory β€œ/etc/nmh” 🫢

  • $HOME/.mh_profile β€” your profile, the main character file 🧚

🧚 PROFILE COMPONENTS 🧚

  • Path: β€” figures out your nmh directory πŸ—‚οΈ
  • Aliasfile: β€” sets a default alias file πŸ’–

πŸ”— SEE ALSO πŸ”—

πŸŽ€ DEFAULTS πŸŽ€

  • aliasfile β€” /etc/nmh/MailAliases 🌷
  • -nolist πŸ“
  • -nouser 🌸

🫢 CONTEXT 🫢

None. No context needed, periodt πŸ’…


That's the whole tea, bestie πŸ’œ This was nmh-1.8, dated 2013-12-05, ALI(1) πŸ¦‹βœ¨

πŸ“¦ where this page comes from