Mail::Box::Parser::Lines3pm
Reading messages from file using perl
Inheritance
Mail::Box::Parser::Linesis a Mail::Box::Parseris a Mail::Reporter
Overview
This "Mail::Box::Parser::Lines" implements parsing of messages in Perl, with an ARRAY as source.
Hint: Useful when the message is already in memory. When you plan to use this yourself, you probably need to use Mail::Message::Construct::Read.
Extends "DESCRIPTION" in Mail::Box::Parser.
Methods
Extends "METHODS" in Mail::Box::Parser.
Constructors
Extends "Constructors" in Mail::Box::Parser.
- $class->
new(%options) -
Inherited, see "METHODS" in Mail::Box::Parser
-Option --Defined in --Defaultfix_header_errors Mail::Box::Parser falselines <required>source <required>trusted Mail::Box::Parser false- fix_header_errors => BOOLEAN
- lines => \@lines
- source => $name
- trusted => BOOLEAN
Attributes
Extends "Attributes" in Mail::Box::Parser.
$any->
|
Inherited, see "Attributes" in Mail::Box::Parser |
|---|---|
$obj->
|
Inherited, see "Attributes" in Mail::Box::Parser |
$obj->
|
Returns an ARRAY with the remaining lines. |
$obj->
|
The name of the source. |
$obj->
|
Inherited, see "Attributes" in Mail::Box::Parser |
Parsing
Extends "Parsing" in Mail::Box::Parser.
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
|---|---|
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
$obj->
|
Inherited, see "Parsing" in Mail::Box::Parser |
Error handling
Extends "Error handling" in Mail::Box::Parser.
$obj->AUTOLOAD()
|
Inherited, see "Error handling" in Mail::Reporter |
|---|---|
$obj->
|
Inherited, see "Error handling" in Mail::Reporter |
Cleanup
Extends "Cleanup" in Mail::Box::Parser.
- $obj->DESTROY()
-
Inherited, see "Cleanup" in Mail::Reporter
Diagnostics
- Error: class $package does not implement method $method.
-
Fatal error: the specific
$package(or one of its superclasses) does not implement this method where it should. This message means that some other related classes do implement this method however the class at hand does not. Probably you should investigate this and probably inform the author of the package. Cast bynotImplemented()
- Error: parser $type does not extend $pkg.
-
Cast by
defaultParserType()
- Warning: unexpected end of header in $source:\n $line
-
Cast by
readHeader()