Bug 5847

Summary: spamd protocol File: header
Product: Spamassassin Reporter: Anthony Howe <achowe>
Component: spamc/spamdAssignee: SpamAssassin Developer Mailing List <dev>
Status: NEW ---    
Severity: enhancement CC: parkerm
Priority: P5    
Version: 3.2.4   
Target Milestone: Undefined   
Hardware: All   
OS: other   

Description Anthony Howe 2008-03-07 04:33:54 UTC
The AV protocols for clamd, avastd, fpscand all have a SCAN file command. Yet I
can't seem to find anything similar in the spamd protocol.

Might I suggest a header enhancement for when a spamd client is on the same host
as spamd server:

    File: /path/to/file/to/scan
    Message-File: /path/to/file/to/scan

When present, open and scan the file, then return the result back over the
socket to client. This would improve performance of a mail scanning system by
not having to do the file open, read, and transmit a copy of the contents to SA
over a socket, which probably saves a temp. file copy anyway back to disk before
doing it's scan. More efficient just to tell spamd where to look and reduce all
the extra I/O overhead.

The only time you need to stream the file to spamd is when the client and server
are on different machines.