[Dovecot] [stava@telcotec.se: [stava: antispam problem]]
Hi All,
I've built the dovecot-antispam-plugin from hg.dovecot.org and installed it. I've turned on debugging with "mail_debug = yes" in dovecot.conf and restarted dovecot. However, the antispam plugin module gets loaded by dovecot, but then nothing, i.e. when moving mail from Inbox to Spam and vice versa, I see nothing.
How do I get debug messages from the dovecot-antispam-plugin? There's a few i_debug() statements in there (and I added a few myself), but I don't see any of these messages.
# dovecot -n # 2.0.6: /etc/dovecot/dovecot.conf # OS: Linux 2.6.34.7-0.4-desktop x86_64 openSUSE 11.3 (x86_64) auth_debug = yes auth_debug_passwords = yes auth_mechanisms = plain login auth_username_format = %Lu auth_verbose = yes base_dir = /var/run/dovecot disable_plaintext_auth = no dotlock_use_excl = yes listen = * mail_access_groups = mail mail_debug = yes mail_full_filesystem_access = yes mail_location = maildir:~/Mail:LAYOUT=fs mail_plugins = autocreate quota zlib managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /etc/dovecot/ldap.conf driver = ldap } plugin { antispam_backend = dspam antispam_dspam_binary = /usr/sbin/dspam antispam_signature = X-DSPAM-Signature antispam_spam = Spam antispam_trash = Trash autocreate = Spam autocreate2 = Sent autocreate3 = Trash autosubscribe = Spam autosubscribe2 = Sent autosubscribe3 = Trash quota = fs:disk quota quota2 = fs:user quota } protocols = imap ssl = no userdb { args = /etc/dovecot/ldap.conf driver = ldap } verbose_ssl = yes protocol imap { mail_plugins = autocreate quota zlib imap_quota imap_zlib antispam }
Any help appreciated /Lars Stavholm
On Sat, Oct 23, 2010 at 01:33:58PM +0200, Lars Stavholm wrote:
Hi All,
I've built the dovecot-antispam-plugin from hg.dovecot.org and installed it.
Which version is that? I mean the mercurial commit ID as returned by 'hg id' command.
I've turned on debugging with "mail_debug = yes" in dovecot.conf and restarted dovecot. However, the antispam plugin module gets loaded by dovecot, but then nothing, i.e. when moving mail from Inbox to Spam and vice versa, I see nothing.
The plugin code has almost no debugging at the moment.
My first guess would be that folders aren't recognized as you supposed them to be. Try applying the attached patch which should show how exactly the folders are treated.
-- Eugene Paskevich | *==)----------- | Plug me into eugene@raptor.kiev.ua | -----------(==* | The Matrix
On Sun, Oct 24, 2010 at 07:10:53AM +0300, Eugene Paskevich wrote:
On Sat, Oct 23, 2010 at 01:33:58PM +0200, Lars Stavholm wrote:
Hi All,
I've built the dovecot-antispam-plugin from hg.dovecot.org and installed it.
Which version is that? I mean the mercurial commit ID as returned by 'hg id' command.
93f413f9204f+ tip
I've turned on debugging with "mail_debug = yes" in dovecot.conf and restarted dovecot. However, the antispam plugin module gets loaded by dovecot, but then nothing, i.e. when moving mail from Inbox to Spam and vice versa, I see nothing.
The plugin code has almost no debugging at the moment.
That would explain it then:)
My first guess would be that folders aren't recognized as you supposed them to be. Try applying the attached patch which should show how exactly the folders are treated.
Thank you, I'll try that. /L
-- Eugene Paskevich | *==)----------- | Plug me into eugene@raptor.kiev.ua | -----------(==* | The Matrix
diff -r 0cda886fec90 src/mailbox.c --- a/src/mailbox.c Sun Oct 24 05:17:20 2010 +0300 +++ b/src/mailbox.c Sun Oct 24 07:07:20 2010 +0300 @@ -286,6 +286,8 @@ asmb->module_ctx.super = box->v;
asmb->box_class = antispam_mailbox_classify(box); + i_debug("mailbox '%s' was recognized as %i", mailbox_get_name(box), + asmb->box_class);
box->v.copy = antispam_copy; box->v.save_begin = antispam_save_begin;
participants (2)
-
Eugene Paskevich
-
Lars Stavholm