Re: [Dovecot] antispam plugin and seen status?

2010-02-24 Thread Dan Swartzendruber


Okay, thanks.  I'll live with it the way it is.


Re: [Dovecot] antispam plugin and seen status?

2010-02-24 Thread Tom Hendrikx
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...

-- 
Regards,
Tom



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] antispam plugin and seen status?

2010-02-24 Thread Dan Swartzendruber

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?


[Dovecot] antispam plugin and seen status?

2010-02-23 Thread Dan Swartzendruber


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!