On Thu, 24 Jul 2008 23:13:38 -0400 "Chris Lewis" <[EMAIL PROTECTED]> wrote:
> Hanno Hecker wrote: > >> clamdscan. $transaction->body_filename doesn't seem to have the headers. > > It does. There's everything received by the client. > > I thought it should too. > > I modified clamdscan to system("cp ".$transaction->body_filename ." > /tmp/foo") and /tmp/foo had no headers. Body only. > > Could the thing that constructs body_filename on disk be getting > confused by a file pointer not being where it expects or something? Unlikely, but let's see. What are the values of $transaction->data_size; size of /tmp/foo The above two should be the same. $transaction->body_start; length($transaction->headers->as_string); (insert directly below 'my $filename = $transaction->body_filename;' in clamdscan). Maybe also add $transaction->body_current_pos;