Ulrich Kautz > Mail-Decency-0.1.6 > Mail::Decency::ContentFilter::HoneyCollector

Download:
Mail-Decency-0.1.6.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mail::Decency::ContentFilter::HoneyCollector

DESCRIPTION ^

Counter part of the policy server's Mail::Decency::Policy::HoneyPot. It receives honey-flagged mails and either trains them directly into activated spam filters or stores them in a quarantine folder for later manual training.

All mails marked with the honey flag will be dropped and NOT delivered !

CONFIG ^

    ---
    
    disable: 0
    #max_size: 0
    #timeout: 30
    
    # train into activated spam filters
    #train: 0
    
    # directory for collecting spams mails
    archive_dir: /var/spool/decency/honey

CLASS ATTRIBUTES ^

archive_dir : Str

Output directory of honey mails. The format is the same as for the Mail::Decency::ContentFilter::Archive module.

train : Bool

Wheter train tagged mails into activated spam filters

METHODS ^

init

handle

Archive file into archive folder

hook_pre_finish

If no honey has been collected (cause some spam filters ran before) -> get it now

_collect_honey

Train to spam filters and / or write to archive directory

AUTHOR ^

Ulrich Kautz <uk@fortrabbit.de>

COPYRIGHT ^

Copyright (c) 2010 the "AUTHOR" as listed above

LICENCSE ^

This library is free software and may be distributed under the same terms as perl itself.

syntax highlighting: