Note about Manifest Header Names starting with "From"

Weijun Wang weijun.wang at oracle.com
Fri Dec 27 09:40:19 UTC 2019



> On Dec 27, 2019, at 1:06 AM, Philipp Kunz <philipp.kunz at paratix.ch> wrote:
> 
> Hi,
> 
> The Jar File Specification [1] states that,
> 
>> Note: To prevent mangling of files sent via straight e-mail,
>> no header will start with the four letters "From".
> 
> But I can't see that this is actually the case.
> 
> After nobody has fixed this point inside of many years I tend to assume
> that it is not at all necessary or useful. However, I cannot understand
> the intention behind it or how that statement got there in the first
> place and hence might not be aware of the full context.

Maybe if such a manifest is used inside a email and stored in a mbox file, some email agent might mistaken it as the start of a message.

> 
> Instead I'd rather like to propose to update the specification by
> removing the quoted statement.

I'm OK with this.

> 
> I'm not sure if the specification [1] has changed since 13 or where the
> most up to date one is.

The latest spec can be found at

   https://download.java.net/java/early_access/jdk15/docs/specs/jar/jar.html

The spec is now built as a part of the JDK (along with api, but not tech guide).

Thanks,
Max

> 
> Regards,
> Philipp
> 
> 
> [1] 
> https://docs.oracle.com/en/java/javase/13/docs/specs/jar/jar.html#specification
> 



More information about the core-libs-dev mailing list