Ulrich Kautz > Mail-Decency > Mail::Decency::ContentFilter::Core

Download:
Mail-Decency-0.1.6.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mail::Decency::ContentFilter::Core

DESCRIPTION ^

Base class for all content filter

CLASS ATTRIBUTES ^

max_size : Int

Max size in bytes for an email to be checked.

timeout : Int

Timeout for each policy module.

Default: 30

ArrayRef[Str] : Int

For easy module initialization, developers can set array of the config params. They will be set if they are defined.

    # do this
    has config_params => ( is => 'ro', isa => 'ArrayRef[Str]', default => sub { [ qw/ something / ] } );
    
    # an it will be initialized
    $self->something( $self->config->{ something } )
        if defined $self->config->{ something };

METHODS ^

init

session_data, file, file_size, from, to, mime

Convinient accessor to the server's session data

write_mime

Write latest MIME data back to file

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: