12 May 09:21
[Imap-protocol] partial fetch of BODY data
Bill Shannon <bill.shannon <at> ymail.com>
2012-05-12 07:21:35 GMT
2012-05-12 07:21:35 GMT
Just to make sure I'm interpreting the spec correctly...
The spec says of a FETCH BODY request:
Any partial fetch that attempts to read beyond the end of the
text is truncated as appropriate. A partial fetch that starts
at octet 0 is returned as a partial fetch, even if this
truncation happened.
The spec says of a FETCH BODY response:
If the origin octet is specified, this string is a substring of
the entire body contents, starting at that origin octet. This
means that BODY[]<0> MAY be truncated, but BODY[] is NEVER
truncated.
It's not clear whether the truncation being talked about is the same in
both cases. If it were only allowed to truncate the response at the end
of the data, "BODY[]" would be allowed to be truncated as well, so it
seems that it must be talking about truncation for some other reason.
If I do "FETCH 2 (BODY[]<0.16384>)" and the server responds
"2 FETCH (BODY[]<0> {2817}", can I assume that that's the end
of the data or not?
What if I request "FETCH 2 (BODY[]<16384.16384>)" and the response is
"2 FETCH (BODY[]<16384> {2817}"? Is that a different case than above,
since the request doesn't start at octet 0?
If I do "FETCH 2 (BODY[]<2817.16384>)" and the server responds
(Continue reading)
RSS Feed