[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: Thu, 02 Oct 2003 12:40:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3

Sergey Poznyakoff wrote:

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.

Possibly I didn't explain myself quite clearly. If you only call
mailbox_open+mailbox_append_message+mailbox_close, scanning should not
occure. However, almost any other call, such as mailbox_get_message,
mailbox_get_count, etc, will initiate the scanning if it has not been
done yet. So, care should be taken to avoid these calls.
Ok, so back to my original question, why does mail.local not use mailbox_append_message? Surely the only calls which will be made by mail.local will be mailbox_open+mailbox_append_message+mailbox_close so there shouldn't be a problem. This would make mail.local a lot simpler and more flexible.


reply via email to

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