[Dovecot] Error using antispam plugin

Johannes Berg johannes at sipsolutions.net
Wed Jun 4 21:36:07 EEST 2008


> But looking at the antispam code I think there's one bug:
> 
> static int antispam_save_finish(struct mail_save_context *ctx)
> 	struct mail *dest_mail = ast->mail;
> 
> I think ast->mail can be NULL. It should maybe be instead:
> 
> dest_mail = ctx->dest_mail != NULL ? ctx->dest_mail : ast->mail;

Yeah, probably lost that when copying from the quota code. Juan, can you
try that?

OTOH, super (i.e. the quota plugin) will never see this value and that's
where it seems to crash.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080604/d7725565/attachment.bin 


More information about the dovecot mailing list