Tuesday, 1 June 2010

How to see what is in multi-part MIME messages your email prog cannot decode: munpack

Pauline has "Got a nokia e63, takes jpegs. I send it via hotmail using 3 as the server" and I could see some of the pictures she sent in Thunderbird, but not others. Same for my Mum using Windows+some version of Outlook.
How to see what is in multi-part MIME messages your email prog cannot decode:

1. From Thunderbird/Evolution/gmail/wherever: Save message (as .eml).
2. $ sudo apt-get install mpack # or equivalent for your OS - install package called "mpack"
3. $ munpack message.eml

# bash, multiple files:
$ for f in *.eml; do munpack $f; done
 How to not see it: open it in Thunderbird/Evolution/Outlook
Upgrade Thunderbird to 3.x (ESET antivirus immediatelyu goes crazy scanning Thunderbird indexing Inbox urgh!). Forward to gmail. Try to open .eml with mutt. Thunderbird attachment for viewing emails. Not sure if it would manage to unpack these messages.
Mutt looking very lovely these days on ubuntu, be careful it will write changes to mail file that it opens!
$ mutt -f ~/.thunderbird/meh.default/ImapMail/meh/INBOX

Where I say "I see same problem." I'm quite wrong :( whoops.
Reverse reverse! Nuns! Pass the retractor please nurse.

I see same problem. 
With latest Thunderbird 3.0 (and previous 2.x versions) MIME boundary
containing commas (and other non-alpha chars) doesn't get decoded. MIME message
just shown inline as text not decoded.

Coming from someone using a nokia E65 phone.

2 messages okay:

5 messages not okay (note the one without the comma in boundary .. a - at end
of boundary is a problem?):

The headers seem to have some corruption.
X-OriginalArrivalTime: and Date: header get inserted in To: line which maybe had some end of line chars in a row in it.

This is probably the REAL problem. "probably is when there is a small chance the thing won't happen" - Kate @ dinner this tea-time.

The problem I see seems to be because the email headers have a blank line inside the To: header line. Email readers Thunderbird/Evolution/Outlook/mutt display the message body starting after the blank line in To: line and MIME message type is not detected. nokia + hotmail
munpack extracts attachments okay.

 >From muh  Tue May 11 16:00:42 2010
Envelope-to: muh@meh.mah
Delivery-date: Tue, 11 May 2010 16:00:42 +0100
Received: from meh.hotmail.com ([meh.mah.meh.moo])
    by dspsrv.com with esmtp (Exim 4.71)
    (envelope-from )
    id 1OBqwr-0008WG-4B
    for muh@meh.mah Tue, 11 May 2010 16:00:42 +0100
Received: from meh ([meh.mah.meh.moo]) by meh.hotmail.com with Microsoft SMTPSVC(meh.mah.meh.moo);
     Tue, 11 May 2010 08:00:39 -0700
X-Originating-IP: [meh.mah.meh.moo]
X-Originating-Email: muh@meh.mah
Received: from [meh.mah.meh.moo] ([meh.mah.meh.moo]) by meh.hotmail.com over TLS secured channel with Microsoft SMTPSVC(meh.mah.meh.moo);
     Tue, 11 May 2010 08:00:24 -0700
From: muh@meh.mah
Reply-to: muh@meh.mah
To: ,
 , ,
X-OriginalArrivalTime: 11 May 2010 15:00:26.0865 (UTC) FILETIME=[B0A6DE10:01CAF11A]
Date: 11 May 2010 08:00:26 -0700

, ,
 , ,
  , ,
Subject: Does this mean
Date: Tue, 11 May 2010 16:00:19 +0100
X-Mailer: EPOC Email Version 2.10
MIME-Version: 1.0
Content-Language: i-default
Content-Type: multipart/mixed;

This is a MIME Message

Content-Type: text/plain; charset=UTF-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

text of message muhed mehed and mahed too
Content-Type: image/jpeg
Content-Disposition: attachment;
Content-Transfer-Encoding: base64



No comments: