Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Mail::Sort 20070404

    Download button

    No screenshots available
    Downloads: 453  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    10 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ian Zimmerman | More programs
    Perl Artistic License / FREE
    July 16th, 2008, 11:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Mail::Sort description

    Mail::Sort is a Perl module to split incoming mail according to header matching conditions.

    Mail::Sort is a Perl module to split incoming mail according to header matching conditions.

    SYNOPSIS

    use Mail::Sort;

    $sort = new Mail::Sort(test => 0,
    logfile => "$ENV{HOME}/sortlog",
    loglevel => 2);
    $spool = "$ENV{HOME}/Mail";

    $sort->lock("$ENV{HOME}/one_at_a_time_please");

    $sort->unlock("$ENV{HOME}/one_at_a_time_please");

    $sort->deliver("| formail >> $spool/junk")
    if $sort->header_match('from', 'spammer');

    $sort->deliver("| formail >> $spool/work", keep => 1)
    if $sort->destination_address('me@work.com');

    $sort->deliver("| formail >> $spool/list", label => 'cool list')
    if $sort->sender_match('owner-coollist@lists.r.us');

    $sort->forward("boss@work.com")
    if $sort->header_match('subject', 'accept credit cards');

    $sort->ignore()
    if grep { $_ =~ /make money/ } @{$sort->{body}};

    exit(1);

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    split mail | sort mail | Perl module | sort | split | mail

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM