<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Il 15/07/19 14:34, Gianluca Scaglia via
dovecot ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:020801d53b09$ad864520$0892cf60$@ksdata.it">
<p class="MsoNormal">Hi there,<o:p></o:p></p>
<p class="MsoNormal">on my mail server (postfix, dovecot 2.2.27 in
Debian 9) I have an automatic forwarding (with sender_bcc_maps
in Postfix) for all the emails sent in smtp from the same
server, that are then put in the Sent folder with a sieve rule.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In this way, however, when a user sends an
e-mail to himself, both copies end up in the Sent folder and
it's not good.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To resolve, I tried using the Sieve
“duplicate” extension along with “fileinto” but I can't get it
to work.</p>
</blockquote>
<p>I solved the problem of duplicated email with this Sieve rule:</p>
<p>require ["duplicate", "fileinto", "mailbox"];<br>
<br>
if duplicate :seconds 60 {<br>
fileinto "Trash";<br>
}<br>
</p>
<p>Hope this can hel you.</p>
<p>Ciao<br>
</p>
<pre class="moz-signature" cols="72">--
Alessio Cecchi
Postmaster @ <a class="moz-txt-link-freetext" href="http://www.qboxmail.it">http://www.qboxmail.it</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/alessice">https://www.linkedin.com/in/alessice</a></pre>
</body>
</html>