nmh-workers
[Top] [All Lists]

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

2014-05-07 17:35:52
lyndon wrote:

On May 7, 2014, at 12:49 PM, Paul Fox 
<pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us> wrote:

and i think i understand
the containsnuls issue

There should only be one way to declare if the content is 7bit.

If you have 'is7bit' and 'containsnul' + 'contains8bit', there are
two possible decision paths:

1) 'is7bit' is set, or
2) 'containsnul' and 'contains8bit' are both unset.

If a chunk of code, e.g., sets 'contains8bit' but forgets to clear
'is7bit', who wins when you try to decide if the code is 7bit safe?

got it.

aside from the logic aspect:  i take it that text with a NUL must
be treated differently than text with an 8th bit set.  i assume it
must be encoded with q-p?  (or base64, but q-p would be sufficient?)

paul
----------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 59.0 degrees)

_______________________________________________
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>