Hi, If a user moves a mail to a Junk folder, this e-mail is going thru imap_sieve and ends up in sa-learn. I wrote some tools to immediately propagate that to the other node of the cluster as well as locally. Everything works fine, but sometimes I see a storm of requests hogging the CPU and I would like to collect some debugging information, Preferably I would like the permanent unique id of the mail in the maildir, but am looking for some kind of unique id that will help me identify if an e-mail somehow passes the sieve filter multiple times. Basically I have changed the pipe to sa-learn to my proxy that will send it across to the other node as well as call sa-learn locally. So something I can get in a sieve script and pass along. Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2328 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20180424/cd756f9a/attachment-0001.p7s>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
<br>
</div>
<blockquote type="cite">
<div>
On 24 April 2018 at 21:24 Peter Blok <
<a
href="mailto:pblok@bsd4all.org">pblok@bsd4all.org</a>>
wrote:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Hi,
</div>
<div>
<br>
</div>
<div>
If a user moves a mail to a Junk folder, this e-mail is going thru
imap_sieve and ends up in sa-learn. I wrote some tools to immediately propagate
that to the other node of the cluster as well as locally.
</div>
<div>
<br>
</div>
<div>
Everything works fine, but sometimes I see a storm of requests hogging the
CPU and I would like to collect some debugging information, Preferably I would
like the permanent unique id of the mail in the maildir, but am looking for some
kind of unique id that will help me identify if an e-mail somehow passes the
sieve filter multiple times.
</div>
<div>
<br>
</div>
<div>
Basically I have changed the pipe to sa-learn to my proxy that will send it
across to the other node as well as call sa-learn locally. So something I can
get in a sieve script and pass along.
</div>
<div>
<br>
</div>
<div>
Peter
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
<br>
</div>
</blockquote>
<div>
<br>
</div>
<div>
You could try parsing mail's message-id header and use it when present.
</div>
<div class="io-ox-signature">
---
<br>Aki Tuomi
</div>
</body>
</html>