| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Siesta::Plugin::ReplyTo; |
|
2
|
6
|
|
|
6
|
|
23920
|
use strict; |
|
|
6
|
|
|
|
|
14
|
|
|
|
6
|
|
|
|
|
230
|
|
|
3
|
6
|
|
|
6
|
|
39
|
use Siesta::Plugin; |
|
|
6
|
|
|
|
|
53
|
|
|
|
6
|
|
|
|
|
104
|
|
|
4
|
6
|
|
|
6
|
|
175
|
use base 'Siesta::Plugin'; |
|
|
6
|
|
|
|
|
16
|
|
|
|
6
|
|
|
|
|
1359
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub description { |
|
7
|
1
|
|
|
1
|
0
|
567
|
"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
|
|
|
|
|
|
|
sub process { |
|
23
|
4
|
|
|
4
|
1
|
5769
|
my $self = shift; |
|
24
|
4
|
|
|
|
|
9
|
my $mail = shift; |
|
25
|
4
|
|
|
|
|
36
|
my $list = $self->list; |
|
26
|
|
|
|
|
|
|
|
|
27
|
4
|
100
|
|
|
|
2075
|
$mail->header_set( 'Reply-To', $list->post_address ) |
|
28
|
|
|
|
|
|
|
if $self->pref( 'munge' ); |
|
29
|
|
|
|
|
|
|
|
|
30
|
4
|
|
|
|
|
6449
|
return; |
|
31
|
|
|
|
|
|
|
} |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub options { |
|
34
|
|
|
|
|
|
|
+{ |
|
35
|
6
|
|
|
6
|
1
|
75
|
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
|
|
|
|
|
|
|
1; |