[Dovecot] dovecot-antispam plugin and "Failed to call dspam" message

Marcin Rzepecki m.rzepecki at iem.pw.edu.pl
Sat Jun 13 22:59:31 EEST 2009


Sat, Jun 13, 2009 at 07:34:49AM -0700, Jeremy Doran wrote:
> Hi,
> 
> I had this working until I recently upgraded Dovecot, and now I'm getting a message back from
> Thunderbird of "Failed to call dspam." when I attempt to move a message into one of the designated
> spam folders.
>
> However, I know from looking at the dspam system.log file, the retraining actually happens - so it
> -does- appear to be calling dspam. It appears that the 'move' operation fails.
> [...]

Hi Jeremy,
i've tried to figure it out some time ago. As you mentioned, dspam is
called ok, however error is still reported.
I'm applying following patch to avoid reporting error and all is working
great for me. I'm using dspam-devel version, but it should not make no
difference.

#v+
--- dspam-exec.c.orig	2008-11-11 16:02:20.000000000 +0100
+++ dspam-exec.c	2008-11-11 16:02:30.000000000 +0100
@@ -178,13 +178,14 @@
 	int ret = 0;
 
 	while (item) {
-		if (call_dspam(item->sig, item->wanted)) {
+	/*	if (call_dspam(item->sig, item->wanted)) {
 			ret = -1;
 			mail_storage_set_error(ctx->box->storage,
 					       ME(NOTPOSSIBLE)
 					       "Failed to call dspam");
 			break;
-		}
+		} */
+		call_dspam(item->sig, item->wanted);
 		item = item->next;
 	}
 
#v-

Cheers,

-- 
Marcin Rzepecki
m.rzepecki(at)iem.pw.edu.pl



More information about the dovecot mailing list