=encoding utf8 =head1 NAME Mail::Box::Dir::Message - one message in a directory organized folder =head1 INHERITANCE Mail::Box::Dir::Message is a Mail::Box::Message is a Mail::Message is a Mail::Reporter Mail::Box::Dir::Message is extended by Mail::Box::MH::Message Mail::Box::Maildir::Message =head1 SYNOPSIS my $folder = new Mail::Box::MH ... my $message = $folder->message(10); =head1 DESCRIPTION A C is a base class for one message in a directory organized folder; each message is stored in a separate file. There are no objects of type C, only extensions are allowed to be created. At the moment, three of these extended message types are implemented: =over 4 =item * L which represents one message in a L folder. MH folders are very, very simple.... and hence not sophisticated nor fast. =item * L which represents one message in a L folder. Flags are kept in the message's filename. It is stateless, so you will never loose a message. =item * Mail::Box::Netzwert::Message which represents one message in a Mail::Box::Netzwert folder. As advantage, it stores pre-parsed information in the message file. As disadvantage: the code is not GPLed (yet). =back Extends L<"DESCRIPTION" in Mail::Box::Message|Mail::Box::Message/"DESCRIPTION">. =head1 METHODS Extends L<"METHODS" in Mail::Box::Message|Mail::Box::Message/"METHODS">. =head2 Constructors Extends L<"Constructors" in Mail::Box::Message|Mail::Box::Message/"Constructors">. =over 4 =item $obj-EB(%options) Inherited, see L =item Mail::Box::Dir::Message-EB(%options) Create a messages in a directory organized folder. -Option --Defined in --Default body Mail::Message undef body_type Mail::Box::Message deleted Mail::Message field_type Mail::Message undef filename undef fix_header false folder Mail::Box::Message head Mail::Message undef head_type Mail::Message Mail::Message::Head::Complete labels Mail::Message {} log Mail::Reporter 'WARNINGS' messageId Mail::Message undef modified Mail::Message size Mail::Box::Message undef trace Mail::Reporter 'WARNINGS' trusted Mail::Message =over 2 =item body => OBJECT =item body_type => CODE|CLASS =item deleted => BOOLEAN =item field_type => CLASS =item filename => FILENAME The file where the message is stored in. =item fix_header => BOOLEAN See L. =item folder => FOLDER =item head => OBJECT =item head_type => CLASS =item labels => ARRAY|HASH =item log => LEVEL =item messageId => STRING =item modified => BOOLEAN =item size => INTEGER =item trace => LEVEL =item trusted => BOOLEAN =back =back =head2 Constructing a message Extends L<"Constructing a message" in Mail::Box::Message|Mail::Box::Message/"Constructing a message">. =over 4 =item $obj-EB( [<$rg_object|%options>] ) Inherited, see L =item Mail::Box::Dir::Message-EB( [$message|$part|$body], $content ) Inherited, see L =item Mail::Box::Dir::Message-EB($body, [$head], $headers) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB(STRING) Inherited, see L =item Mail::Box::Dir::Message-EB($fh|STRING|SCALAR|ARRAY, %options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB( [STRING|$field|$address|ARRAY-$of-$things] ) Inherited, see L =item $obj-EB(STRING) =item Mail::Box::Dir::Message-EB(STRING) Inherited, see L =back =head2 The message Extends L<"The message" in Mail::Box::Message|Mail::Box::Message/"The message">. =over 4 =item $obj-EB() Inherited, see L =item $obj-EB($folder, %options) Inherited, see L =item $obj-EB( [$filename] ) Returns the name of the file in which this message is actually stored. This will return C when the message is not stored in a file. =item $obj-EB( [$folder] ) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB($folder, %options) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB( [$fh] ) Inherited, see L =item $obj-EB( [$mailer], %options ) Inherited, see L =item $obj-EB( [$integer] ) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB( [$fh] ) Inherited, see L =back =head2 The header Extends L<"The header" in Mail::Box::Message|Mail::Box::Message/"The header">. =over 4 =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB($fieldname) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB( [$head] ) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB($fieldname) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =back =head2 The body Extends L<"The body" in Mail::Box::Message|Mail::Box::Message/"The body">. =over 4 =item $obj-EB( [$body] ) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB(%options) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB( [<'ALL'|'ACTIVE'|'DELETED'|'RECURSE'|$filter>] ) Inherited, see L =back =head2 Flags Extends L<"Flags" in Mail::Box::Message|Mail::Box::Message/"Flags">. =over 4 =item $obj-EB() Inherited, see L =item $obj-EB( [BOOLEAN] ) Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB() Inherited, see L =item $obj-EB