/usr/share/perl5/Mail/Box/Net/Message.pm is in libmail-box-perl 3.004-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 | # Copyrights 2001-2017 by [Mark Overmeer].
# For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
# Pod stripped from pm file by OODoc 2.02.
use strict;
use warnings;
package Mail::Box::Net::Message;
use vars '$VERSION';
$VERSION = '3.004';
use base 'Mail::Box::Message';
use File::Copy;
use Carp;
sub init($)
{ my ($self, $args) = @_;
$self->SUPER::init($args);
$self->unique($args->{unique});
$self;
}
#-------------------------------------------
sub unique(;$)
{ my $self = shift;
@_ ? $self->{MBNM_unique} = shift : $self->{MBNM_unique};
}
#-------------------------------------------
#-------------------------------------------
sub loadHead()
{ my $self = shift;
my $head = $self->head;
return $head unless $head->isDelayed;
my $folder = $self->folder;
$folder->lazyPermitted(1);
my $parser = $self->parser or return;
$self->readFromParser($parser);
$folder->lazyPermitted(0);
$self->log(PROGRESS => 'Loaded delayed head.');
$self->head;
}
#-------------------------------------------
sub loadBody()
{ my $self = shift;
my $body = $self->body;
return $body unless $body->isDelayed;
my $head = $self->head;
my $parser = $self->parser or return;
if($head->isDelayed)
{ $head = $self->readHead($parser);
if(defined $head)
{ $self->log(PROGRESS => 'Loaded delayed head.');
$self->head($head);
}
else
{ $self->log(ERROR => 'Unable to read delayed head.');
return;
}
}
else
{ my ($begin, $end) = $body->fileLocation;
$parser->filePosition($begin);
}
my $newbody = $self->readBody($parser, $head);
unless(defined $newbody)
{ $self->log(ERROR => 'Unable to read delayed body.');
return;
}
$self->log(PROGRESS => 'Loaded delayed body.');
$self->storeBody($newbody->contentInfoFrom($head));
}
#-------------------------------------------
1;
|