On Thu, Jan 04, 2007 at 10:11:17AM -0800, Jo Rhett wrote: > Jo Rhett wrote: > > reading dirscan.c I noticed that it looked like it wouldn't traverse > > a properly formed MH filename in scrutinize_mh_entry(), but I tried > > renaming the 2007 directory to y2007 and 01 to m01 so that the > > properly formed test would fail, and it still doesn't find the messages. > > Actually, I'm sorry -- changing the directory name to include an alpha > character does work.
Yes, that will fix it. The reason is that filenames that are entirely digits are considered to be actual messages. This avoids having to stat() every single message just to find out which names are directories. This kludge was the best I could come up with for MH at the time the equivalent optimisation was done for maildir (where it was easier and a lot more robust to do.) > So apparently mairix won't descent into subdirectories which could be > properly named MH files - ie '2007'. This should be documented at least, > or probably fixed? Documented for sure. As for 'fix', the alternative (i.e. stat everything in sight to find subfolders robustly) can be horrifically slow once you have a significant number of messages to index. Any thoughts / patches welcome :-) I have never been entirely happy with this situation for MH, but since I don't use MH myself (my system is maildir for inboxes and mbox for archiving) I don't care about the problem enough to spend time thinking about better fixes. -- Richard P. Curnow | Free software developer Weston-super-Mare | United Kingdom | http://www.rc0.org.uk/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Mairix-users mailing list Mairix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mairix-users