[Mimedefang] Custom Filter Bad Filename
David F. Skoll
dfs at roaringpenguin.com
Wed Apr 2 14:01:02 EST 2003
On Wed, 2 Apr 2003, schmaus wrote:
> I tweaked the filter_bad_filename subroutine so it would set
> the $bad_exts based on the domain of the recipient. It does
> not seem to work and I have looked at it for 2 days.
Why are you opening "./COMMANDS" to get the list of recipients?
This is already available in the @Recipients array. You can get the
first recipient very simply as $Recipients[0].
Reading the ./COMMANDS file might not work, because recipients are
percent-encoded; see the mimedefang-protocol(7) man page.
Other than that, it looks like it should work to me. Put some debugging
in; try doing:
print STDERR "Domain = $tdomain; bad_exts = $bad_exts\n";
near the bottom of the function, and use the "-l" option to
mimedefang-multiplexor. Then check your mail log.
--
David.
More information about the MIMEDefang
mailing list