my $folder = new Mail::Box::MH ... my $message = $folder->message(10);
See SYNOPSIS in Mail::Box::Dir::Message
A Mail::Box::MH::Message
represents one message in an
Mail::Box::MH folder . Each message is stored in a separate file,
as for all Mail::Box::Dir folder types.
See DESCRIPTION in Mail::Box::Dir::Message
Typically, the file which contains the labels is called .mh_sequences
.
The MH messages are numbered from 1
. As example content for
.mh_sequences
:
cur: 93 unseen: 32 35-56 67-80
To generalize labels on messages, two are treated specially:
The cur
specifies the number of the message where the user stopped
reading mail from this folder at last access. Internally in these
modules referred to as label current
.
With unseen
is listed which message was never read.
This must be a mistake in the design of MH: it must be a source of
confusion. People should never use labels with a negation in the
name:
if($seen) if(!$unseen) #yuk! if(!$seen) if($unseen) unless($seen) unless($unseen) #yuk!
So: label unseen
is translated into seen
for internal use.