[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;
boundary="--_c2fcfce6-744c-4fc2-8512-4ecb7d2df39b"
----_c2fcfce6-744c-4fc2-8512-4ecb7d2df39b
Content-Type: multipart/alternative;
boundary="--_ae7cf048-c85d-4148-bf22-b44db3bf2100"
----_ae7cf048-c85d-4148-bf22-b44db3bf2100
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
...
----_ae7cf048-c85d-4148-bf22-b44db3bf2100
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
...
----_ae7cf048-c85d-4148-bf22-b44db3bf2100--
----_c2fcfce6-744c-4fc2-8512-4ecb7d2df39b
Content-Type: application/pdf; name="test.pdf"
Content-Transfer-Encoding: base64
...
----_c2fcfce6-744c-4fc2-8512-4ecb7d2df39b--
I run this through:
$ mhfixmsg -file msg.in -outfile msg.out -verbose -decodetypes
text/plain
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.
- Re: [Nmh-workers] base64 ... just looking for advice, David Levine, 2016/02/20
- Re: [Nmh-workers] base64 ... just looking for advice, Wolfgang Denk, 2016/02/20
- Re: [Nmh-workers] base64 ... just looking for advice, David Levine, 2016/02/20
- Re: [Nmh-workers] base64 ... just looking for advice,
Wolfgang Denk <=
- Re: [Nmh-workers] base64 ... just looking for advice, David Levine, 2016/02/21
- Re: [Nmh-workers] base64 ... just looking for advice, Ken Hornstein, 2016/02/21
- Re: [Nmh-workers] base64 ... just looking for advice, David Levine, 2016/02/21
- Re: [Nmh-workers] base64 ... just looking for advice, Wolfgang Denk, 2016/02/21
- Re: [Nmh-workers] base64 ... just looking for advice, Ken Hornstein, 2016/02/21
- Re: [Nmh-workers] base64 ... just looking for advice, Lyndon Nerenberg, 2016/02/21
- Re: [Nmh-workers] base64 ... just looking for advice, David Levine, 2016/02/22
- Re: [Nmh-workers] base64 ... just looking for advice, Paul Fox, 2016/02/22
- Re: [Nmh-workers] base64 ... just looking for advice, David Levine, 2016/02/22
- Re: [Nmh-workers] base64 ... just looking for advice, Paul Fox, 2016/02/22