Marcus,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.
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. For example: proxyservers: adminuser Or, alternately, assign rights to the appropriate mailboxes in cyradm: > sam user.%.Should\ Be\ Spam adminuser all Cheers, -nic On 12/06/2016 10:39 AM, Nic Bernstein wrote:
On 12/06/2016 01:34 AM, Marcus Schopen via Info-cyrus wrote:Hi, I'm looking for an easy way to fetch spams, which were moved into a special junk subfolder by users in their accounts. I'd like to move those messages from there to my account, so I can analyse them to adjust anti spam rules. How would you do that? Ciao!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.We based this on earlier work by Nick Burch <n...@tirian.magd.ox.ac.uk>. Feel free to adapt to your needs.Cheers, -nic
-- Nic Bernstein n...@onlight.com Onlight, Inc. www.onlight.com 6525 W Bluemound Road, Suite 24 v. 414.272.4477 Milwaukee, Wisconsin 53213-4073
<<attachment: nic.vcf>>
---- Cyrus Home Page: http://www.cyrusimap.org/ List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/ To Unsubscribe: https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus