Skip to Content.
Sympa Menu

en - Changing the Reply-to header in ANY case

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Borut Mrak <address@concealed>
  • To: address@concealed
  • Subject: Changing the Reply-to header in ANY case
  • Date: Sat, 3 Jun 2000 23:38:44 +0200

Hello!

I am setting a mailing list here using Sympa and I wanted it to change
the Reply-to header to the list address. Unfortunately, Sympa does not
set the Reply-to header if it is already present.

I changed the code to do it in any case by moving the Reply-to header
to the From header and insert its own Reply-to.

If this is some brain-dead mistake I am making, please tell me, but I
think many of us want Sympa to work this way. If there is more interest
in this feature I could rewrite it, document it, add configuration options
and then submit a patch.

This patch is against sympa 2.6.1 as packaged in Debian package
sympa_2.6.1-3.deb. I hope the Debian people haven't changed the file
a lot ;-]

bye,

--
Borut
address@concealed
-----------------
Been there, done that, got the T-shirt.
*** /usr/lib/sympa/bin/sympa.pl Wed May 24 19:47:54 2000
--- ./sympa.pl Sat Jun 3 23:16:57 2000
***************
*** 566,574 ****


my $reply = $list->get_reply_to();
! if ($reply && !$hdr->get('Reply-To') && $reply !~ /^sender$/io) {
if ($reply =~ /^list$/io) {
$reply = "$name\@$host";
}
$hdr->add('Reply-To', $reply);
}
--- 566,582 ----


my $reply = $list->get_reply_to();
! if ($reply && $reply !~ /^sender$/io) {
if ($reply =~ /^list$/io) {
$reply = "$name\@$host";
+ }
+ ## WARNING!!! This changes the default behaviout of Sympa.
+ ## If present, it moves the Reply-to header to From, so
+ ## it can insert its own.
+ if (my $B_reply_to = $hdr->get('Reply-To')) {
+ $hdr->delete('Reply-to');
+ $hdr->delete('From');
+ $hdr->add('From',$B_reply_to);
}
$hdr->add('Reply-To', $reply);
}



Archive powered by MHonArc 2.6.19+.

Top of Page