Thanks. That solved the problem. Finally got rid of all duplicate items in sent folder. (Because of some mail clients not supporting disabling "Save a copy in sent folder when sending").
But why isn't this documented in the documentation?
https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/IMAPSieve
-----Ursprungligt meddelande----- Från: dovecot-bounces@dovecot.org dovecot-bounces@dovecot.org För Robert L Mathews Skickat: den 23 maj 2020 01:43 Till: dovecot@dovecot.org Ämne: Re: What causes mails to get striked-over only, and not deleted?
On 5/22/20 4:01 PM, Sebastian Nielsen wrote:
and this sieve file (sent.sieve):
discard;
This should clearly cause the mail to be deleted right? But whats happen, is that the mail is not deleted, its just marked for deletion (gets a strike-through in Microsoft Outlook).
That means the message has had its "\Deleted" flag set, which is what the discard command does:
https://tools.ietf.org/html/rfc6785#section-3.5
But the mailbox has not been "expunged". You probably want to set "imapsieve_expunge_discarded=yes"; see:
https://github.com/dovecot/pigeonhole/blob/master/doc/plugins/imapsieve.txt#...
-- Robert L Mathews, Tiger Technologies, http://www.tigertech.net/