/usr/share/perl5/Mail/Message/Head/Delayed.pm is in libmail-box-perl 2.099-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 | # Copyrights 2001-2011 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.00.
use strict;
package Mail::Message::Head::Delayed;
use vars '$VERSION';
$VERSION = '2.099';
use base 'Mail::Message::Head';
use Object::Realize::Later
becomes => 'Mail::Message::Head::Complete',
realize => 'load',
believe_caller => 1;
use Scalar::Util 'weaken';
sub build(@) {shift->log(ERROR => "Cannot build() a delayed header.") }
#------------------------------------------
sub init($$)
{ my ($self, $args) = @_;
$self->SUPER::init($args);
if(defined $args->{message})
{ $self->{MMHD_message} = $args->{message};
weaken($self->{MMHD_message});
}
$self;
}
#------------------------------------------
sub isDelayed() {1}
#------------------------------------------
sub modified(;$)
{ return 0 if @_==1 || !$_[1];
shift->forceRealize->modified(1);
}
#------------------------------------------
sub isModified() { 0 }
#------------------------------------------
sub isEmpty() { 0 }
#------------------------------------------
sub get($;$)
{ my $self = shift;
$self->load->get(@_);
}
#------------------------------------------
sub guessBodySize() {undef}
#-------------------------------------------
sub guessTimestamp() {undef}
#------------------------------------------
sub read($)
{ my ($self, $parser, $headtype, $bodytype) = @_;
# $parser->skipHeader not implemented... returns where
$self->{MMH_where} = 0;
$self;
}
#------------------------------------------
sub load() {$_[0] = $_[0]->message->loadHead}
#------------------------------------------
sub setNoRealize($) { shift->log(INTERNAL => "Setting field on a delayed?") }
#-------------------------------------------
1;
|