Subject: | procmail |
The procmailrc doesn't work under solaris 10. In the file /examples/procmail/scanvirus.pl - attached to email files are not
extracted.
Problem is in:
sub main {
...
my $explode = MIME::Explode->new(
output_dir => $tmp_dir,
check_content_type => 1,
decode_subject => 1,
exclude_types => ["image/gif", "image/jpeg"],
);
...
exists($headers->{$msg}->{'content-disposition'}->{'filepath'})) {
....
Reason:
'filepath' is empty in MIME::Explode, probably 'filename' should be used.
Probably should be:
my $explode = MIME::Explode->new(
output_dir => $tmp_dir,
mkdir => 0755,
decode_subject => 1,
check_content_type => 1,
content_types => ["image/gif", "image/jpeg", "image/bmp"],
types_action => "exclude"
);
perl -v
This is perl, v5.8.5 built for i86pc-solaris
uname -a
SunOS magda 5.10 s10_72 i86pc i386 i86pc
Bogdan Banecki