On Fri, Jan 12, 2018 at 02:14:29PM +0100, Olaf Hering wrote:
> The list of mails in INBOX has a "size" field. Once the INBOX is opened,
> the size of a mail is "large", likely because the size is set based on
> the result of RFC822.SIZE. This is the size of header+body. Once the
> mail is opened, the shown size changes to the size of the body.
> 
> Why is this inconsistent?

I think your reasoning above is correct.  The RFC822.SIZE includes
headers + body.  msg_fetch_header() tries to subtract out the headers,
but it can only do so for the ones it knows about.

Later when the actual message is downloaded, hdr->content->length is set
more accurately.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to