[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] maildir for mail.local

From: Jeff Williams
Subject: Re: [bug-mailutils] maildir for mail.local
Date: Mon, 29 Sep 2003 12:56:03 +0200
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3

Sergey Poznyakoff wrote:

I was wondering why mail.local doesn't use mailbox_append_message to
add the new message? The performace hit of having to create a message

The main reason is that calling mailbox_append_message will trigger
scanning the entire user's mailbox, which is very ineffective now
and can slow down the delivery process considerably.

Where does this trigger scanning of the mailbox? I had a look at mbox.c and could not find where it scans the mailbox. But assuming that it does, why does it do it? I suppose I am coming from a maildir mindset, but I can't see why you would have to scan the entire mailbox to add a message.

In the short run I am going to implement the
new "append" mode for mailbox_open, which should make it possible to
use mailbox_append_message. This will simplify mail.local and make
it far more flexible.
Ok, so this is different than opening the mailbox with MU_STREAM_APPEND?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]