File Coverage

blib/lib/Mail/Box/Mbox/Message.pm
Criterion Covered Total %
statement 24 24 100.0
branch 4 4 100.0
condition 2 3 66.6
subroutine 7 7 100.0
pod 3 3 100.0
total 40 41 97.5


line stmt bran cond sub pod time code
1             # This code is part of Perl distribution Mail-Box version 4.01.
2             # The POD got stripped from this file by OODoc version 3.05.
3             # For contributors see file ChangeLog.
4              
5             # This software is copyright (c) 2001-2025 by Mark Overmeer.
6              
7             # This is free software; you can redistribute it and/or modify it under
8             # the same terms as the Perl 5 programming language system itself.
9             # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later
10              
11              
12             package Mail::Box::Mbox::Message;{
13             our $VERSION = '4.01';
14             }
15              
16 25     25   1870 use parent 'Mail::Box::File::Message';
  25         51  
  25         212  
17              
18 25     25   2447 use strict;
  25         64  
  25         729  
19 25     25   271 use warnings;
  25         96  
  25         1673  
20              
21 25     25   144 use Log::Report 'mail-box', import => [ qw// ];
  25         106  
  25         182  
22              
23             #--------------------
24              
25             sub head(;$$)
26 14474     14474 1 1330479 { my $self = shift;
27 14474 100       47126 return $self->SUPER::head unless @_;
28              
29 1309         6339 my ($head, $labels) = @_;
30 1309         5697 $self->SUPER::head($head, $labels);
31              
32 1309 100 66     19468 $self->statusToLabels if $head && !$head->isDelayed;
33 1309         37471 $head;
34             }
35              
36             sub label(@)
37 4112     4112 1 82023 { my $self = shift;
38 4112         12805 $self->loadHead; # be sure the status fields have been read
39 4112         28517 $self->SUPER::label(@_);
40             }
41              
42             sub labels(@)
43 143     143 1 64423 { my $self = shift;
44 143         626 $self->loadHead; # be sure the status fields have been read
45 143         987 $self->SUPER::labels(@_);
46             }
47              
48             1;