| 1 | package Mail::LMLM::Types::Ezmlm; | ||||||||||
| 2 | 4 | $Mail::LMLM::Types::Ezmlm::VERSION = '0.6805'; | |||||||||
| 3 | 4 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 4 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 4 | ▶ | use Mail::LMLM::Types::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 4 | ▶ | use vars qw(@ISA); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 4 | @ISA=qw(Mail::LMLM::Types::Base); | |||||||||
| 11 | |||||||||||
| 12 | sub group_form | ||||||||||
| 13 | { | ||||||||||
| 14 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
group_form: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 15 | |||||||||||
| 16 | 0 | my $add = shift; | |||||||||
| 17 | |||||||||||
| 18 | return ( | ||||||||||
| 19 | 0 | ▶ | ( $self->get_group_base() . | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | ($add ? ("-" . $add) : "") ) | ||||||||||
| 21 | , | ||||||||||
| 22 | $self->get_hostname() | ||||||||||
| 23 | ); | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | sub _get_subscribe_address | ||||||||||
| 27 | { | ||||||||||
| 28 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
_get_subscribe_address: not called CC=1 SCAR=6.9
| |||||||||||
| 29 | |||||||||||
| 30 | 0 | return $self->group_form("subscribe"); | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | sub _get_unsubscribe_address | ||||||||||
| 34 | { | ||||||||||
| 35 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
_get_unsubscribe_address: not called CC=1 SCAR=6.9
| |||||||||||
| 36 | |||||||||||
| 37 | 0 | return $self->group_form("unsubscribe"); | |||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | sub _get_post_address | ||||||||||
| 41 | { | ||||||||||
| 42 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
_get_post_address: not called CC=1 SCAR=6.9
| |||||||||||
| 43 | |||||||||||
| 44 | 0 | return $self->group_form(); | |||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | sub _get_owner_address | ||||||||||
| 48 | { | ||||||||||
| 49 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
_get_owner_address: not called CC=1 SCAR=6.9
| |||||||||||
| 50 | |||||||||||
| 51 | 0 | return $self->group_form("owner"); | |||||||||
| 52 | } | ||||||||||
| 53 | |||||||||||
| 54 | |||||||||||
| 55 | sub render_something_with_email_addr | ||||||||||
| 56 | { | ||||||||||
| 57 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render_something_with_email_addr: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 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 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render_subscribe: 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 an empty mail message to the following address: ", | ||||||||||
| 85 | \&_get_subscribe_address | ||||||||||
| 86 | ); | ||||||||||
| 87 | } | ||||||||||
| 88 | |||||||||||
| 89 | sub render_unsubscribe | ||||||||||
| 90 | { | ||||||||||
| 91 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render_unsubscribe: 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 an empty mail message to the following address: ", | ||||||||||
| 98 | \&_get_unsubscribe_address | ||||||||||
| 99 | ); | ||||||||||
| 100 | } | ||||||||||
| 101 | |||||||||||
| 102 | sub render_post | ||||||||||
| 103 | { | ||||||||||
| 104 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render_post: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 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 | ▶ | my $self = shift; | ||||||||
|
Subroutine
render_owner: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 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 | 4 | 1; | |||||||||
| 129 | |||||||||||
| 130 | __END__ | ||||||||||