[Dovecot] dovecot dspam plugin using libdspam

Johannes Berg johannes at sipsolutions.net
Thu Aug 30 16:21:42 EEST 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070830/ed2c766d/attachment.bin 


More information about the dovecot mailing list