| 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
| |||||||||||
| 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; | |||||||||