MBOX-Line: From gds at chartertn.net  Mon Mar  4 18:13:09 2019
To: imap-protocol@u.washington.edu
From: Gene Smith <gds@chartertn.net>
Date: Mon Mar  4 18:13:26 2019
Subject: [Imap-protocol] gmail fails "tag uid fetch 123 (BODY.PEEK[2.1.1])",
	most others OK
Message-ID: <ebb06b9a-bd6b-7f7a-8a74-a0c8aa1591d1@chartertn.net>

I have been trying to fix Thunderbird so it properly accesses a large 
mailing list digest message when fetching parts only on demand (no 
inline display of attachments or local storage to disk of the entire 
mesage).

The message can be found here: 
https://bugzilla.mozilla.org/attachment.cgi?id=10149

I have it working OK for several servers (Dovecot, MDaemon, Cyrus) but 
am unable to get to work with gmail.

The bodystructure numbering of the message parts is like this:

1 Top level message.
2 Container for the 107 rfc822 message attachments
2.1 The 1st message
2.1.1 Body of 1st message
2.2.The 2nd message
2.2.1 Body of 2nd message
:
:
2.66  The 66th message having attachments (example)
2.66.1 Body of 66th message
2.66.2 Attachment of 66th message (text)
2.66.3 2nd attachment
2.66.4 3rd (last) attachment of 66th message
:
:
2.107 The 107th (last) message
2.107.1 Body of 107th message

Thunderbird accesses the body of an attachment like this (uid 123):

tag uid fetch 123 (BODY.PEEK[2.33.1])

Several servers respond OK and return the email body of the 33th 
attachment. But gmail responds like this:

48 NO Some messages could not be FETCHed (Failure)

-gene






