nmh-workers
[Top] [All Lists]

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

2013-02-27 20:05:21
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

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>