1 May 2007 15:50
understanding code.c(_mutt_copy_message) ->v?size calculation
Rado S <list-rado <at> gmx.de>
2007-05-01 13:50:43 GMT
2007-05-01 13:50:43 GMT
Moinsen,
while searching for a solution to make %l and %L in status_format
match for IMAP folders when you use '..' to limit to 'ALL' entries
(they differ for IMAP unlike for local mbox folders), I noticed
these occurances for "->vsize":
------ QUOTE BEGIN ------
copy.c:
Context->size -= body->length - new_length;
Context->vsize -= body->length - new_length;
curs_main.c:
ctx->vsize +=THIS_BODY->length + THIS_BODY->offset - THIS_BODY->hdr_offset;
mx.c:
ctx->vsize +=this_body->length + this_body->offset - this_body->hdr_offset;
pattern.c:
Context->vsize +=THIS_BODY->length + THIS_BODY->offset - THIS_BODY->hdr_offset;
thread.c:
ctx->vsize +=cur->content->length + cur->content->offset - cur->content->hdr_offset;
------- QUOTE END -------
My original solution was to drop in imap/message.c the subtraction
of the fetched headers' size by this:
------ QUOTE BEGIN ------
h->content_length -= bytes;
------- QUOTE END -------
This means: count only the body, without the fetched headers
("bytes"). This is plain wrong, since as you can see above, %L
(Continue reading)
RSS Feed