nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Syntax for choosing content transfer encoding


From: Ken Hornstein
Subject: Re: [Nmh-workers] Syntax for choosing content transfer encoding
Date: Wed, 27 Feb 2013 21:05:06 -0500

>> Also, I've occasionally had to deal with
>> "application/x-patch" parts and those are by default
>> encoded with base64; I'd rather do 7bit or 8bit.
>
>Looking quickly, I would think that mhbuild would use 7bit
>if safe:
>
>    case CT_APPLICATION:
>        /* For application type, use base64, except when postscript */
>        if (contains8bit || linelen || linespace || checksw)
>            ct->c_encoding = (ct->c_subtype == APPLICATION_POSTSCRIPT)
>                ? CE_QUOTED : CE_BASE64;
>        else
>            ct->c_encoding = CE_7BIT;

Hm.  I think maybe I was getting tripped up by trailing linespace (the
linespace flag).  I guess technically that's not safe, although I've never
encountered a case where it wasn't.  I can't find anything in the relevant
standards at first glance, though.

--Ken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]