Saftpresse/Plugin/Postfix/QueueID.pm

filter: Statementstmt 45.4% 5 / 11 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 1 / 2 Podpod 0.0% 0 / 1 totaltotal 37.5% 6 / 16 SCAR 10.8
CC
2
Cov
38%
process_queueid
6.0
BEGIN
1.0
CRAP 2.9
« Saftpresse/Outputs.pm ↑ Summary Saftpresse/CounterOutputs.pm »
1 package Log::Saftpresse::Plugin::Postfix::QueueID;
2  
3 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: plugin to parse the postfix queue ID
6 1 our $VERSION = '1.5'; # VERSION
7  
8 sub process_queueid {
9 0 ▶ my ( $self, $stash, $notes ) = @_;
Subroutine process_queueid: not called CC=2 SCAR=17.9
Pod undocumented
10
11 0 ▶ if( my ( $queue_id, $msg ) = $stash->{'message'} =~
Branch: 1 branch
BranchTrueFalseTotal
if (() = $stash->{"message"} =~ /^([A-Z0-9]{8,12}|[b-zB-Z0-9]{15}|NOQUEUE): (.+)$/) 0 0 0
12 /^([A-Z0-9]{8,12}|[b-zB-Z0-9]{15}|NOQUEUE): (.+)$/) {
13 0 $stash->{'queue_id'} = $queue_id;
14 0 $stash->{'message'} = $msg;
15 0 $self->get_tracking_id('queue_id', $stash, $notes);
16 }
17  
18 0 return;
19 }
20  
21 1 1;
22  
23 __END__
24  
25 =pod
26  
27 =encoding UTF-8
28  
29 =head1 NAME
30  
31 Log::Saftpresse::Plugin::Postfix::QueueID - plugin to parse the postfix queue ID
32  
33 =head1 VERSION
34  
35 version 1.5
36  
37 =head1 AUTHOR
38  
39 Markus Benning <ich@markusbenning.de>
40  
41 =head1 COPYRIGHT AND LICENSE
42  
43 This software is Copyright (c) 1998 by James S. Seymour, 2015 by Markus Benning.
44  
45 This is free software, licensed under:
46  
47 The GNU General Public License, Version 2, June 1991
48  
49 =cut
« Saftpresse/Outputs.pm ↑ Summary Saftpresse/CounterOutputs.pm »