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

Re: does mhonarc do a directory listing?



On April 1, 2009 at 21:00, Jeff Breidenbach wrote:

> I *think* mhonarc is doing a listdir operation as
> a safety check to avoid clobbering existing message files. (I tried to
> find out via strace, but managed instead to confuse myself). Is this
> actually true, and if so, can the directory listing be reasonably
> turned off?

Not w/o code modifications.

The directory scan is to determine what the last message number
is so when new messages get added, the message filenames will
continue from the last message number, and as you have already
noted, avoid overwriting any existing files.

One method to avoid the directory scan is to have mhonarc store
what the last message number was in the db.  When mhonarc
initializes itself when called again, it can use the value
from the db (if present) versus scanning the directory.

--ewh


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]