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::Procmailrc 1.09

    Download button

    No screenshots available
    Downloads: 293  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Scott Wiersdorf | More programs
    Perl Artistic License / FREE
    September 15th, 2009, 15:51 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Mail::Procmailrc description

    An interface to Procmail recipe files

    Mail::Procmailrc is a Perl module that can parse procmail recipe files and store the contents in an object which can be later manipulated and saved (see "CAVEATS" and "BUGS/TODO" for limitations and special conditions).

    You may also start with a fresh, empty Mail::Procmailrc object, populate it with recipes and/or variables and write it to file.

    Recipes and variables are written to the file in the order they're parsed and added. If you want to re-order the recipes you may do so by getting a handle on the variable or recipe list and ordering them yourself.

    The Mail::Procmailrc object is primarily a list of procmail component objects (see below). When Mail::Procmailrc parses a procmail rc file, it decides which lines are variable assignments, which lines are comments, and which lines are recipes. It preserves the order in which it encounters these procmail components and stores them as a list of objects in the main Mail::Procmailrc object.

    SYNOPSIS

     use Mail::Procmailrc;

     ## create a new procmailrc object and initialize it
     $pmrc = new Mail::Procmailrc("$HOME/.procmail/rc.spam");

     ## add a new variable
     $pmrc->push( new Mail::Procmailrc::Variable(["FOO=bar"]) );

     ## add a new recipe
     $recipe =rc} ) {
     ## find the recipe we just added by its 'info' string
     next unless $obj->stringify =~ /^## this will catch evil email messages/m;

     ## we want to block emails about censorship, too ;o)
     push @{$obj->conditions}, '* 1^0 censor(ship|ing)?'
     }

     ## write this object to disk
     $pmrc->flush;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Procmail recipe | Procmailrc interface | Perl module | Perl | Procmailrc | interface

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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