line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Social::Mapper::Persona::Email; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
3301
|
use strict; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
156
|
|
4
|
3
|
|
|
3
|
|
23
|
use base qw(Net::Social::Mapper::Persona); |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
1001
|
|
5
|
3
|
|
|
3
|
|
3402
|
use Email::Address; |
|
3
|
|
|
|
|
47453
|
|
|
3
|
|
|
|
|
742
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
Net::Social::Mapper::Persona::Email - the persona for an email address |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head2 SYNOPSIS |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
See C |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=cut |
16
|
|
|
|
|
|
|
sub _init { |
17
|
4
|
|
|
4
|
|
10
|
my $self = shift; |
18
|
4
|
|
|
|
|
24
|
$self->{service} = 'email'; |
19
|
4
|
|
|
|
|
10
|
$self->{name} = 'Email'; |
20
|
4
|
|
|
|
|
28
|
my ($address) = Email::Address->parse($self->{user}); |
21
|
4
|
|
|
|
|
2917
|
$self->{full_name} = $address->name; # might as well try |
22
|
4
|
|
|
|
|
591
|
$self->{domain} = $address->host; |
23
|
4
|
|
|
|
|
438
|
$self->{id} = $address->user; |
24
|
4
|
|
|
|
|
474
|
$self->{user} = $address->address; |
25
|
4
|
|
|
|
|
51
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head2 persona_name |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
The short canonical name for this persona |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=cut |
33
|
0
|
|
|
0
|
1
|
|
sub persona_name { shift->_do('user', @_) } |
34
|
|
|
|
|
|
|
1; |