| 1 | package Mail::LMLM::Types::Listserv; | ||
| 2 | 3 | $Mail::LMLM::Types::Listserv::VERSION = '0.6805'; | |
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Mail::LMLM::Types::Base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | ▶ | use vars qw(@ISA); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 3 | @ISA=qw(Mail::LMLM::Types::Base); | |
| 11 | |||
| 12 | sub _get_post_address | ||
| 13 | { | ||
| 14 | 0 | ▶ | my $self = shift; |
|
Subroutine
_get_post_address: not called CC=1 SCAR=6.9
| |||
| 15 | |||
| 16 | 0 | return ($self->get_group_base(), $self->get_hostname()); | |
| 17 | } | ||
| 18 | |||
| 19 | sub _get_owner_address | ||
| 20 | { | ||
| 21 | 0 | ▶ | my $self = shift; |
|
Subroutine
_get_owner_address: not called CC=1 SCAR=6.9
| |||
| 22 | |||
| 23 | 0 | return (('owner-' . $self->get_group_base()) , $self->get_hostname()); | |
| 24 | } | ||
| 25 | |||
| 26 | sub render_mail_management | ||
| 27 | { | ||
| 28 | 0 | ▶ | my $self = shift; |
|
Subroutine
render_mail_management: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 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 | ▶ | my $self = shift; |
|
Subroutine
render_subscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 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 | ▶ | my $self = shift; |
|
Subroutine
render_unsubscribe: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 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 | ▶ | my $self = shift; |
|
Subroutine
render_post: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 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 | ▶ | my $self = shift; |
|
Subroutine
render_owner: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 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 | 3 | 1; | |
| 103 | |||
| 104 | __END__ | ||