82 lines
2.5 KiB
Plaintext
82 lines
2.5 KiB
Plaintext
MBOX-Line: From gds at chartertn.net Tue Mar 5 12:36:10 2019
|
|
To: imap-protocol@u.washington.edu
|
|
From: Gene Smith <gds@chartertn.net>
|
|
Date: Tue Mar 5 12:36:43 2019
|
|
Subject: [Imap-protocol] gmail fails "tag uid fetch 123
|
|
(BODY.PEEK[2.1.1])", most others OK
|
|
In-Reply-To: <CABa8R6uNSk1QYME2-StLDUusPLo3oSCzyOEpaubx9LuUKm9gaQ@mail.gmail.com>
|
|
References: <ebb06b9a-bd6b-7f7a-8a74-a0c8aa1591d1@chartertn.net>
|
|
<CABa8R6uNSk1QYME2-StLDUusPLo3oSCzyOEpaubx9LuUKm9gaQ@mail.gmail.com>
|
|
Message-ID: <fcaae80f-f4eb-80db-133a-931ef75a9855@chartertn.net>
|
|
|
|
|
|
|
|
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
|
|
--------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|