Body.peek is not compatible with GMail #67

Closed
opened 2024-01-08 16:37:41 +00:00 by quentin · 0 comments
Owner

Probably the same issue that I encountered in #66.
Closing for now.

On plain text email we have an issue when trying to fetch the first part, as we return an error while dovecot returns the equivalent of BODY[TEXT]:

Us:

30 fetch 284 bodystructure
* 284 FETCH (BODYSTRUCTURE ("TEXT" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 3881 121 NIL))
30 OK FETCH completed
40 fetch 284 body[1]
40 NO You tried to access a subpart on an atomic part (text or binary). Unresolved subpath [1]

Dovecot:

20 fetch 284 body
* 284 FETCH (BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 3881 121))
20 OK Fetch completed (0.001 + 0.000 secs).
20 fetch 284 body[1]
* 284 FETCH (FLAGS (\Seen) BODY[1] {3881}
Hi list,
....
Probably the same issue that I encountered in #66. Closing for now. <details> On plain text email we have an issue when trying to fetch the first part, as we return an error while dovecot returns the equivalent of BODY[TEXT]: Us: ``` 30 fetch 284 bodystructure * 284 FETCH (BODYSTRUCTURE ("TEXT" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 3881 121 NIL)) 30 OK FETCH completed 40 fetch 284 body[1] 40 NO You tried to access a subpart on an atomic part (text or binary). Unresolved subpath [1] ``` Dovecot: ``` 20 fetch 284 body * 284 FETCH (BODY ("text" "plain" ("charset" "us-ascii") NIL NIL "quoted-printable" 3881 121)) 20 OK Fetch completed (0.001 + 0.000 secs). 20 fetch 284 body[1] * 284 FETCH (FLAGS (\Seen) BODY[1] {3881} Hi list, .... ``` </details>
quentin added the
cat
bug
label 2024-01-08 16:37:41 +00:00
quentin added this to the IMAP4REV1 project 2024-01-08 16:37:46 +00:00
quentin added this to the 0.2.0 milestone 2024-01-08 16:38:02 +00:00
quentin changed title from Gmail for Android uses BODY.PEEK[] but we return corrupted data to Gmail for Android uses BODY.PEEK[1] but we return corrupted data 2024-01-08 17:00:07 +00:00
quentin changed title from Gmail for Android uses BODY.PEEK[1] but we return corrupted data to Gmail for Android uses BODY.PEEK[2] but we return corrupted data 2024-01-08 17:00:11 +00:00
quentin changed title from Gmail for Android uses BODY.PEEK[2] but we return corrupted data to Body.peek is not compatible with GMail 2024-01-08 21:19:57 +00:00
Sign in to join this conversation.
No description provided.