[Top][All Lists]

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

Re: [Nmh-workers] corruption when attaching all-null files

From: Paul Fox
Subject: Re: [Nmh-workers] corruption when attaching all-null files
Date: Wed, 07 May 2014 13:16:33 -0400

ken wrote:
 > >it gets assigned a type of application/octet-stream, but no encoding
 > >gets done. after using Attach:, and then running mime on the draft, it
 > >looks like this: (copy/pasted from my edit buffer, where the nulls show
 > >up as '^@')
 > The automatic selection code for application types is:
 >     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.
 > A file of all \0 wouldn't match any of these cases (contains8bit only
 > gets set if the function fails isascii(), which is between 0 and 127.).
 > I think we need a new test (isvalid7bit?  Have to think about it).

one also might wonder why postscript is such a special flower.

 paul fox, address@hidden (arlington, ma, where it's 65.1 degrees)

reply via email to

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