| 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
| |||||||||||
| 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 | ||||||||||