Mail::Box::Parser::Lines(3) User Contributed Perl Documentation Mail::Box::Parser::Lines(3)

Mail::Box::Parser::Lines - reading messages from file using Perl

Mail::Box::Parser::Lines
  is a Mail::Box::Parser
  is a Mail::Reporter

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.

Extends "METHODS" in Mail::Box::Parser.

Extends "Constructors" in Mail::Box::Parser.

$class->new(%options)
Inherited, see "METHODS" in Mail::Box::Parser
-Option           --Defined in       --Default
 fix_header_errors  Mail::Box::Parser  false
 lines                                 <required>
 source                                <required>
 trusted            Mail::Box::Parser  false

Extends "Attributes" in Mail::Box::Parser.

$any->defaultParserType( [$class] )
Inherited, see "Attributes" in Mail::Box::Parser
$obj->fixHeaderErrors( [BOOLEAN] )
Inherited, see "Attributes" in Mail::Box::Parser
$obj->lines()
Returns an ARRAY with the remaining lines.
$obj->source()
The name of the source.
$obj->trusted()
Inherited, see "Attributes" in Mail::Box::Parser

Extends "Parsing" in Mail::Box::Parser.

$obj->bodyAsFile( $fh [$chars, [$lines]] )
Inherited, see "Parsing" in Mail::Box::Parser
$obj->bodyAsList( [$chars, [$lines]] )
Inherited, see "Parsing" in Mail::Box::Parser
$obj->bodyAsString( [$chars, [$lines]] )
Inherited, see "Parsing" in Mail::Box::Parser
$obj->bodyDelayed( [$chars, [$lines]] )
Inherited, see "Parsing" in Mail::Box::Parser
$obj->lineSeparator()
Inherited, see "Parsing" in Mail::Box::Parser
$obj->readHeader()
Inherited, see "Parsing" in Mail::Box::Parser
$obj->stop()
Inherited, see "Parsing" in Mail::Box::Parser

Extends "Error handling" in Mail::Box::Parser.

$obj->AUTOLOAD()
Inherited, see "Error handling" in Mail::Reporter
$obj->notImplemented()
Inherited, see "Error handling" in Mail::Reporter

Extends "Cleanup" in Mail::Box::Parser.

$obj->DESTROY()
Inherited, see "Cleanup" in Mail::Reporter

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 by notImplemented()
Cast by defaultParserType()
Cast by readHeader()

This module is part of Mail-Message version 4.02, built on January 22, 2026. Website: http://perl.overmeer.net/CPAN/

For contributors see file ChangeLog.

This software is copyright (c) 2001-2026 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2026-01-26 perl v5.42.0