30 Aug
2007
30 Aug
'07
4:21 p.m.
On Thu, 2007-08-30 at 15:09 +0200, Andreas Schneider wrote:
with libdspam you can pass simply the whole message.
-- snip -- /* Call DSPAM */ if (dspam_process(ctx, message) != 0) { syslog(LOG_ERR, "dspam_process failed"); return -1; } -- snip --
Note that passing dspam the signature is likely more efficient. There are two possibilities: (1) dspam extracts the signature -> dovecot is more efficient at extracting headers because of cache (2) dspam uses the mail -> it has to re-tokenize etc which afaik it doesn't if you give it the signature and it loads things from disk
johannes