Author Topic: Headers/code visible instead of mail content.  (Read 7005 times)

Vasquez

  • Newbie
  • *
  • Posts: 2
Headers/code visible instead of mail content.
« on: January 22, 2014, 10:10:23 pm »
Hi guys,
Since a while I have a strange problem:
most of emails are not shown correctly.
When I open them , I can see the subject like:

"ecived: from fmi10..pf.interia.pl"

and the content:
-Ebed: 104
Received from: fmi10..pf..interia..pl
id 5E6974A003F
for <mail adress>, wed 22 jan 2014
X-envelope...
DKIM-Signature v=1; a=rsa...


Is this bug or do I do something wrong?

kuba123

  • Newbie
  • *
  • Posts: 2
Re: Headers/code visible instead of mail content.
« Reply #1 on: January 24, 2014, 03:39:58 pm »
I am getting the same errors.
It look like at problem with IMAP (maybe only at  'Interia' servers).

Does someone knows what are the causes of this and what are possible solutions?

HoMeK

  • Newbie
  • *
  • Posts: 1
Re: Headers/code visible instead of mail content.
« Reply #2 on: January 26, 2014, 12:21:38 pm »
Same here I have exactly the same issue and any solutions so far :(

Wysłane z mojego GT-I9192 przy użyciu Tapatalk Pro 4


Vasquez

  • Newbie
  • *
  • Posts: 2
Re: Headers/code visible instead of mail content.
« Reply #3 on: January 27, 2014, 12:46:48 pm »
I am getting the same errors.
It look like at problem with IMAP (maybe only at  'Interia' servers).

Does someone knows what are the causes of this and what are possible solutions?

Exactly - I use interia too..

BroJ@rek

  • Newbie
  • *
  • Posts: 1
Re: Headers/code visible instead of mail content.
« Reply #4 on: January 28, 2014, 08:53:21 pm »
I am next in line of the disappointed to report back the same kind of issue.  I have been getting those error notifications for about a week now.

Previously, despite few flaws, AQUA MAIL easily bested any other clients, nowadays it is absolutely unusable.

I have delved into the websites of all kinds to seek some solution, but, much to mu frustration, I have been unable to fix this up to now.

Could anybody from AQUA MAIL help out a sizeable bunch of users?

My best!


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Headers/code visible instead of mail content.
« Reply #5 on: February 04, 2014, 06:20:32 pm »
Ok, people.

There are multiple reports here from users of @interia / poczta.pl servers.

Seems pretty logical to assume that something's broken on those servers, isn't it?

And that's exactly the case.

Further, since it worked with these servers just fine before, it's also logical to assume that there was a server side software "upgrade".

I've already had reports over email about this, too (from users of these mail services).

What appears to be broken is this:

For IMAP, my code asks servers to parse messages into parts and return specific ones (i.e. just text, or just an attachment, etc.)

This is a documented, supported, official part of the IMAP specification, which worked on these servers before, and continues to work with all other IMAP servers.

These particular servers, though, now return not the requested message part, but the entire message, including MIME headers.

Has to be fixed on the servers.

More tech details:

UID FETCH BODY[n] <--- asking for a specific message part, "n"
UID FETCH BODY <--- asking for the entire message body, and is how these servers now treat the above command

PS - I tried to create a test account @interia.pl, but their registration requires a Polish phone number for SMS verification. I don't happen to have one.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Headers/code visible instead of mail content.
« Reply #6 on: February 04, 2014, 06:26:05 pm »
@kuba123 - I just noticed the log, thanks. It confirms that my guesses were completely on the mark.

1 - AquaMail asking the server to analyze a message's structure:

kman13 FETCH 2017 (UID BODY.PEEK[HEADER.FIELDS (...header fields...)] BODYSTRUCTURE )

Response:

BODYSTRUCTURE ("text" "plain" NIL NIL NIL "8bit" 49653 NIL NIL NIL)

This means the message only has a text/plain part, no attachments, no HTML, no MIME structure. The "part number" of this text/plain content is "1" (implicit).

2 - AquaMail asking the server to return this part:

kman14 FETCH 2017 (UID BODY.PEEK[1]<0.1024>)

Server returning the message's raw contents instead:

* 2017 FETCH (UID 30199 BODY[1]<0> {1024}
eceived: from fmx32.pf.interia.pl (fmx32.pf.interia.pl [127.0.0.1])
   by fmx32.pf.interia.pl (INTERIA.PL) with ESMTP id 7FC293C01CF
   for <test.mail1@interia.pl>; Fri, 24 Jan 2014 11:42:35 +0100 (CET)
X-Envelope-To: <test.mail1@interia.pl>
X-Envelope-From: <test.mail4@gmail.com>
Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175])
   (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
   (No client certificate requested)
   by fmx32.pf.interia.pl (INTERIA.PL) with ESMTPS
   for <test.mail1@interia.pl>; Fri, 24 Jan 2014 11:42:34 +0100 (CET)
Received: by mail-vc0-f175.google.com with SMTP id ij19so1755057vcb.20
        for <test.mail1@interia.pl>; Fri, 24 Jan 2014 02:42:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=O8uk511iPw2QY6GIxMyxafoUB5+2MPRtfaY9Ju3e4jM=;
        b=hg38bBdLzXTu/N/yqBqTS7j)
kman14 OK FETCH completed.

Oh, and note the missing "R" in "Received" (first line). A classic off-by-one error.

To reiterate: server bug, needs to be fixed there.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

kuba123

  • Newbie
  • *
  • Posts: 2
Re: Headers/code visible instead of mail content.
« Reply #7 on: February 10, 2014, 12:31:25 am »
Thanks for the information.
They removed the errors.  My emails are now shown correctly :)

Compliments for the great work you do.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Headers/code visible instead of mail content.
« Reply #8 on: February 11, 2014, 11:39:52 pm »
Ah, so I'm not the only developer in the world who "makes" bugs :) Amazing :)

Thanks for the update. I'm certainly glad to hear it.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/