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