We have just discovered that the Courier POP3 daemon reads through each emailfile even though we use the Maildir-format. Is this the intention? Is there any way we can get around it?
How else are you supposed to get the info for TOP/etc. commands?
I guess it should be enough just to read the required info from the header - no need to read all the data. As I said, we use maildir, that is, one mailfile for each mail. We chose this format to avoid the system to read through all the data for every login - with many of the mailboxes taking up more than 100 MB it can be quite exhausting to the system.
I haven't looked at how courier does it, but while back when I implemented
POP3 server on maildir I used either temporary index file or just read
around 64KB from each message to get the header info.