maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5+M6] N900 and N9 email misses some attachments (https://talk.maemo.org/showthread.php?t=95995)

robthebold 2015-09-25 23:32

N900 and N9 email misses some attachments
 
Searching hasn't found me a case quite like I've run into.

My N9 somehow has started to fail to get attachments in emails from one particular sender. Every week, she sends a newsletter in pdf format. I get the email body, but the attachment is missing. My wife gets the same email, but she gets the attachment intact. If she forwards me the email she received, the attachment is there.

I get another pdf weekly newsletter from another sender using the same domain, same email system. Those attachments appear for me just fine. I get attachments sent by everyone else -- as far as I know.

When I get home and download my emails on my PC, I get the missing attachment (in KMail, no less). I can even forward that email back to myself (same account) and then see the attachment on my phone in Fenix. Wrong, wrong, I can't forward it to me.

The incoming mail is plain old POP3.

Anyone got an idea? Obviously, it's work-aroundable, but I'd really like to know what gives.

peterleinchen 2015-09-26 06:27

Re: N9 email misses some attachments
 
Now as you say I remember same happening to me (a few times).
I could not nail it down to any sender, mail provider or system.
I have the iDevice in suspicion but...

And onemore prob I have is that for one specific account all sent mails go out but I get a error that sending failed and the mail vanishes. But it is sent and received. Only annoying I cannot track it.

pichlo 2015-09-26 06:51

Re: N9 email misses some attachments
 
Have you tried checking out the offending emails' source? Perhaps you might even post it here, antonymized, ofc.

peterleinchen 2015-09-26 10:37

Re: N9 email misses some attachments
 
source was someaccount @ a german mail provider (via iPhone), sink was another german mail provider (IMAP)

Especially strange was that also the N900 (modest) was not able to show the attachment but at least told me about an attachment in te overview.
But on big gun (or web) it was there.


--
Quote:

Originally Posted by pichlo (Post 1483666)
antonymized

?
did you mean atomized? :)

pichlo 2015-09-26 11:47

Re: N9 email misses some attachments
 
Sorry, I meant the email source code. All the headers, boundary lines etc. Anonymized as in stripped of any personal info.

robthebold 2015-09-26 15:47

I'm looking at the email source on my PC, and there are differences between sender whose pdf attachments do come through on N9 and hers who don't.

When looking at the breaks between text/html/attachments, the 'good' messages separates section with '------=_Part_ . . .' and the bad has '----boundary_ . . . '

Also, the good one has a field called 'Content-Disposition'. Bad does not.

I'll see what I can do anonymizing the source, but I realize I'm pretty naive about smtp.

And both senders are probably using some form of Apple product, this being a school setting which has been Apple-centric in much of the US even before the Mac arrived.

pichlo 2015-09-26 15:53

Re: N9 email misses some attachments
 
Just edit the source as text, replace anything personal (email addresses, names) with xxxx and attach it here.

robthebold 2015-09-26 16:33

Re: N9 email misses some attachments
 
Ok, let's start with the "bad" message.

Code:

MIME-Version: 1.0
From: xxx@xxx
To: mmm@mmm
Reply-To: xxx@xxx
Date: 25 Sep 2015 14:23:23 -0500
Subject: Friday Newsletter/Important Information
Content-Type: multipart/mixed;
 boundary=--boundary_82890_a600334b-37a8-418d-9e54-7ea08262f178
Message-ID: <ICWEB15hkDp8ES092Da000036ae@xxx.xxx.xxx>
X-OriginalArrivalTime: 25 Sep 2015 19:23:23.0483 (UTC) FILETIME=[A522FAB0:01D0F7C7]
X-Gm-Spam: 0
X-Gm-Phishy: 0
X-Bayes-Prob: 0.0001 (Score 0, tokens from: mmm@mmm, CS_DEFAULT, default, @@RPTN)
X-Spam-Score: undef - spam scanning disabled
X-CanIt-Geo: No geolocation information available for 10.144.194.218
X-CanItPRO-Stream: Outbound (inherits from default)
X-Canit-Stats-ID: Bayes signature not available
X-Scanned-By: CanIt (https:// zzz) on zzz.zzz.zzz.zzz
X-Scanned-By: CanIt (https:// zzz) on zzz.zzz.zzz.zzz
X-Nonspam: None


----boundary_82890_a600334b-37a8-418d-9e54-7ea08262f178
Content-Type: multipart/alternative; boundary=--boundary_82889_93f6af70-22f7-415b-8ac2-0c1d29607a44


----boundary_82889_93f6af70-22f7-415b-8ac2-0c1d29607a44
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

  . . . HTML message body . . . .

----boundary_82889_93f6af70-22f7-415b-8ac2-0c1d29607a44
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

  . . . HTML message body . . .

----boundary_82889_93f6af70-22f7-415b-8ac2-0c1d29607a44--

----boundary_82890_a600334b-37a8-418d-9e54-7ea08262f178
Content-Type: multipart/mixed; boundary=--boundary_82891_eb9a889c-26c2-4bd5-b777-c78674cb8cb6


----boundary_82891_eb9a889c-26c2-4bd5-b777-c78674cb8cb6
Content-Type: image/jpeg; name=picture.jpg
Content-Transfer-Encoding: base64

. . . huge block of base64 encoded jpeg data . . .
----boundary_82891_eb9a889c-26c2-4bd5-b777-c78674cb8cb6
Content-Type: application/pdf; name="document.pdf"
Content-Transfer-Encoding: base64

. . . huge block of base64 encoded pdf data . . .
----boundary_82891_eb9a889c-26c2-4bd5-b777-c78674cb8cb6
Content-Type: application/pdf; name="newsletter.pdf"
Content-Transfer-Encoding: base64

 . . . another huge block of base64 encoded pdf data . . .
----boundary_82891_eb9a889c-26c2-4bd5-b777-c78674cb8cb6--

----boundary_82890_a600334b-37a8-418d-9e54-7ea08262f178--

And a "good" message from a different sender at the same domain:

Code:

Date: Wed, 09 Sep 2015 16:25:22 -0700
From: yyy <yyy@yyy>
Reply-To: yyy <yyy@yyy>
To:  <rmmm@mmm>
Message-ID: <1971145322.18564995.1441841122592.JavaMail.root@yyy>
Subject: YYY Newsletter
MIME-Version: 1.0
Content-Type: multipart/mixed;
        boundary="----=_Part_18564994_1740978702.1441841122591"
List-Unsubscribe: <https://xxx.xxx.xxx/unsubscribeemail.php?s=ci5icnVjZUBjb21wdXRlci5vcmc&auto>
X-Gm-Spam: 0
X-Gm-Phishy: 0
X-Bayes-Prob: 0.0001 (Score 0, tokens from: mmm@mmm, CS_DEFAULT, default, @@RPTN)
X-Spam-Score: undef - spam scanning disabled
X-CanIt-Geo: No geolocation information available for 10.144.194.218
X-CanItPRO-Stream: Outbound (inherits from default)
X-Canit-Stats-ID: Bayes signature not available
X-Scanned-By: CanIt (https:// mmm) on mmm.mmm.mmm.mmm
X-Scanned-By: CanIt (https:// mmm) on mmm.mmm.mmm.mmm
X-Nonspam: None


------=_Part_18564994_1740978702.1441841122591
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

. . . HTML formatted message . . .

------=_Part_18564994_1740978702.1441841122591
Content-Type: application/pdf;
        name=Newsletter.pdf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="Newsletter.pdf"

 . . .  base64 encoded pdf data . . .
------=_Part_18564994_1740978702.1441841122591--

(I did leave out all the routing and forwarding history at the top)

pichlo 2015-09-26 17:17

Re: N9 email misses some attachments
 
Excellent, exactly what I needed.

OK, let's start with the "good" message (because it is simpler, no other reason). It has two parts: an HTML text and one attachment. Simple.

The "bad" message has also two parts, but each of them is nested. The first part has two sub-parts, the text in plain text and in HTML. (Does your phone show the text? And if so, in what format?) The second part is also nested, with three attachments: one JPEG and two PDFs. There is nothing inherently wrong with that format, a semi-decent email client should be able to process it. It looks like a bug the N9's client.

For completeness, it might be interesting to see the email after being forwarded by your wife. You say your phone can read that correctly, maybe her email client reformats it before sending to a form your phone can understand.

peterleinchen 2015-09-26 18:14

Re: N9 email misses some attachments
 
@pichlo
Excellent!
Exactly what I did not see and did not know.

I had that
Content-Disposition: inline;
under suspicion but "nested parts" I did not see.
Thanks.

Now to the question how to solve?
At least for the N900 I see the chance via CSSU...


All times are GMT. The time now is 14:41.

vBulletin® Version 3.8.8