line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mail::LMLM::Types::Ezmlm; |
2
|
|
|
|
|
|
|
$Mail::LMLM::Types::Ezmlm::VERSION = '0.6805'; |
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
747
|
use Mail::LMLM::Types::Base; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
6
|
use vars qw(@ISA); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
382
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
@ISA=qw(Mail::LMLM::Types::Base); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub group_form |
13
|
|
|
|
|
|
|
{ |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
my $add = shift; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
return ( |
19
|
0
|
0
|
|
|
|
|
( $self->get_group_base() . |
20
|
|
|
|
|
|
|
($add ? ("-" . $add) : "") ) |
21
|
|
|
|
|
|
|
, |
22
|
|
|
|
|
|
|
$self->get_hostname() |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub _get_subscribe_address |
27
|
|
|
|
|
|
|
{ |
28
|
0
|
|
|
0
|
|
|
my $self = shift; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
return $self->group_form("subscribe"); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub _get_unsubscribe_address |
34
|
|
|
|
|
|
|
{ |
35
|
0
|
|
|
0
|
|
|
my $self = shift; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
return $self->group_form("unsubscribe"); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub _get_post_address |
41
|
|
|
|
|
|
|
{ |
42
|
0
|
|
|
0
|
|
|
my $self = shift; |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
|
|
|
return $self->group_form(); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub _get_owner_address |
48
|
|
|
|
|
|
|
{ |
49
|
0
|
|
|
0
|
|
|
my $self = shift; |
50
|
|
|
|
|
|
|
|
51
|
0
|
|
|
|
|
|
return $self->group_form("owner"); |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub render_something_with_email_addr |
56
|
|
|
|
|
|
|
{ |
57
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
58
|
|
|
|
|
|
|
|
59
|
0
|
|
|
|
|
|
my $htmler = shift; |
60
|
0
|
|
|
|
|
|
my $begin_msg = shift; |
61
|
0
|
|
|
|
|
|
my $address_method = shift; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
0
|
|
|
|
|
|
$htmler->para($begin_msg); |
65
|
0
|
|
|
|
|
|
$htmler->indent_inc(); |
66
|
0
|
|
|
|
|
|
$htmler->start_para(); |
67
|
0
|
|
|
|
|
|
$htmler->email_address( |
68
|
|
|
|
|
|
|
$self->$address_method() |
69
|
|
|
|
|
|
|
); |
70
|
0
|
|
|
|
|
|
$htmler->end_para(); |
71
|
0
|
|
|
|
|
|
$htmler->indent_dec(); |
72
|
|
|
|
|
|
|
|
73
|
0
|
|
|
|
|
|
return 0; |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
sub render_subscribe |
77
|
|
|
|
|
|
|
{ |
78
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
79
|
|
|
|
|
|
|
|
80
|
0
|
|
|
|
|
|
my $htmler = shift; |
81
|
|
|
|
|
|
|
|
82
|
0
|
|
|
|
|
|
return $self->render_something_with_email_addr( |
83
|
|
|
|
|
|
|
$htmler, |
84
|
|
|
|
|
|
|
"Send an empty mail message to the following address: ", |
85
|
|
|
|
|
|
|
\&_get_subscribe_address |
86
|
|
|
|
|
|
|
); |
87
|
|
|
|
|
|
|
} |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub render_unsubscribe |
90
|
|
|
|
|
|
|
{ |
91
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
92
|
|
|
|
|
|
|
|
93
|
0
|
|
|
|
|
|
my $htmler = shift; |
94
|
|
|
|
|
|
|
|
95
|
0
|
|
|
|
|
|
return $self->render_something_with_email_addr( |
96
|
|
|
|
|
|
|
$htmler, |
97
|
|
|
|
|
|
|
"Send an empty mail message to the following address: ", |
98
|
|
|
|
|
|
|
\&_get_unsubscribe_address |
99
|
|
|
|
|
|
|
); |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
sub render_post |
103
|
|
|
|
|
|
|
{ |
104
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
105
|
|
|
|
|
|
|
|
106
|
0
|
|
|
|
|
|
my $htmler = shift; |
107
|
|
|
|
|
|
|
|
108
|
0
|
|
|
|
|
|
return $self->render_something_with_email_addr( |
109
|
|
|
|
|
|
|
$htmler, |
110
|
|
|
|
|
|
|
"Send your messages to the following address: ", |
111
|
|
|
|
|
|
|
\&_get_post_address |
112
|
|
|
|
|
|
|
); |
113
|
|
|
|
|
|
|
} |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
sub render_owner |
116
|
|
|
|
|
|
|
{ |
117
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
118
|
|
|
|
|
|
|
|
119
|
0
|
|
|
|
|
|
my $htmler = shift; |
120
|
|
|
|
|
|
|
|
121
|
0
|
|
|
|
|
|
return $self->render_something_with_email_addr( |
122
|
|
|
|
|
|
|
$htmler, |
123
|
|
|
|
|
|
|
"Send messages to the mailing-list owner to the following address: ", |
124
|
|
|
|
|
|
|
\&_get_owner_address |
125
|
|
|
|
|
|
|
); |
126
|
|
|
|
|
|
|
} |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
1; |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
__END__ |