lmtp patch for long lines ...

Ken Murchison ken at oceana.com
Fri Apr 11 12:47:04 EDT 2003



Brasseur Valéry wrote:
> 
> here is a patch wich should enable cyrus to handle correctly long email
> lines...
> 
> --- lmtpengine.c.orig   Fri Apr 11 16:26:09 2003
> +++ lmtpengine.c        Fri Apr 11 16:26:55 2003
> @@ -669,7 +669,7 @@
>             p[1] = '\n';
>             p[2] = '\0';
>         }
> -       else if (p[0] != '\n') {
> +       else if (p[0] == '\0') {
>             /* line contained a \0 not at the end */
>             r = IMAP_MESSAGE_CONTAINSNULL;
>             continue;


If your MTA isn't ending lines with \r\n, then its broken.

-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp




More information about the Info-cyrus mailing list