[Dovecot] Using IMAP keywords instead of mailboxes for spam with dovecot-antispam
Johannes Berg
johannes at sipsolutions.net
Thu Mar 20 17:11:38 EET 2008
> I haven't looked at your code, but struct mail always has a transaction
> (mail->transaction). You could fail the transaction by hooking into
> transaction_commit and calling rollback if your internal failure-flag
> was set.
> But that sounds a bit extreme.
Indeed. But I suppose if I always have a transaction I'll already be
hooked into it, I'll check that out.
> Aren't you just adding/removing a single
> keyword? If so, you can use mail_update_keywords() to just add/remove
> that without reading/touching other keywords.
Evolution for example always replaces the complete keyword list, so that
doesn't really work easily.
johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080320/b77edaa2/attachment.bin
More information about the dovecot
mailing list