| 1 | # | ||||||||||||||||||||
| 2 | # Mail/Salsa/Action/Help.pm | ||||||||||||||||||||
| 3 | # Last Modification: Fri Jun 18 14:37:04 WEST 2004 | ||||||||||||||||||||
| 4 | # | ||||||||||||||||||||
| 5 | # Copyright (c) 2004 Henrique Dias <hdias@aesbuc.pt>. All rights reserved. | ||||||||||||||||||||
| 6 | # This module is free software; you can redistribute it and/or modify | ||||||||||||||||||||
| 7 | # it under the same terms as Perl itself. | ||||||||||||||||||||
| 8 | # | ||||||||||||||||||||
| 9 | package Mail::Salsa::Action::Help; | ||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 1 | ▶ | use 5.008000; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | |||||||||||||||||||||
| 15 | 1 | require Exporter; | |||||||||||||||||||
| 16 | 1 | ▶ | use AutoLoader qw(AUTOLOAD); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | 1 | ▶ | use Mail::Salsa::Logs qw(logs); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 1 | our @ISA = qw(Exporter); | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | # Items to export into callers namespace by default. Note: do not export | ||||||||||||||||||||
| 22 | # names by default without a very good reason. Use EXPORT_OK instead. | ||||||||||||||||||||
| 23 | # Do not simply export all your public functions/methods/constants. | ||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | # This allows declaration use Mail::Salsa ':all'; | ||||||||||||||||||||
| 26 | # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK | ||||||||||||||||||||
| 27 | # will save memory. | ||||||||||||||||||||
| 28 | 1 | our %EXPORT_TAGS = ( 'all' => [ qw() ] ); | |||||||||||||||||||
| 29 | |||||||||||||||||||||
| 30 | 1 | our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); | |||||||||||||||||||
| 31 | 1 | our @EXPORT = qw(); | |||||||||||||||||||
| 32 | 1 | our $VERSION = '0.01'; | |||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 0 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 35 | 0 | my $proto = shift; | |||||||||||||||||||
| 36 | 0 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition0%0/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 37 | 0 | my $self = {@_}; | |||||||||||||||||||
| 38 | 0 | bless ($self, $class); | |||||||||||||||||||
| 39 | 0 | $self->process_msg(); | |||||||||||||||||||
| 40 | 0 | return($self); | |||||||||||||||||||
| 41 | } | ||||||||||||||||||||
| 42 | |||||||||||||||||||||
| 43 | 0 | ▶ | sub process_msg { | ||||||||||||||||||
|
Subroutine
process_msg: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||
| 44 | 0 | my $self = shift; | |||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | 0 | my ($name, $domain) = split(/\@/, $self->{'list'}); | |||||||||||||||||||
| 47 | Mail::Salsa::Utils::tplsendmail( | ||||||||||||||||||||
| 48 | smtp_server => $self->{'smtp_server'}, | ||||||||||||||||||||
| 49 | timeout => $self->{'timeout'}, | ||||||||||||||||||||
| 50 | label => "HELP_MESSAGE", | ||||||||||||||||||||
| 51 | lang => $self->{'config'}->{'language'}, | ||||||||||||||||||||
| 52 | vars => { | ||||||||||||||||||||
| 53 | from => "$name\-master\@$domain", | ||||||||||||||||||||
| 54 | 0 | to => $self->{'from'}, | |||||||||||||||||||
| 55 | name => $name, | ||||||||||||||||||||
| 56 | domain => $domain, | ||||||||||||||||||||
| 57 | } | ||||||||||||||||||||
| 58 | ); | ||||||||||||||||||||
| 59 | 0 | return(); | |||||||||||||||||||
| 60 | } | ||||||||||||||||||||
| 61 | |||||||||||||||||||||
| 62 | # Autoload methods go after =cut, and are processed by the autosplit program. | ||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | 1 | 1; | |||||||||||||||||||
| 65 | __END__ | ||||||||||||||||||||