Hi, maybe this helps avoiding double folders.
https://wiki.dovecot.org/Plugins/MailboxAlias Am 24.03.20 um 10:34 schrieb Maciej Milaszewski: > Hi > I use dovecot-2.2.36.4 on Debian 8.11 and plugin dovecot-antispam from > http://johannes.sipsolutions.net/Projects/dovecot-antispam > > All works fine but in roundcube i get two folder: Spam (real: Junk) and SPAM > > > in sieve i have: > > require ["fileinto","imap4flags"]; > # rule:[SPAM Box] > if header :contains "X-Spam-Flag" "YES" > { > setflag "\\Seen"; > fileinto "SPAM"; # ---> because dovecot-antispam need folder SPAM > to teach spam or ham > stop; > } > > problem probably fixed when I change > fileinto "SPAM"; > to > fileinto "Junk"; > > > But plugin "dovecot-antispam" probably not working ... > Maybe I think wrongly > > Can you recommend any other plugin that will work properly and teach > spam with Junk for dovecot2.2.36-4 > > > > > > in dovecot: > > 15-mailboxes.conf: > ....... > mailbox Drafts { > special_use = \Drafts > } > mailbox Junk { > special_use = \Junk > } > > mailbox SPAM { > special_use = \Junk > } > > mailbox Trash { > special_use = \Trash > } > .... > > > 90-plugin.conf: > ..... > antispam_backend = MAILTRAIN > #antispam_mail_sendmail_args = --for;%u > antispam_mail_spam = --spam > antispam_mail_notspam = --ham > antispam_mail_sendmail = /usr/local/bin/spam-learn.sh > antispam_pipe_tmpdir = /tmp > > antispam_spam_pattern_ignorecase = spam;inbox.spam;Unwanted > antispam_trash_pattern_ignorecase = trash;Deleted > *;Junk*;wiadomo&AVs-ci-&AVs-mieci;kosz > > antispam_debug_target = syslog > antispam_verbose_debug = 1 > > > script to learn > > cat /usr/local/bin/spam-learn.sh > #!/bin/sh > > date >> /tmp/spam.txt > echo $@ >> /tmp/spam.txt > > if [ "x$1" = "x--spam" ]; then > /usr/bin/pyzor report >> /tmp/spam.txt 2>&1 > fi > if [ "x$1" = "x--ham" ]; then > /usr/bin/pyzor whitelist >> /tmp/ham.txt 2>&1 > fi > >