Hi
Thanks for a great addition to Spamassassin. Please keep it on the
Spamassassin list (except for configuration help). I have found it very
useful so far using the 2.2 beta1.
I have made a small change for my purposes, which was needed because the
temporary files were not unique using mimedefang. I added a date/time
stamp to the file names in the perl module:
my $firstline = ($p->decode())[0];
--> my $ts = time;
--> my $tempfile = $tmppath . "/" . "spamassassin.$$" . $ts . ".focr";
--> my $errfile = $tmppath . "/" . "spamassassin.$$" . $ts . ".focr.err";
if ($firstline =~ /^\x47\x49\x46/) {
This is useful if the temp files get left behind after a failure like this:
Aug 21 20:38:21 b090lx4 mimedefang-multiplexor[26383]: Slave 1 stderr:
giftopnm:
Aug 21 20:38:21 b090lx4 mimedefang-multiplexor[26383]: Slave 1 stderr:
error reading magic number
Aug 21 20:38:21 b090lx4 mimedefang-multiplexor[26383]: Slave 1 stderr:
Aug 21 20:38:21 b090lx4 mimedefang-multiplexor[26383]: Slave 1 stderr:
(null):
Aug 21 20:38:21 b090lx4 mimedefang-multiplexor[26383]: Slave 1 stderr:
EOF / read error reading magic number
Aug 21 20:38:21 b090lx4 mimedefang-multiplexor[26383]: Slave 1 stderr:
BTW What causes this type of error?
Cheers
Bill
--
Bill Maidment
Maidment Enterprises Pty Ltd
www.maidment.com.au
si hoc non legere potes tu asinus es