| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Mail::LMLM::Types::Listserv; |
|
2
|
|
|
|
|
|
|
$Mail::LMLM::Types::Listserv::VERSION = '0.6805'; |
|
3
|
1
|
|
|
1
|
|
6
|
use strict; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
24
|
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
20
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use Mail::LMLM::Types::Base; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
3
|
use vars qw(@ISA); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
304
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
@ISA=qw(Mail::LMLM::Types::Base); |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub _get_post_address |
|
13
|
|
|
|
|
|
|
{ |
|
14
|
0
|
|
|
0
|
|
|
my $self = shift; |
|
15
|
|
|
|
|
|
|
|
|
16
|
0
|
|
|
|
|
|
return ($self->get_group_base(), $self->get_hostname()); |
|
17
|
|
|
|
|
|
|
} |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub _get_owner_address |
|
20
|
|
|
|
|
|
|
{ |
|
21
|
0
|
|
|
0
|
|
|
my $self = shift; |
|
22
|
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
return (('owner-' . $self->get_group_base()) , $self->get_hostname()); |
|
24
|
|
|
|
|
|
|
} |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub render_mail_management |
|
27
|
|
|
|
|
|
|
{ |
|
28
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
29
|
|
|
|
|
|
|
|
|
30
|
0
|
|
|
|
|
|
my $htmler = shift; |
|
31
|
0
|
|
|
|
|
|
my $begin_msg = shift; |
|
32
|
0
|
|
|
|
|
|
my $line_prefix = shift; |
|
33
|
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
$htmler->para($begin_msg . " write a message with the following line as body:"); |
|
35
|
0
|
|
|
|
|
|
$htmler->indent_inc(); |
|
36
|
0
|
|
|
|
|
|
$htmler->para(($line_prefix. " " . $self->get_group_base()), { 'bold' => 1}); |
|
37
|
0
|
|
|
|
|
|
$htmler->indent_dec(); |
|
38
|
0
|
|
|
|
|
|
$htmler->para("to the following address:"); |
|
39
|
0
|
|
|
|
|
|
$htmler->indent_inc(); |
|
40
|
0
|
|
|
|
|
|
$htmler->start_para(); |
|
41
|
0
|
|
|
|
|
|
$htmler->email_address( |
|
42
|
|
|
|
|
|
|
"listserv", $self->get_hostname() |
|
43
|
|
|
|
|
|
|
); |
|
44
|
0
|
|
|
|
|
|
$htmler->end_para(); |
|
45
|
0
|
|
|
|
|
|
$htmler->indent_dec(); |
|
46
|
|
|
|
|
|
|
|
|
47
|
0
|
|
|
|
|
|
return 0; |
|
48
|
|
|
|
|
|
|
} |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub render_subscribe |
|
51
|
|
|
|
|
|
|
{ |
|
52
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
53
|
|
|
|
|
|
|
|
|
54
|
0
|
|
|
|
|
|
my $htmler = shift; |
|
55
|
|
|
|
|
|
|
|
|
56
|
0
|
|
|
|
|
|
return $self->render_mail_management( |
|
57
|
|
|
|
|
|
|
$htmler, |
|
58
|
|
|
|
|
|
|
"To subscribe", |
|
59
|
|
|
|
|
|
|
"subscribe" |
|
60
|
|
|
|
|
|
|
); |
|
61
|
|
|
|
|
|
|
} |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub render_unsubscribe |
|
64
|
|
|
|
|
|
|
{ |
|
65
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
66
|
|
|
|
|
|
|
|
|
67
|
0
|
|
|
|
|
|
my $htmler = shift; |
|
68
|
|
|
|
|
|
|
|
|
69
|
0
|
|
|
|
|
|
return $self->render_mail_management( |
|
70
|
|
|
|
|
|
|
$htmler, |
|
71
|
|
|
|
|
|
|
"To unsubscribe", |
|
72
|
|
|
|
|
|
|
"signoff" |
|
73
|
|
|
|
|
|
|
); |
|
74
|
|
|
|
|
|
|
} |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
sub render_post |
|
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 your messages to the following address: ", |
|
85
|
|
|
|
|
|
|
\&_get_post_address |
|
86
|
|
|
|
|
|
|
); |
|
87
|
|
|
|
|
|
|
} |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub render_owner |
|
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 messages to the mailing-list owner to the following address: ", |
|
98
|
|
|
|
|
|
|
\&_get_owner_address |
|
99
|
|
|
|
|
|
|
); |
|
100
|
|
|
|
|
|
|
} |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
1; |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
__END__ |