<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Marcus,<br>
In my original response I forgot to mention that for this, or any
similar approach, to work, you need to use the misnamed
"proxyservers" setting in imapd.conf to grant access to an
administrative user.<br>
<pre> proxyservers: <none>
A list of users and groups that are allowed to proxy for other
users, separated by spaces. Any user listed in this will be
allowed to login for any other user: use with caution.
</pre>
For example:<br>
<blockquote>
<pre>proxyservers: adminuser
</pre>
</blockquote>
Or, alternately, assign rights to the appropriate mailboxes in
cyradm:<br>
<blockquote>
<pre>> sam user.%.Should\ Be\ Spam adminuser all
</pre>
</blockquote>
Cheers,<br>
-nic<br>
<br>
<div class="moz-cite-prefix">On 12/06/2016 10:39 AM, Nic Bernstein
wrote:<br>
</div>
<blockquote
cite="mid:255560c2-9677-04c6-07ba-a84d402c86d1@onlight.com"
type="cite">On 12/06/2016 01:34 AM, Marcus Schopen via Info-cyrus
wrote:
<br>
<blockquote type="cite">Hi,
<br>
<br>
I'm looking for an easy way to fetch spams, which were moved
into a
<br>
special junk subfolder by users in their accounts. I'd like to
move
<br>
those messages from there to my account, so I can analyse them
to adjust
<br>
anti spam rules. How would you do that?
<br>
<br>
Ciao!
<br>
</blockquote>
<br>
We've used the attached script (and configuration file) for years
on many different systems. The script scans the IMAP mail spool
for mailboxes matching a name (i.e. "user.yadda.Should Be Spam")
and runs the sa-learn program for each message. The same loop
could be expanded to also search for false positives (i.e.
"user.yadda.False Spam") as a corrective.
<br>
<br>
We based this on earlier work by Nick Burch
<a class="moz-txt-link-rfc2396E" href="mailto:nick@tirian.magd.ox.ac.uk"><nick@tirian.magd.ox.ac.uk></a>. Feel free to adapt to your
needs.
<br>
<br>
Cheers,
<br>
-nic
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Nic Bernstein <a class="moz-txt-link-abbreviated" href="mailto:nic@onlight.com">nic@onlight.com</a>
Onlight, Inc. <a class="moz-txt-link-abbreviated" href="http://www.onlight.com">www.onlight.com</a>
6525 W Bluemound Road, Suite 24 v. 414.272.4477
Milwaukee, Wisconsin 53213-4073
</pre>
</body>
</html>