[Imap-protocol] FETCH (rfc822) response
Timo Sirainen
tss at iki.fi
Fri Oct 7 07:39:58 PDT 2011
On Fri, 2011-10-07 at 09:30 -0500, Rick Sanders wrote:
> I'm working with a server whose response to a FETCH (rfc822) is
> different than I have seen before.
>
> >> 1 FETCH 1 (rfc822)
> << * 1 EXISTS
> << * 1 FETCH (RFC822[] {0}
>
> I'm used to seeing something like * 1 FETCH (RFC822 {1522}. In this
> case I have to send a separate 1 FETCH 1 (rfc822.size) command to get
> the message size: << 1 FETCH (rfc822.size 5149).
>
> Just curious, is this compliant?
No, the server is broken. But you could try to work around it with
fetching BODY.PEEK[] instead.
More information about the Imap-protocol
mailing list