@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 <
[email protected]>; Fri, 24 Jan 2014 11:42:35 +0100 (CET)
X-Envelope-To: <
[email protected]>
X-Envelope-From: <
[email protected]>
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 <
[email protected]>; Fri, 24 Jan 2014 11:42:34 +0100 (CET)
Received: by mail-vc0-f175.google.com with SMTP id ij19so1755057vcb.20
for <
[email protected]>; 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.