Re: filter_bad_filename based on recipient

Dianne Skoll <[email protected]>
Newsgroups gmane.mail.mimedefang
Organization Roaring Penguin Software Inc.
Message-ID <[email protected]>
On Mon, 19 Sep 2016 14:48:16 +0200
Marcus Schopen <[email protected]> wrote:

> is it possible to define $bad_exts in sub filter_bad_filename based on
> domain name? I'd like to filter ".docm"-attachments, but not globally
> for all domains on that server, just for my private domain. Seems to
> be that $recipient is not known in sub filter_bad_filename?

The sample filter is just a sample... all the information is available
for you in various global variables and/or parameters passed to the
various filter functions.  However, you do need to be fairly comfortable
programming in Perl to make the sort of adjustment you seek; you can start
by reading the mimedefang-filter man page.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.