Mail::Audit::List(3)
π Mail::Audit::List β the perl manual page, but make it a group chat
okay bestie, welcome to the Mail::Audit::List page, straight out of the User Contributed Perl Documentation section (that's the manual name, we're folding it in, you're welcome π«Ά). This is a Mail::Audit plugin for automatic list delivery and honestly? it's giving "my inbox organises itself" energy. π
β¨ NAME β¨
Mail::Audit::List β a Mail::Audit plugin for automatic list delivery. It literally does what it says on the tin, no cap. π
πΈ VERSION πΈ
version 1.853 β that's the one, that's the vibe check. β
π SYNOPSIS π
use Mail::Audit qw(List);
my $mail = Mail::Audit->new;
...
$mail->list_accept || $mail->accept;
See how cute that is? list_accept tries its thing, and if it doesn't work out, accept catches the fallback. Iconic teamwork. π
π DESCRIPTION π
This is a Mail::Audit plugin that gives you a method for automatically delivering mailing lists to a suitable mailbox. That's the whole personality. π¦
It requires the CPAN Mail::ListDetector module β so like, you gotta have that installed, bestie, it's not optional, fr fr.
π§ METHODS π§
π list_accept($delivery_dir, \%arg)
Attempts to deliver the message as a mailing list. It will place each message in $deliver_dir/$list_name. The default value of $deliver_dir is "$ENV{HOME} . "/mail"".
For instance, mail to perl5-porters@perl.org will end up by default in /home/you/mail/perl5-porters.
Calls accept and returns the filename delivered to if Mail::ListDetector can identify this mail as coming from a mailing list, or 0 otherwise. So either you get a filename (slay) or you get a 0 (not slay, but informative). π
Valid named arguments are:
munge_nameβ a coderef called to munge the name given by Mail::ListDetector. You know, for when the detected name needs a little glow-up. β¨
π¨ IMPORTANT, DON'T SKIP THIS ONE: if you want to use the default delivery location but also pass args, you must call the method like this:perl $audit->list_accept(undef, { ... });Passundeffirst, bestie. That's the move. Don't fight it. π
The recipe given above should be able to replace a great number of special-casing recipes. Which is lowkey the whole point β one recipe to rule them all instead of forty little hacks. π
π¦ SEE ALSO π¦
Mail::Auditβ go read that one next, it's the parent, the main character. π
π AUTHOR π
Michael Stevens <michael@etla.org>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2003 by Michael Stevens.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free as in go wild, just respect the terms. π«Ά
and that's the page, bestie β written by perl v5.42.0 on 2025-08-06, which is literally the footer, but make it a sign-off. mwah. π
π¦ where this page comes from
- fedora 43: perl-Mail-Audit-List 1.853-3.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms