Op 8/25/2016 om 4:01 PM schreef hendrik@luecke-tieke.de:
Hi,
i have imported a mailbox twice (accentially). Now i thought, it might be a valid approach to simply use a custom sieve rule to mark duplicates using the attached ruleset
I ran sieve-filter like this:
~# sieve-filter -e -W -v -C -u userxyz@example.com
/var/vmail/example.com/userxyz/sieve/duplicates.sieve 'INBOX'
But sieve-filter complains like this:
info: msgid=<1231321313212312312312@p3enginer2.emv2.com>: left message in mailbox 'INBOX'. info: message kept in source mailbox. info: filtering: [Sun, 1 May 2011 16:41:46 +0100; 101297 bytes]
Cipo & Baxx, Nike Golf, Strenesse, al...'. roundcube2: line 3: warning: duplicate test: duplicate checking not available in this context. info: msgid=<1123123123123123@p3enginer3.emv2.com>: left message in mailbox 'INBOX'. info: message kept in source mailbox. info: filtering: [Sun, 28 Oct 2012 11:32:56 +0100; 1416 bytes]
DenyHosts Report for example.com'. roundcube2: line 3: warning: duplicate test: duplicate checking not available in this context.Is there a way, to refilter an existing mailbox and applying the duplicate extension?
Not with the sieve-filter tool at this time.
I guess you could use this hack:
http://wiki2.dovecot.org/HowTo/RefilterMail
Regards,
Steph