[Top][All Lists]

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

Re: [Nmh-workers] base64 ... just looking for advice

From: Wolfgang Denk
Subject: Re: [Nmh-workers] base64 ... just looking for advice
Date: Sat, 20 Feb 2016 21:16:48 +0100

Dear David,

In message <address@hidden> you wrote:
> > Cool.  where can I find that, please?
> It's in the git repo.  If you haven't been using that, these will download=
>  from master, build, and install (with the build_nmh -i flag):

Found it, thanks.

Hm, ... I have a test file with this structure:

Content-Type: multipart/mixed;

Content-Type: multipart/alternative;

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Content-Type: application/pdf; name="test.pdf"
Content-Transfer-Encoding: base64

I run this through:

        $ mhfixmsg -file msg.in -outfile msg.out -verbose -decodetypes 
        mhfixmsg: msg.in part 1.2, decode text/plain; charset=utf-8

However I notice that not only the "text/plain" part has been
modified;  the "text/html" part has _also_ been modified:
originally, it was a base64 encoded HTML file with UNIX line endings
(plain LF); now it is a base64 encoded file with DOS line endings (CR
+ LF).

So apparenty  mhfixmsg  still touches parts which are not listed on
the "-decodetypes" list: in my case it decodes from base64, converts
LF => CR/LF, and re-encodes to base64.

This is a bit unexpected to me.

Is this intentional?

Can I use some options to avoid it?

I would like to make sure that all parts not listed in "-decodetypes"
remain completely unmodified.

Best regards,

Wolfgang Denk

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: address@hidden
The following statement is not true.  The previous statement is true.

reply via email to

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