blib/lib/Siesta/Plugin/ReplyTo.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 66.6% 2 / 3 totaltotal 96.4% 27 / 28 CC 2 SCAR 2.5
CC
2
Cov
100%
process
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« blib/lib/Siesta/Plugin/Bounce.pm ↑ Summary blib/lib/Siesta/Plugin/Archive.pm »
1 package Siesta::Plugin::ReplyTo;
2 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 6 ▶use Siesta::Plugin;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use base 'Siesta::Plugin';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶sub description {
Subroutine description: called CC=1 SCAR=0.0
Pod undocumented
7 1 "Munges the Reply-To header to the list address, not the person who sent it";
8 }
9  
10 # see :
11 # http://www.unicom.com/pw/reply-to-harmful.html
12 # http://www.metasystema.org/essays/reply-to-useful.mhtml
13 # http://thegestalt.org/simon/replytorant.html
14 # http://www.deez.info/sengelha/writings/considered-harmful/
15 # for various for and against arguments thrashed out by the great
16 # and the good and for why I don't care. Feel free to argue about
17 # this to your hearts content - the monkeys dance for my pleasure.
18 #
19 # DANCE MONKEYS! DANCE!
20  
21  
22 4 ▶sub process {
Subroutine process: called CC=2 SCAR=6.9
Pod documented
23 4 my $self = shift;
24 4 my $mail = shift;
25 4 my $list = $self->list;
26  
27 4 ▶ $mail->header_set( 'Reply-To', $list->post_address )
Branch: 1 branch
BranchTrueFalseTotal
if $self->pref("munge") 3 1 4
28 if $self->pref( 'munge' );
29  
30 4 return;
31 }
32  
33 6 ▶sub options {
Subroutine options: called CC=1 SCAR=0.0
Pod documented
34 +{
35 6 munge =>
36 {
37 description =>
38 'should we munge the reply-to address of the message to be the list post address',
39 type => 'boolean',
40 default => 0,
41 },
42 };
43 }
44  
45 6 1;
« blib/lib/Siesta/Plugin/Bounce.pm ↑ Summary blib/lib/Siesta/Plugin/Archive.pm »