line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyrights 2012 by [Mark Overmeer]. |
2
|
|
|
|
|
|
|
# For other contributors see ChangeLog. |
3
|
|
|
|
|
|
|
# See the manual pages for details on the licensing terms. |
4
|
|
|
|
|
|
|
# Pod stripped from pm file by OODoc 2.00. |
5
|
1
|
|
|
1
|
|
1116
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
6
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
41
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Mozilla::Persona::Aliases::MailConfig; |
9
|
1
|
|
|
1
|
|
5
|
use vars '$VERSION'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
52
|
|
10
|
|
|
|
|
|
|
$VERSION = '0.12'; |
11
|
|
|
|
|
|
|
|
12
|
1
|
|
|
1
|
|
5
|
use base 'Mozilla::Persona::Aliases'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
93
|
|
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
4
|
use Log::Report qw/persona/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
15
|
1
|
|
|
1
|
|
315
|
use Mail::ExpandAliases (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
198
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub init($) |
19
|
0
|
|
|
0
|
0
|
|
{ my ($self, $args) = @_; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# Mail::ExpandAliases support only one file |
22
|
0
|
|
|
|
|
|
$self->{MPAM_file} = delete $args->{file}; |
23
|
0
|
|
|
|
|
|
$self->SUPER::init($args); |
24
|
0
|
|
|
|
|
|
$self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _table() |
28
|
0
|
|
|
0
|
|
|
{ my $self = shift; |
29
|
0
|
|
0
|
|
|
|
$self->{MPAM_table} ||= Mail::ExpandAliases->new($self->{MPAM_file}); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub for($) |
33
|
0
|
|
|
0
|
1
|
|
{ my ($self, $user) = @_; |
34
|
0
|
|
|
|
|
|
$user =~ s/\@.*//; |
35
|
0
|
|
|
|
|
|
$self->_table->expand($user); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |