Hanno Hecker wrote:
Is there a quick way of doing this other than creating a new file,
writing header->as_string and the body before stuffing in the clamd socket?
Are you talking about clamscan or clamdscan? Clamdscan is just given
the filename of the spool file, while clamscan is fed by qpsmtpd.
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?

Reply via email to