| 1 | # This code is part of Perl distribution Mail-Box version 4.02. | ||||||||||||||||||||||||||||
| 2 | # The POD got stripped from this file by OODoc version 3.06. | ||||||||||||||||||||||||||||
| 3 | # For contributors see file ChangeLog. | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | # This software is copyright (c) 2001-2026 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 | 25 | our $VERSION = '4.02'; | |||||||||||||||||||||||||||
| 14 | } | ||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||
| 16 | 25 | ▶ | use parent 'Mail::Box::File::Message'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 17 | |||||||||||||||||||||||||||||
| 18 | 25 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 19 | 25 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 25 | ▶ | use Log::Report 'mail-box', import => [ qw// ]; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | #-------------------- | ||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | sub head(;$$) | ||||||||||||||||||||||||||||
| 26 | 14474 | ▶ | { my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
head: called CC=4 SCAR=13.9
Pod
documented
| |||||||||||||||||||||||||||||
| 27 | 14474 | ▶ | return $self->SUPER::head unless @_; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | 1309 | my ($head, $labels) = @_; | |||||||||||||||||||||||||||
| 30 | 1309 | $self->SUPER::head($head, $labels); | |||||||||||||||||||||||||||
| 31 | |||||||||||||||||||||||||||||
| 32 | 1309 | ▶ | $self->statusToLabels if $head && !$head->isDelayed; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$head and not $head->isDelayed
MC/DC50%1/2
$head and not $head->isDelayed
$head
not $head->isDelayed
Truth table66%2/3
A and not(B)
A= $headB= not $head->isDelayed
| |||||||||||||||||||||||||||||
| 33 | 1309 | $head; | |||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||
| 36 | sub label(@) | ||||||||||||||||||||||||||||
| 37 | 4112 | ▶ | { my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
label: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 38 | 4112 | $self->loadHead; # be sure the status fields have been read | |||||||||||||||||||||||||||
| 39 | 4112 | $self->SUPER::label(@_); | |||||||||||||||||||||||||||
| 40 | } | ||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | sub labels(@) | ||||||||||||||||||||||||||||
| 43 | 143 | ▶ | { my $self = shift; | ||||||||||||||||||||||||||
|
Subroutine
labels: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 44 | 143 | $self->loadHead; # be sure the status fields have been read | |||||||||||||||||||||||||||
| 45 | 143 | $self->SUPER::labels(@_); | |||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||
| 48 | 25 | 1; | |||||||||||||||||||||||||||