From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: some size calc error in pop3.el?
Date: Wed, 25 Apr 2012 07:38:35 +0900 [thread overview]
Message-ID: <b4mk414iwlw.fsf@jpl.org> (raw)
In-Reply-To: <82r4vdvxqu.fsf@gmail.com>
Sivaram Neelakantan wrote:
> What's with 103%? Shouldn't it be 100%? Just asking....
I found pop3.el counts the size of a process buffer that contains
not only mail data but also:
A response the server answers to the STAT command that pop3.el
issues, i.e., the number of mails and the total size.
plus
The end mark, i.e., ".<CR><LF>".
So, the size pop3.el counts is always larger than the real data
size. Since the difference is not so large, it is truncated into
less than 1% if mail data are large. But the case the percentage
exceeds 100% will arise when receiving a small mail. It might be
able to fix.
prev parent reply other threads:[~2012-04-24 22:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 17:35 Sivaram Neelakantan
2012-04-24 17:39 ` Adam Sjøgren
2012-04-24 18:32 ` Sivaram Neelakantan
2012-04-24 22:38 ` Katsumi Yamaoka [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b4mk414iwlw.fsf@jpl.org \
--to=yamaoka@jpl.org \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).