[Mimedefang] uuencoded messages kill my mimedefang slaves {Scanned by Allteks Mailsafe}
Mark Costlow
cheeks at swcp.com
Thu Apr 3 01:31:50 EDT 2008
> > So something is still wrong after decode_it() finishes. At his
> > point I decided to try avoiding the uudecoder altogether and added
> > a filter_create_parser() with $parser->extract_uuencode(0) (instead
> > of the default extract_uuencode(1)). That is working around the
> > problem successfully.
> >
> > This works for me for now since I'm only doing the recipient check in
> > Mimedefang and don't need the bodies decoded. But I'm planning to
> > use Mimedefang for content filtering bodies in the future, so I'll need
> > to resove this problem first.
> >
> > I haven't tracked down where decode_it() is being invoked. Does anyone
> > have
> > any idea where that is? Any other pointers?
>
> Hi Mark
>
> Im suffering from the same problem, any chance you could expand on your work
> around? Im only using mimedefang to check for valid recipients, where do I
> set the $parser->extract_uuencode(0) do I just create a
>
> Sub filter_create_parser () {
> my $parser = MIME::Parser->new();
> $parser->extract_uuencode(0);
> }
>
> within my mimedefang-filter?
Sorry for the delay getting back to you. Here's the whole function I added
to my mimedefang-filter:
sub filter_create_parser () {
my $parser = MIME::Parser->new();
$parser->extract_nested_messages(1);
$parser->extract_uuencode(0);
$parser->output_to_core(0);
$parser->tmp_to_core(0);
return $parser;
}
If you don't have a filter_create_parser() function, one gets created
for you which does exactly the above (except with extract_uuencode(1)).
I believe you need all the other function calls there in order for
mimedefang to do its thing (i.e. it can't contain *only* the
extract_uuencode(0) call).
Let me know if that doesn't work. Thanks,
Mark
--
Mark Costlow | Southwest Cyberport | Fax: +1-505-232-7975
cheeks at swcp.com | Web: www.swcp.com | Voice: +1-505-232-7992
abq-strange.com -- Interesting photos taken in Albuquerque, NM
Last post: Antenna Farm - 2007-08-26 23:03:43
More information about the MIMEDefang
mailing list