Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 196274 - mail-filter/dovecot-dspam-0_beta7: Add user-argument to dovecot-dspam
Summary: mail-filter/dovecot-dspam-0_beta7: Add user-argument to dovecot-dspam
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 12:49 UTC by Peter
Modified: 2007-10-22 00:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dovecot-dspam --user-patch (dovecot-dspam.patch,970 bytes, patch)
2007-10-18 12:52 UTC, Peter
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2007-10-18 12:49:55 UTC
When running dovecot-dspam and moving emails to and from spam-folder to class them as spam or ham, I was having problems with dspam reporting in mail.log that it could not determine the destination user.

This happened even though I had "MySQLUIDInSignature on" in dspam.conf.

A --user argument was needed in the dspam-command called by the dovecot-dspam-plugin to make it work as intended.

The attached patch gets the current user from the dovecot-environment and adds it to the dspam-command.

Reproducible: Always

Steps to Reproduce:
1. Configure dovecot to use the dovecot-dspam-plugin
2. Move a message to/from spam-folder.
3. Message in maillog saying that dspam could not determine destination user

Actual Results:  
No dspam-reclassification done :(

Expected Results:  
dspam should reclassify the message, which should leave no output in logs, but presumably different stats when running dspam_stats
Comment 1 Peter 2007-10-18 12:52:44 UTC
Created attachment 133746 [details, diff]
dovecot-dspam --user-patch
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-18 21:03:40 UTC
this is already in my overlay (http://overlays.gentoo.org/dev/hollow/browser/mail-filter/dovecot-dspam) will move it to portage soon
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-18 21:10:07 UTC
btw, did you see http://johannes.sipsolutions.net/Projects/dovecot-antispam ? it seems to obsolete dovecot-dspam .. and it supports --user, will probably add this one to portage
Comment 4 Peter 2007-10-19 06:59:53 UTC
Nope, did not know about dovecot-antispam. Looks promising, looking forward to seeing it in portage.
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2007-10-21 08:39:27 UTC
mail-filter/dovecot-antispam-20071019 in portage now
Comment 6 Seemant Kulleen (RETIRED) gentoo-dev 2007-10-22 00:52:34 UTC
well, the module seems to load for me, but I always get an error that the plugin is not configured.  I have in my dovecot.conf file:

protocol imap {
  mail_plugins = antispam
}

plugin {

  antispam_signature = X-DSPAM-Signature
  antispam_trash = trash;Trash;TRASH;Deleted Items
  antispam_spam = SPAM;spam;Spam;Junk
  antispam_dspam_binary = /usr/bin/dspam
  antispam_dspam_args = --user;%u
  antispam_dspam_args = --mode=teft
}

According to what I see in the manpage, it does look pretty configured :(

If either of you has this working, I'd love some tips!