> Just a few notes on qpopper's performance:
I was thinking the other day about keeping an index for each mailbox, in
a separate file, when using server mode. This index could keep:
- The number of messages, and the size of the mailbox file.
- The offset and the size of each message.
- Some extra headers, like "uidl" or "status", in order to avoid
mailbox rewriting.
If qpop detects an index file and the mailbox is bigger than the size
indicated in the index, you just have to scan the last messages, not the
entire mailbox, and rebuild the index.
You can simplify things doing:
- If the user doesn't erase any message, just store the index.
- If the user erase any message, wipe the entire index. It will be
rebuild next time the user logs in.
--
Jesus Cea Avion _/_/ _/_/_/ _/_/_/
[EMAIL PROTECTED] http://www.argo.es/~jcea/ _/_/ _/_/ _/_/ _/_/ _/_/
_/_/ _/_/ _/_/_/_/_/
PGP Key Available at KeyServ _/_/ _/_/ _/_/ _/_/ _/_/
"Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/
"My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz