<<< Date Index >>>     <<< Thread Index >>>

Re: Long delay after opening maildir mailbox?



On 11:08 05 Jul 2004, Sander Smeenk <ssm+mutt@xxxxxxxxxxxx> wrote:
| Quoting Matthew D. Fuller (fullermd@xxxxxxxxxxxxxxx):
| > I noticed this when I moved from 1.4.x to 1.5.x; it seems to run up
| > the count when it reads the directory to get the list of files, not
| > when it reads and parses the individual files.
| 
| Why would it do that in the first place? :) Why not find a file, parse
| it, increment the counter, and start over again? :)

Because that's racy. Keeping a dir open while doing other processing is
a dodgy procedure. Sane programs open the dir, suck out all the names,
close the dir and then process the names. Not raceless but certainly a
lot better.

Of course, for a decent progress feedback mutt should say "reading
folder/new...", "reading folder/cur..." while it sucks out the names
and then do the counting thing as it reads the header info.

| Anyways, i'm glad i'm not the only one.
| I started noticing this behaviour after my server was placed in a
| different location, so I feared it had something to do with my disk(s).

I started noticing when I switched from MH folders to maildir two days
ago. BTW, for those with lots of mail in MH wanting to shift, here's a
script I made to do the bulk of the work:

        http://www.cskk.ezoshosting.com/cs/css/bin/mh2maildir

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Testing can show the presence of bugs, but not their absence.   - Dijkstra