On Mon, 08 Oct 2007 13:10:45 -0400, Celejar wrote:

> > Hm, doesn't really work for me:
> [snipped copying 2 to 1]
> In any event, the auto-detection is clearly still broken; I'm not
> sure what to infer from the fact that recreating 1 doesn't work.

Me neither (now it worked BTW; strange).

> This is what I meant; the enclosed folder has messages 1-6, and a-d
> is fine. If any of 2-5 are deleted, a-d is still fine, but if 1 is
> deleted then mbox is reported.

I found something interesting in Mbox.pm:

    if(-d $filename)      # fake empty folder, with sub-folders
    {   return 1 unless -f File::Spec->catfile($filename, '1')   # MH
                     || -d File::Spec->catdir($filename, 'cur'); # Maildir
    }

So here's an explicit test for a file named "1".
 
I have no idea if having a "1" file is required by MH folder -- and I
don't find anything helpful at the moment.

At least man Mail::Box::MH assumes:
       So, each message is written in a separate file.  The filenames are 
numbers, which count
       from 1.  Next to these message files, a directory may contain a file 
named ".mh_sequences",
       storing labels which relate to the messages.  Furthermore, a 
folder-directory may contain
       sub-directories, which are seen as sub-folders.


Hm, has someone else from the Debian Perl Group more ideas about MH
folders?

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: The Who: Let's See Action

Attachment: signature.asc
Description: Digital signature

Reply via email to