Mail::...tector(3pm)
π Mail::ListDetector β the manual, but make it cute β¨
okay so bestie, the page header up top says Mail::...tector(3pm) (the title got truncated, it's giving "mysterious"), and the actual module we're talking about is Mail::ListDetector β a Perl extension for detecting mailing list messages. yes. that's the whole vibe. let's go π¦
πΈ NAME πΈ
Mail::ListDetector β a Perl extension for detecting mailing list messages π
β¨ SYNOPSIS β¨
use Mail::ListDetector;
that's it. that's the whole setup. slay π
π§ DESCRIPTION π§
So this module analyzes mail objects in any of the classes handled by Email::Abstract. And then? It hands you back a Mail::ListDetector::List object that represents the mailing list. iconic behaviour honestly π
Now, the RFC2369 mailing list detector? She's also capable of matching some Mailman and Ezmlm messages. But here's the tea: she is deliberately checked last so that the more specific Mailman and Ezmlm parsing gets to happen first, and so the type of mailing list involved gets identified more accurately. order matters, periodt π₯
π METHODS π
new
This method is the core of the module. Pass it a mail object and it will either return a Mail::ListDetector::List object that describes the mailing list that the message was posted to, or undef if it appears not to have been a mailing list post. two outcomes, no in-between, main character energy π
register_plugin($plugin_name)
Registers a new plugin module that might recognise lists. It should be a subclass of Mail::ListDetector::Detector::Base, and it should provide the same interface as the other detector modules. consistency is the vibe π«Ά
β οΈ okay but real talk: you can eval arbitrary perl code with this. so like. don't do that if that's not what you want. fr fr π
π EMAILS USED π
This module includes a number of sample emails from various mailing lists. In all cases, mails are used with permission of the author, and they must not be distributed separately from this archive. okay? okay. π
And if you believe I may have accidentally used your email or content without permission β contact me, and if this turns out to be the case I will immediately remove it from the latest version of the archive. no drama, just fixing it π
π BUGS π
- A lot of the code applies fairly simple regular expressions to email address to extract information. This may fall over for really weird email addresses, but I'm hoping no-one will use those for names of mailing lists. fingers crossed bestie π€
- The majordomo and smartlist recognisers don't have much to go on, and therefore are probably not as reliable as the other detectors. This is liable to be hard to fix. π
- Forwarding messages (for example using procmail) can sometimes break the
Sender:header information needed to recognise some list types. rude of them honestly π§οΈ
π AUTHORS π
- Michael Stevens β
michael@etla.org. - Andy Turner β
turner@mikomi.org. - Adam Lazur β
adam@lazur.org. - Peter Oliver β
p.d.oliver@mavit.freeserve.co.uk - Matthew Walker β
matthew@walker.wattle.id.au - Tatsuhiko Miyagawa β
miyagawa@bulknews.net - johnnnnnn β
john@phaedrusdeinus.org - Mik Firestone β
mik@racerx.homedns.org - Simon Cozens β
simon@simon-cozens.org
the whole squad. legends only π β¨
π SEE ALSO π
perl(1). And also the Mail::Audit::List module, which is a convenient way of using Mail::Audit and Mail::ListDetector together. dynamic duo behaviour π¦
and that's the page!! perl v5.36.0, dated 2022-11-29 β ty for coming to my ted talk bestie, go detect some lists, ily π«Άπβ¨
π¦ where this page comes from
- debian bookworm: libmail-listdetector-perl 1.04+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmail-listdetector-perl 1.04+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmail-listdetector-perl 1.04+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmail-listdetector-perl 1.04+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmail-listdetector-perl 1.04+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms