19 Feb 2011 20:22:07 UTC
- Distribution: Mail-ListDetector
- Module version: 1.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (1341 / 0 / 1)
- KwaliteeBus factor: 1
- 87.49% Coverage
- License: perl_5
- Activity24 month
- Download (39.68KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userMSTEVENS Michael Stevensand 1 contributors
- Michael Stevens
- EMAILS USED
- SEE ALSO
Mail::ListDetector - Perl extension for detecting mailing list messages
This module analyzes mail objects in any of the classes handled by Email::Abstract. It returns a Mail::ListDetector::List object representing the mailing list.
The RFC2369 mailing list detector is also capable of matching some Mailman and Ezmlm messages. It is deliberately checked last to allow the more specific Mailman and Ezmlm parsing to happen first, and more accurately identify the type of mailing list involved.
This method is the core of the module. Pass it a mail object, it will either return a Mail::ListDetector::List object that describes the mailing list that the message was posted to, or
undefif it appears not to have been a mailing list post.
Registers a new plugin module that might recognise lists. Should be a subclass of Mail::ListDetector::Detector::Base, and provide the same interface as the other detector modules.
You can eval arbitrary perl code with this, so don't do that if that's not what you want.
This module includes a number of sample emails from various mailing lists. In all cases, mails are used with permission of the author, and must not be distributed separately from this archive. 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.
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.
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.
Michael Stevens - email@example.com.
Andy Turner - firstname.lastname@example.org.
Adam Lazur - email@example.com.
Peter Oliver - firstname.lastname@example.org
Matthew Walker - email@example.com
Tatsuhiko Miyagawa - firstname.lastname@example.org
johnnnnnn - email@example.com
Mik Firestone - firstname.lastname@example.org
Simon Cozens - email@example.com
perl(1). The Mail::Audit::List module, which is a convenient way of using Mail::Audit and Mail::ListDetector together.
Module Install Instructions
To install Mail::ListDetector, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Mail::ListDetector
For more information on module installation, please visit the detailed CPAN module installation guide.