On 2004-08-01 23:47:35 +0200, spaze wrote: > Friday, July 30, 2004, 11:17:04 AM, spaze wrote: > > "[PATCH] Another helper function to Qsmtpd::Transaction" > [...] > > I'm now trying to modify my (yet heavily modified) clamav plugin to use this > > function (so not requiring an additional copy of the message body) and when > > so, this attempt failed. clamav requires "mbox format" to recognize a > message
Try this patch: samkar:~/wrk/qpsmtpd/plugins 11:25 105% svn diff -r72:73 clamav Index: clamav =================================================================== --- clamav (revision 72) +++ clamav (revision 73) @@ -24,6 +24,7 @@ my ($self, $transaction) = @_; my ($temp_fh, $filename) = tempfile(); + print $temp_fh "From -\n"; print $temp_fh $transaction->header->as_string; print $temp_fh "\n"; $transaction->body_resetpos; (An equivalent fix may already be in the current CVS. I haven't synced my private tree with CVS since some time between 0.27 and 0.28 - I should really do that RSN) hp -- _ | Peter J. Holzer | Je höher der Norden, desto weniger wird |_|_) | Sysadmin WSR | überhaupt gesprochen, also auch kein Dialekt. | | | [EMAIL PROTECTED] | Hallig Gröde ist fast gänzlich dialektfrei. __/ | http://www.hjp.at/ | -- Hannes Petersen in desd
pgpgOs6z8xiSr.pgp
Description: PGP signature