nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] RFC 2047 vs RFC 2231 encoding for MIME parameters


From: Ralph Corderoy
Subject: Re: [Nmh-workers] RFC 2047 vs RFC 2231 encoding for MIME parameters
Date: Fri, 07 Oct 2016 14:24:55 +0100

Hi Krn,

> >     Content-Type: inode/x-empty; name*=UTF-8''%41%00%42
> >     Content-Disposition: attachment; filename*=UTF-8''%41%00%42
>
> Sigh. We use a lot of C strings, so we're not so great on handling
> embedded NULs.  It's one of those things that is simultanously hard to
> fix, and AFAICT not worth it.  Let me ask you, Ralph ... what do you
> WANT to happen here?
> 
> --Krn

How about...  Detect any decoding that produces a NUL up with which our
string representation cannot put.  Stop at that point.  If the user
really wants to proceed, and they probably don't once the dodgy filename
is drawn to their attention, have him drop -auto or alter the email.

-- 
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy



reply via email to

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