line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mail::Milter::Authentication::Handler::AddID; |
2
|
1
|
|
|
1
|
|
1311
|
use 5.20.0; |
|
1
|
|
|
|
|
4
|
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
27
|
|
5
|
1
|
|
|
1
|
|
9
|
use Mail::Milter::Authentication::Pragmas; |
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
16
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Example handler class |
7
|
|
|
|
|
|
|
our $VERSION = '3.20230911'; # VERSION |
8
|
1
|
|
|
1
|
|
247
|
use base 'Mail::Milter::Authentication::Handler'; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
158
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub default_config { |
11
|
0
|
|
|
0
|
0
|
|
return {}; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub eom_callback { |
15
|
0
|
|
|
0
|
0
|
|
my ($self) = @_; |
16
|
0
|
|
|
|
|
|
$self->append_header('X-Authentication-Milter','Header added by Authentication Milter'); |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__END__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=pod |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=encoding UTF-8 |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 NAME |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
Mail::Milter::Authentication::Handler::AddID - Example handler class |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 VERSION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
version 3.20230911 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 DESCRIPTION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Simple module which adds a header to all email processed. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This is meant as an example only. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 CONFIGURATION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
No configuration options exist for this handler. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Marc Bradshaw <marc@marcbradshaw.net> |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This software is copyright (c) 2020 by Marc Bradshaw. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
54
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |