IM::Alias(3pm)
π IM::Alias π
okay bestie, you found it β this is IM::Alias, aka the mail and host alias looking up package, living in the 3pm manual, part of the Internet Message Perl modules squad. she's here to handle your mail aliases AND your host aliases, and honestly? she ate. π
β¨ SYNOPSIS β¨
use IM::Alias;
alias_read(mail_alias_files, addrbook_files);
$result = alias_lookup(user_name);
alias_print(alias);
hosts_read(hosts_alias_files);
$result = hosts_completion(mail_address);
hosts_print(alias);
like, that's the whole vibe. read your files, look stuff up, print it. no cap. π¦
πΈ DESCRIPTION πΈ
so the tea is: the IM::Alias module handles mail and host aliases. that's it, that's the job, and she does it beautifully. π
and just so you know where she came from β this module is provided by IM (Internet Message). iykyk. π
π§ EXAMPLES π§
here's how you'd actually use her, fr fr:
alias_read("$HOME/.im/Aliases", "$HOME/.im/Addrbook");
hosts_read("$HOME/.hostaliases");
$result = alias_lookup('u');
print "$result\n" if ($result);
$result = hosts_completion('u@h');
print "$result\n" if ($result);
and for the print girlies:
alias_print("a")displays mail addresses whose alias is"a". πhosts_print("")displays all host aliases. passing an empty string = show me everything, main character energy. β¨
π COPYRIGHT π
IM (Internet Message) is copyrighted by the IM developing team. you can redistribute it and/or modify it under the modified BSD license β so go off, just do it responsibly. see the copyright file for more details. π
lowkey important reminder: that's the whole copyright situation, no extra clauses hiding anywhere, bestie. π
and that's a wrap on the IM::Alias page, mwah π«Ά β this gem was served up as version IM153, dated 2016-10-10, and she's still iconic. π
π¦ where this page comes from
- debian bookworm: im 1:153-4 Β· BSD-3-Clause
- debian trixie: im 1:153-4 Β· BSD-3-Clause
- ubuntu jammy: im 1:153-4 Β· BSD-3-Clause
- ubuntu noble: im 1:153-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms