Mail::FilterXML - Filter email based on a rules file written in XML.


Mail-FilterXML documentation  | view source Contained in the Mail-FilterXML distribution.

Index


NAME

Top

Mail::FilterXML - Filter email based on a rules file written in XML.

SYNOPSIS

Top

  use Mail::FilterXML;
  my $filter = new MailFilter(rules => "/home/matt/mail_rules.xml");
  $filter->process();

DESCRIPTION

Top

This module builds upon Mail::Audit by Simon Cozens. Mail::Audit is a module for constructing filters, Mail::FilterXML is a filter of sorts. FilterXML is just made up of some logic for processing an email message, and is controlled by the contents of a rules file, so if I wanted to block a particular sender, I could just add an element to my rules file, like:

<Rule type="from" content="microsoft.com" folder="Trash" action="program" /> See the mail_rules.xml file for an example.

The content attribute can contain perl regexps, such as *\.microsoft\.*$, etceteras.

FUTURE

Top

I will be adding new "types" of rules, and the ability to reject or altogether ignore messages, as possible in Mail::Audit. Any feedback or patches are welcome.

AUTHOR

Top

Matthew MacKenzie <mattmk@cpan.org> Eli Ben-Shoshan <eli@benshoshan.com>

COPYRIGHT

Top

SEE ALSO

Top

perl(1), Mail::Audit


Mail-FilterXML documentation  | view source Contained in the Mail-FilterXML distribution.