On Fri, Feb 06, 2004 at 04:57:16PM +0000, [EMAIL PROTECTED] wrote:
> my ($temp_fh, $filename) = tempfile();
> chmod 0666, $filename ; # conf file "User = smtpd"
> print $temp_fh "Received: ...\n" ; # per SPF discussion
> print $temp_fh $transaction->header->as_string;
> print $temp_fh "\n";
> while (my $line = $transaction->body_getline) {
> print $temp_fh $line;
> }
>
> Does anyone have any ideas as to why the message body is not being
> written to the temp file?
adding "$transction->body_resetpos;" before the while loop should fix
it. a previous plugin must be leaving the file position at the end of
the body.
(this appears to be in the clamav plugin in cvs, perhaps the patch to
add the extra Received header inadvertantly removed it?)
jim