[Dovecot] antispam plugin and seen status?

Tom Hendrikx tom at whyscream.net
Wed Feb 24 23:23:34 EET 2010

Dan Swartzendruber wrote:
> Dan Swartzendruber wrote:
>> I am using the antispam plugin and am very happy with it.  I also have
>> a default sieve rule that I found online somewhere that says if you
>> see a message that is flagged as spam and not reclassified as
>> innocent, to mark it as seen and move it to the INBOX.SPAM folder. 
>> That too works just fine.  One annoyance is that spam I retrain by
>> dragging to the spam folder is not being marked as seen (I think I
>> understand why, based on the sieve rule.)  My question: is it possible
>> to configure the antispam plugin to do this for me?  Or do I need a
>> rule in sieve to detect that case and just set the seen flag?  If the
>> former, how?  If the latter, I'm not quite sure I understand the
>> sequence of events that takes place when a message is dragged from,
>> say, inbox to spam folders.  e.g. at what point is the antispam plugin
>> invoked vs the sieve plugin?  Thanks!
> I take it from the lack of response that no-one has any suggestions?

The antispam plugin is triggered when you manually move a message via
the imap server interface. Sieve rules are triggered only when dovecot
delivery agent puts a message in the maildir (or mbox). So they never
cross paths: moving delivered messages around, with or without antispam
plugin, never triggers sieve rules.

The way that you could implement this, would be by changing the source
code of the antispam plugin. However, while your use case is valid, I
think this behaviour would be very dependant on the end-user's preference...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
Url : http://dovecot.org/pipermail/dovecot/attachments/20100224/29f11032/attachment.bin 

More information about the dovecot mailing list