| 1 | package Egg::View::Mail::Plugin::Signature; | ||||||||||
| 2 | # | ||||||||||
| 3 | # Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt> | ||||||||||
| 4 | # | ||||||||||
| 5 | # $Id: Signature.pm 332 2008-04-19 17:03:10Z lushe $ | ||||||||||
| 6 | # | ||||||||||
| 7 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 2 | our $VERSION = '0.06'; | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub __get_mailbody { | ||||||||
|
Subroutine
__get_mailbody: not called CC=5 SCAR=34.0
| |||||||||||
| 13 | 0 | my($self, $data)= @_; | |||||||||
| 14 | 0 | ▶ | return $self->next::method($data) unless $data->{body}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | my $body= $data->{body}= $self->__init_mailbody($data); | |||||||||
| 16 | 0 | ▶ | $$body = $data->{body_header}. $$body if $data->{body_header}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | ▶ | $$body.= "\n$data->{body_footer}" if $data->{body_footer}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 0 | ▶ | $$body.= "\n$data->{signature}" if $data->{signature}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 0 | $self->next::method($data); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 2 | 1; | |||||||||
| 23 | |||||||||||
| 24 | __END__ | ||||||||||