line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
784
|
use 5.014; |
|
1
|
|
|
|
|
4
|
|
2
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
39
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '1.0'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Mo qw(coerce); |
8
|
1
|
|
|
1
|
|
4
|
extends 'Mail::Qmail::Filter'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my $self = shift; |
11
|
|
|
|
|
|
|
local $ENV{QMAILQUEUE}; # use original qmail-queue |
12
|
0
|
|
|
0
|
1
|
|
$self->message->send == 0 or die "Error sending message: exit status $?\n"; |
13
|
0
|
|
|
|
|
|
$self->debug( action => 'queue' ); |
14
|
0
|
0
|
|
|
|
|
} |
15
|
0
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head1 NAME |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
Mail::Qmail::Filter::Queue - |
22
|
|
|
|
|
|
|
queue message |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
use Mail::Qmail::Filter; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Mail::Qmail::Filter->new->add_filters( |
29
|
|
|
|
|
|
|
# Usually you want to add additional filters here. |
30
|
|
|
|
|
|
|
'::Queue', |
31
|
|
|
|
|
|
|
)->run; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 DESCRIPTION |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
This L<Mail::Qmail::Filter> plugin passes the message on to C<qmail-queue>. |
36
|
|
|
|
|
|
|
This is usually the last plugin you should use in your filter chain. |
37
|
|
|
|
|
|
|
If you do not use it, the message will be discarded. |
38
|
|
|
|
|
|
|
You can use it several times to copy the message. |
39
|
|
|
|
|
|
|
(I'm not saying you should, only that you can.) |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 SEE ALSO |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
L<Mail::Qmail::Filter/COMMON PARAMETERS FOR ALL FILTERS> |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Copyright 2019 Martin Sluka. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it |
50
|
|
|
|
|
|
|
under the terms of the the Artistic License (2.0). You may obtain a |
51
|
|
|
|
|
|
|
copy of the full license at: |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
L<http://www.perlfoundation.org/artistic_license_2_0> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Any use, modification, and distribution of the Standard or Modified |
56
|
|
|
|
|
|
|
Versions is governed by this Artistic License. By using, modifying or |
57
|
|
|
|
|
|
|
distributing the Package, you accept this license. Do not use, modify, |
58
|
|
|
|
|
|
|
or distribute the Package, if you do not accept this license. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
If your Modified Version has been derived from a Modified Version made |
61
|
|
|
|
|
|
|
by someone other than you, you are nevertheless required to ensure that |
62
|
|
|
|
|
|
|
your Modified Version complies with the requirements of this license. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This license does not grant you the right to use any trademark, service |
65
|
|
|
|
|
|
|
mark, tradename, or logo of the Copyright Holder. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This license includes the non-exclusive, worldwide, free-of-charge |
68
|
|
|
|
|
|
|
patent license to make, have made, use, offer to sell, sell, import and |
69
|
|
|
|
|
|
|
otherwise transfer the Package with respect to any patent claims |
70
|
|
|
|
|
|
|
licensable by the Copyright Holder that are necessarily infringed by the |
71
|
|
|
|
|
|
|
Package. If you institute patent litigation (including a cross-claim or |
72
|
|
|
|
|
|
|
counterclaim) against any party alleging that the Package constitutes |
73
|
|
|
|
|
|
|
direct or contributory patent infringement, then this Artistic License |
74
|
|
|
|
|
|
|
to you shall terminate on the date that such litigation is filed. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER |
77
|
|
|
|
|
|
|
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. |
78
|
|
|
|
|
|
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
79
|
|
|
|
|
|
|
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY |
80
|
|
|
|
|
|
|
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR |
81
|
|
|
|
|
|
|
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR |
82
|
|
|
|
|
|
|
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, |
83
|
|
|
|
|
|
|
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |