ALI(1mh)

πŸ“¦
version 1.8 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– ALI πŸ’– β€” like, the ali command from nmh, bestie

okay so real talk: this is the manual page for ali, and honestly? she's that girl. she lists your nmh mail aliases for you. that's the whole vibe. let's get into it πŸ’…


✨ SYNOPSIS ✨

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

like. look at her. so organized. so iconic. πŸŽ€


🌸 DESCRIPTION 🌸

so ali goes digging through the mail alias files you named, looking for each of the aliases you gave her. then she builds a list of the addresses those aliases expand into and writes that list straight to standard output. no drama, no cap.

and if you give her, like, no arguments at all? she just outputs all the alias entries. generous queen. πŸ‘‘

by default, when an alias expands to multiple addresses, those addresses get separated by commas and squished onto as few lines as possible. but if you hit her with the -list switch and an address expands to multiple addresses, then each address shows up on its own separate line. breathing room. self-care. periodt. πŸ¦‹

now the -user switch flips the whole thing. it directs ali to do her processing in an inverted fashion β€” instead of listing the addresses that each alias you gave her expands to, she'll list the aliases that expand to each given address. reversed. remixed. main character energy fr fr. πŸ”₯

the files specified by the profile entry β€œAliasfile” get read, plus any extra alias files you toss in with the -alias aliasfile switch. every alias is processed exactly as described in mh-alias(5). iykyk πŸ’œ


πŸ—‚οΈ FILES πŸ—‚οΈ

okay so alias files get looked up in multiple locations, and the rules go like this:

  • if the pathname is absolute, or it starts with β€œ.” or β€œ..”, it gets accessed directly. straight up. no detours.
  • otherwise, tilde expansion is done on usernames, and then the files get searched for in the user's Mail directory as specified in their profile.
  • if it's not found there either, then the directory /etc/nmh gets checked. last resort bestie. πŸ™ˆ

and also:

  • $HOME/.mh_profile β€” the user's profile. πŸ’–

πŸŽ€ PROFILE COMPONENTS πŸŽ€

  • Path: β€” to determine the user's nmh directory
  • Aliasfile: β€” for a default alias file

πŸ‘€ SEE ALSO πŸ‘€

mh-alias(5)


⭐ DEFAULTS ⭐

  • aliasfile β€” /etc/nmh/MailAliases
  • -nolist
  • -nouser

πŸ’€ CONTEXT πŸ’€

None

like, literally none. nothing. empty. she said "no context, i'm mysterious." 🧚


and that's the whole page, bestie!! this lil manual is from nmh-1.8 and it was dated 2013-12-05 β€” vintage, honestly, but she still ate. πŸ’…βœ¨πŸ«ΆπŸ“

πŸ“¦ where this page comes from