Hi all,

I'm trying to write some sieve rules on a dovecot server for doing
learning of spam/ham, where if I move a message into a certain folder,
sieve runs a rspamd script to learn it as ham/spam. The dovecot conf
looks like:

imapsieve_mailbox1_name = Junk
imapsieve_mailbox1_causes = COPY
imapsieve_mailbox1_before = file:/path/to/report-spam.sieve

I use mbsync to sync my local dovecot with the remote dovecot.

I can't get this to work, and I don't know why, and I'm trying to
eliminate possible sources of error. As you can see above, I can specify
one or more "causes" to trigger the script, which correspond to IMAP
commands.

If in my local MUA I move a message from INBOX to Junk, and it issues a
MOVE command, and then later I go to my shell and run "mbsync" where the
account channel looks like:

Channel ea
Master :ea-ro:
Slave :ea-daemon-local:
Patterns *
Create Both
Expunge Both
Remove Both

What will the remote dovecot see in terms of the handling of this
message? MOVE? COPY? APPEND? Can anyone tell me what "cause" I should be
listening for?

Thanks very much!
Eric



_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to