<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># Mail::Exim::Blacklist::Attachments

A Perl module for the [Exim](https://www.exim.org/) mailer that checks email
attachments for blacklisted filenames.  Common executable, macro-enabled and
archive file formats are blacklisted.

    acl_check_mime:

      warn
        condition = ${if and{{def:mime_filename} \
         {!match{${lc:$mime_filename}}{\N\.((json|xml)\.gz|zip)$\N}} \
         {eq{${perl{check_filename}{$mime_filename}}}{blacklisted}}}}
        set acl_m_blacklisted = yes

      warn
        condition = ${if match{${lc:$mime_filename}}{\N\. *(jar|zip)$\N}}
        decode = default
        condition = ${if eq{${perl{check_zip}{$mime_decoded_filename}}} \
                           {blacklisted}}
        set acl_m_blacklisted = yes

      accept

## DEPENDENCIES

Requires the Perl modules Exporter and IO::Uncompress::Unzip, which are
distributed with Perl.

## INSTALLATION

The [Open Build Service](https://build.opensuse.org/package/show/home:voegelas/perl-Mail-Exim-Blacklist-Attachments)
provides binary and source packages.

Run the following commands to install the software manually:

    perl Makefile.PL
    make
    make test
    make install

Type the following command to see the module usage information:

    perldoc Mail::Exim::Blacklist::Attachments

## LICENSE AND COPYRIGHT

Copyright 2021 Andreas VÃ¶gele

This module is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
</pre></body></html>