[Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam

Jan Oravec jan.oravec at 6com.sk
Thu Mar 20 17:13:04 EET 2008


> > I guess that in need_keyword_hook case save_init/save_finish hooks will
> > have to check email for spams and keyword it. It is not clear how to
> > mark mail as spam if both need_folder_hook and need_keyword_hook are
> > true.
> 
> Well, the need_keyword_hook variable is just internal. The point is that
> save_{init,finish} are not invoked when just the keywords change, so I
> override the struct mail's update_keywords function.
> 
> See
> http://git.sipsolutions.net/?p=dovecot-antispam.git;a=blob;f=antispam-storage-1.0.c;hb=HEAD#l265
> 

I thought about new mail case here, sorry for confusion.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080320/b8bce176/attachment-0001.bin 


More information about the dovecot mailing list