Mail::Audit::KillDups(3pm) - phpMan

Command: man perldoc info search(apropos)  


Mail::Audit::KillDups(3pm)     User Contributed Perl Documentation     Mail::Audit::KillDups(3pm)



NAME
       Mail::Audit::KillDups - Mail::Audit plugin for duplicate suppression

SYNOPSIS
           use Mail::Audit qw(KillDups);
           $Mail::Audit::KillDups::dupfile = "/home/simon/.msgid-cache";
               my $mail = Mail::Audit->new;
           $mail->killdups;

DESCRIPTION
       This is a Mail::Audit plugin which provides a method for checking and supressing duplicate
       messages; that is, mails with message-ids which have been previously seen.

   METHODS
       "killdups"
           Checks the incoming message against a file of previously seen message ids, ignores it
           if it's already seen, and adds it if it hasn't been.  $Mail::Audit::KillDups::dupfile
           contains the name of the file used; if you don't set this, it will be .msgid-cache in
           the current directory. (Probably your home directory.)

           The data in $Mail::Audit::KillDups::dupfile will be treated as a ring buffer, where
           the end of the buffer will be delimited by two newline characters.  When the file size
           exceeds $Mail::Audit::KillDups::cache_bytes bytes, the message id will be written at
           the beginning of the file.  Old message ids in the file will be overwritten.  The
           default cache size is 10000 bytes, which is enough space for about 200 message-ids.

           The semantics are tortured; the return values are as follows:

             false - not a duplicate
             +1    - an error occured during dupcheck
             -1    - message is a duplicate

AUTHOR
       Simon Cozens <simon AT cpan.org>

SEE ALSO
       Mail::Audit



perl v5.10.0                                2008-04-17                 Mail::Audit::KillDups(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-24 17:00 @38.107.179.237 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!