The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Decency::ContentFilter::MimeAttribs

DESCRIPTION

Simple mime manipulation. Be careful, can break DKIM or alike.

CONFIG

    ---
    
    disable: 0
    #max_size: 0
    #timeout: 30
    
    add_header:
        'X-SomeHeader': "Some Value"
        'X-OtherHeader': "Other Value"
    
    set_header:
        'X-Mailer': "My Company v0.1"
    
    replace_header:
        'X-DSPAM': "replaced"
    
    remove_header:
        - 'Subject'
    

CLASS ATTRIBUTES

add_header : HashRef

Add headers to mail .. if header already existing, it will be added also

set_header : HashRef

Set's a header. If exists, it will be overwritten.

replace_header : HashRef

Replaces a header. If not existing, nothing will be written

remove_header : ArrayRef[Str]

Removes a header, if it exists.

METHODS

init

handle

Default handling for any content filter is getting info about the to be filterd 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.