Mailing List Archive

ripmime / qmail-scanner problem (1.3.1.0)
I'm intermittantly getting an error when using ripmime 1.3.1.0 with
qmail-scanner.

Everything works fine with v1.3.0.7 and previous versions.
I have narrowed the problem down to specific emails that do not have a body,
only one file attachment.
If I run ripmime (either version) on the file manually, it appears to work
fine.

Whilst writing this I think I've found the problem, with 1.3.1.0 I get an
exit code of 242, which appears to be MIME_ERROR_B64_INPUT_STREAM_EOF, with
1.3.0.7 I get an exit code of 0.

I can supply the relevant email if necessary, but I'd rather not send it to
the whole list membership.

The error is:
X-Qmail-Scanner-1.21:
[xxxxxxxx.xxxxxxxxx.xxx107954671847516083] cannot close /usr/bin/ripmime
--paranoid --unique_names -i -
-d /var/spool/qmailscan/tmp/xxxxxxxx.xxxxxxxxx.xxx107954671847516083/ -

The following is the relevant section of code from qmail-scanner:
open(MIME,"$mimeunpacker_binary <$scandir/$wmaildir/new/$file_id
2>&1|")||&error_condition("cannot call $mimeunpacker_binary - $!");
while (<MIME>) {
next if (/exists/);
&error_condition("d_m: output spotted from $mimeunpacker_binary ($_) -
that shouldn't happen!");
}
close(MIME)||&error_condition("cannot close $mimeunpacker_binary - $!");

Thanks,
Chris Hine