<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi there!<br>
<br>
I want to set the \seen and the Junk Flag to an email, which i
move manually to my Junk-Folder.</p>
<p>I tried a lot... but nothing worked like expected.</p>
<p>I have a sieve-filter, which takes an email and copy it to a pipe
to rspamc. This filter is working correctly, i get a debug-message
from the script, which is called through the sieve-filter.<br>
But adding another rule (addflag "Junk"; setflag "\\seen";) to
this rule is getting ignored...<br>
<br>
Here is my sieve-rule:</p>
<pre>require ["imap4flags", "vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
</pre>
<pre>if environment :matches "imap.email" "*" {
set "email" "${1}";
}
addflag "Junk";
setflag "\\seen";
pipe :copy "learn-spam.sh" [ "${email}" ];</pre>
How said before, the script learn-spam.sh is called, when i move a
Message via drag&drop in thunderbird from the INBOX to the
Junk-Folder. But the message in the Junk-Folder is unseen, recent
and has no Junk-Flag...<br>
<br>
What's wrong?<br>
<br>
<p>BR</p>
<p>Jakob<br>
</p>
</body>
</html>