email - IMAP, What is proper for multi-data responses? -


if have imap fetch,

12 uid fetch 3 (body.peek[header] body.peek[text]) 

and respond

* 3 fetch (uid 3 body[header] {322} mime-version: 1.0 content-type: text/plain; charset=utf-8;format=flowed content-transfer-encoding: 7bit date: fri, 07 aug 2015 16:36:44 -0400 from: myemail@email.email to: myemail@email.email subject: subjecct message-id: <eea78aff8bfdfgvdfgvdgcdg655d14a4a7@email.email> x-sender: myemail@email.email user-agent: roundcube webmail/0.9.5  body[text] {14} myemailstuff ) 

all crlf, 322 says length of first block, crlf after line containing 322, crlf before body[text] {14} (take note of space before body).

from there, add space, , body[text] {14}, etc. doesn't work. can't find specs in rfc 3501 single one, yet alone 2 in row. know specifications this, specifically, or know off top of head?

also, if matters, error came directly iphone, , server own(the embedded 1 in avuna).

a literal takes place of quoted string or atom, , should have delimiters on either side same way. {322}\r\n[322 bytes] should treated quoted string, space before , space or parenthesis after.

i not see obvious problem sample, however, may want consider putting crlf in headers in literal, may make mime parsers happier.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -