Re: [Imap-protocol] gmail fails "tag uid fetch 123 (BODY.PEEK[2.1.1])", most others OK

Gene Smith <[email protected]> Tue, 5 Mar 2019 15:36:10 -0500
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>

On 3/5/19 12:14 PM, Brandon Long wrote:
> Is it a consistent one that doesn't 
> work, or any of them?

I wrote:
> Thunderbird accesses the body of an attachment like this (uid 123):
> tag uid fetch 123 (BODY.PEEK[2.33.1])

Maybe you are asking about the index? The index 1 to 107 produces the 
error, i.e.,

tag uid fetch 123 (BODY.PEEK[2.1.1])
tag uid fetch 123 (BODY.PEEK[2.2.1])
:
tag uid fetch 123 (BODY.PEEK[2.107.1])

But the error only occur if the message indexed does not itself have 
attachments.

I noticed that when there is an attachement on the rfc822 message, the 
index does work. Like in my example, these do work and return the body 
and the attachments OK:

tag uid fetch 123 (BODY.PEEK[2.66.1])  // body of 66th rfc822 attachment
tag uid fetch 123 (BODY.PEEK[2.66.2])  // 1st attachment on 66th
tag uid fetch 123 (BODY.PEEK[2.66.3])  // 2nd attachment on 66th
tag uid fetch 123 (BODY.PEEK[2.66.4])  // 3rd attachment on 66th

Here's a real fetch of the 3rd rfc822 attachment that itself has no 
attachments:
-------------------------------------------------------------
. uid fetch 370 (BODY.PEEK[2.3.1])
. NO Some messages could not be FETCHed (Failure)
-------------------------------------------------------------

Here's a fetch of the 66th rfc822 attachment that has 3 attachment that 
are base64 encoded text files:

-------------------------------------------------------------
. uid fetch 370 (BODY.PEEK[2.66.1])
* 1 FETCH (UID 370 BODY[2.66.1] {99}

I've attached gameserv.patch, gameserv.c and gameserv.c

Comments please..........

--James
)
. OK Success
----------------------------------------------------------------

Fetch of 3rd attachment of index 66:

. uid fetch 370 (BODY.PEEK[2.66.4])
* 1 FETCH (UID 370 BODY[2.66.4] {3728}
SW5kZXg6IE1ha2VmaWxlLmluDQo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS
:
:
cnYsICpDaGFuU2VydiwgKk1lbW9TZXJ2LCAqSW5mb1NlcnYsICpHYW1lU2Vy
djsNCg==)
. OK Success
--------------------------------------------------------------





_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol