Hi - I recently installed a Ubuntu Hardy Heron box with dovecot 1.0.10 and
dspam 3.6.8. I used the dovecot plugin at
http://johannes.sipsolutions.net/Projects/dovecot-antispam -- However, I
found that the dspam executable backend required a --user flag when called
from the command line to retrain an email.
I augmented the code to allow for that. Here is a .diff:
[EMAIL PROTECTED]:~# diff dspam-exec.c.bak dovecot-antispam/dspam-exec.c 36c36
< #define FIXED_ARGS_NUM 7
---
> #define FIXED_ARGS_NUM 5
129,133c129,131
< argv[1] = "--user";
< argv[2] = "[EMAIL PROTECTED]";
< argv[3] = (char *)class_arg;
< argv[4] = "--source=error";
< argv[5] = (char *)sign_arg;
---
> argv[1] = "--source=error";
> argv[2] = (char *)class_arg;
> argv[3] = (char *)sign_arg;
144,147c142,143
< for (i = 0; i < extra_args_num; i++) {
< argv[i + 6] = (char *)extra_args[i];
< }
< execv(dspam_binary, argv);
---
> for (i = 0; i < extra_args_num; i++)
> argv[i + 4] = (char *)extra_args[i];
148a145
> execv(dspam_binary, argv);
I hope this finds its way onto a wiki or the dovecot dspam plugin page; I'm
posting to dspam-users so perhaps it can help others doing similar setups.
Kindest regards,
Michael Blinn
--
Only morality in our actions can give beauty and dignity to our lives.
- Albert Einstein
!DSPAM:1011,482356df150921108774541!