On May 7, 2014, at 9:51 AM, Ken Hornstein <kenh(_at_)pobox(_dot_)com> wrote:
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).
Better to add a bit that says 'containsnulls'. MIME requires specific behaviour in the face of NULs, as does SMTP. I don't like this 'isvalid7bit' idea. The suitability of a body part for 7 bit transport can – and should – be inferred from contains8bit and containsnulls. Adding 'isvalid7bit' makes way for conflicting assertions as to whether the code is 7 bit or not. You could always '#define ISVALID7BIT(foo) (!(foo->contains8bit || foo->containsnulls))'. And similarly for ISVALID8BIT. --lyndon
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Nmh-workers mailing list Nmh-workers(_at_)nongnu(_dot_)org https://lists.nongnu.org/mailman/listinfo/nmh-workers
Previous by Date: | Re: [Nmh-workers] corruption when attaching all-null files, Ken Hornstein |
---|---|
Next by Date: | Re: [Nmh-workers] corruption when attaching all-null files, Paul Fox |
Previous by Thread: | Re: [Nmh-workers] corruption when attaching all-null files, Lyndon Nerenberg |
Next by Thread: | Re: [Nmh-workers] corruption when attaching all-null files, Ken Hornstein |
Indexes: | [Date] [Thread] [Top] [All Lists] |