[Dovecot] mailtrain with dovecot antispam plugin

Johannes Berg johannes at sipsolutions.net
Mon Apr 21 12:26:37 EEST 2008


> I've managed to get it working with the following patch.
> There may be a better way, deeper in the code, to do it. Timo or 
> Johannes ... any sugestions?
> 
> --- dovecot-antispam/mailtrain.c        2008-04-19 22:20:32.000000000 +0100
> +++ dovecot-antispam-qmail/mailtrain.c  2008-04-19 22:25:45.000000000 +0100
> @@ -274,7 +274,8 @@
>                         mail_storage_set_error(t->box->storage,
>                                                "Failed to write line to 
> temp");
>                         goto failed_to_copy;
> -               }
> +               } else
> +                       o_stream_send_str(outstream, "\n");

Interesting. I assume that i_stream_read_next_line() will strip out the
trailing [\r]\n and o_stream_send_str() doesn't add one. I would prefer
a patch using o_stream_sendv(), but I'm not sure whether to send \r\n
or \n.

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/20080421/eb9516a9/attachment.bin 


More information about the dovecot mailing list