On Sun, 07 Oct 2007 18:48:09 -0400, Celejar wrote: > I think I've got it. In MH folders, the message filenames are simply > integers. AFAICT, if there's a message / file named '1', then > auto-detection works correctly, but if there's no '1' (if, say, it has > been deleted), then we get 'mbox', even if there are '2', '3', etc.
Wow that sounds interesting! > Try the enclosed folder. Hm, doesn't really work for me: [EMAIL PROTECTED]:/tmp$ perl mbtest.pl test Entering test; type is mbox Descending into inbox Entering test/inbox; type is mbox Descending into 4 Entering test/inbox/4; type is mbox Leaving test/inbox/4 Descending into 3 Entering test/inbox/3; type is mbox Leaving test/inbox/3 Descending into new Entering test/inbox/new; type is mbox Leaving test/inbox/new Descending into 2 Entering test/inbox/2; type is mbox Leaving test/inbox/2 Descending into 5 Entering test/inbox/5; type is mbox Leaving test/inbox/5 Leaving test/inbox Leaving test [EMAIL PROTECTED]:/tmp$ cp test/inbox/2 test/inbox/1 [EMAIL PROTECTED]:/tmp$ perl mbtest.pl test Entering test; type is mbox Descending into inbox Entering test/inbox; type is mbox Descending into 1 Entering test/inbox/1; type is mbox Leaving test/inbox/1 Descending into 4 Entering test/inbox/4; type is mbox Leaving test/inbox/4 Descending into 3 Entering test/inbox/3; type is mbox Leaving test/inbox/3 Descending into new Entering test/inbox/new; type is mbox Leaving test/inbox/new Descending into 2 Entering test/inbox/2; type is mbox Leaving test/inbox/2 Descending into 5 Entering test/inbox/5; type is mbox Leaving test/inbox/5 Leaving test/inbox Leaving test If I change my $folder = $mgr->open(shift); to my $folder = $mgr->open(shift, type => 'mh'); in mbtest.pl I get: [EMAIL PROTECTED]:/tmp$ rm test/inbox/1 [EMAIL PROTECTED]:/tmp$ perl mbtest.pl test Entering test; type is mh Descending into inbox Entering test/inbox; type is mh Descending into new Entering test/inbox/new; type is mh Leaving test/inbox/new Leaving test/inbox Leaving test (The same if I copy 2 to 1.) Cheers, gregor -- .''`. http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4 : :' : debian: the universal operating system - http://www.debian.org/ `. `' member of https://www.vibe.at/ | how to reply: http://got.to/quote/ `- NP: John Zorn: Katzatz (Frisell)
signature.asc
Description: Digital signature

