Bug#442912: Still seeing the same autodetection errors

gregor herrmann gregor+debian at comodo.priv.at
Mon Oct 8 16:41:33 UTC 2007


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:

gregoa at belanna:/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

gregoa at belanna:/tmp$ cp test/inbox/2 test/inbox/1

gregoa at belanna:/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:

gregoa at belanna:/tmp$ rm test/inbox/1

gregoa at belanna:/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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20071008/c2122eab/attachment.pgp 


More information about the pkg-perl-maintainers mailing list