GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FilterXML(3) User Contributed Perl Documentation FilterXML(3)

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

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

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.

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.

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

(c)2000-2002 Matthew MacKenzie. You may use/copy this under the same terms as Perl.

perl(1), Mail::Audit
2002-06-25 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.