ALI(1mh)
π 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/nmhgets checked. last resort bestie. π
and also:
$HOME/.mh_profileβ the user's profile. π
π PROFILE COMPONENTS π
Path:β to determine the user's nmh directoryAliasfile:β for a default alias file
π SEE ALSO π
β 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
- debian trixie: nmh 1.8-3
- ubuntu noble: nmh 1.8-1build4
- ubuntu questing: nmh 1.8-3
- ubuntu resolute: nmh 1.8-4
- ubuntu stonking: nmh 1.8-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms