See METHODS in Mail::Reporter
Option | Defined in | Default |
---|---|---|
file | Mail::Box::Parser | undef |
filename | Mail::Box::Parser | <required> |
fix_header_errors | <false> | |
log | Mail::Reporter |
|
mode | Mail::Box::Parser |
|
trace | Mail::Reporter |
|
trusted | <false> |
If set to true
, parsing of a header will not stop on an error, but
attempt to add the erroneous this line to previous field. Without BOOLEAN,
the current setting is returned.
$folder->parser->fixHeaderErrors(1); my $folder = $mgr->open('folder', fix_header_errors => 1);
While parsing a message from the specified source (usually a file name), the parser found a syntax error. According to the MIME specification in the RFCs, each header line must either contain a colon, or start with a blank to indicate a folded field. Apparently, this header contains a line which starts on the first position, but not with a field name.
By default, parsing of the header will be stopped. If there are more header lines after the erroneous line, they will be added to the body of the message. In case of new(fix_headers) set, the parsing of the header will be continued. The erroneous line will be added to the preceding field.