Bug 5847 - spamd protocol File: header
Summary: spamd protocol File: header
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamc/spamd (show other bugs)
Version: 3.2.4
Hardware: All other
: P5 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-07 04:33 UTC by Anthony Howe
Modified: 2008-08-23 12:15 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
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
or
    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.