Op 13-5-2024 om 14:14 schreef Nick Urbanik via dovecot:
On Thu, 2024-04-25 at 14:36 +1000, Nick Urbanik via dovecot wrote:
On Tue, 2024-04-23 at 09:42 +1000, Nick Urbanik via dovecot wrote:
Dear Folks,
I am in the process of learning Sieve, and want to be able to keep an email in Inbox, while also keeping *one* copy in another folder. However, the same mail is copied from Inbox multiple times when I run sieve-filter -Wev .dovecot.sieve Inbox
My attempt to prevent this fails: ... } elsif header :comparator "i;octet" :contains "From" "paypal@paypal.com.au" { if not duplicate { fileinto "paypal"; } keep; }
Please can anyone enlighten me? If there is a Dovecot Sieve mailing list, please point me to it.
OK, let me rephrase the problem:
I want to keep a copy of an email in Inbox and put a copy into another folder, but only once, even if I run sieve-filter as above multiple times. I know there are many who know how to do this and I would really appreciate your generous suggestions.
The sieve-filter tool was mainly created to mend mailboxes after failures in sieve execution at delivery time. It currently does not provide access to the duplicate database and any actions that operate on it are ignored.
What exactly are you using sieve-filter for? Why are the Dovecot LDA or the Dovecot LMTP service with the Sieve plugin not fulfilling your needs?
Regards,
Stephan.