nmh-workers
[Top] [All Lists]

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

2016-02-20 14:17:00
Dear David,

In message 
<f4a8de47-158b-4f2b-81c8-f598ed84a704(_at_)HUBCAS2(_dot_)seas(_dot_)wustl(_dot_)edu>
 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: wd(_at_)denx(_dot_)de
The following statement is not true.  The previous statement is true.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>