Skip to Content.
Sympa Menu

en - Re: [sympa-users] Sympa 6.1.9 (and older): reply_to_header sender, apply force - BUG?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] Sympa 6.1.9 (and older): reply_to_header sender, apply force - BUG?
  • Date: Thu, 05 Apr 2012 15:29:03 +0200

Hi Marcin,

Thanks for this bug fix. I applied it to the 6.1 branch and it will be integrated to the 6.1.10 tag. Coming soon!

Best regards,

David

Le 05/04/12 14:20, Marcin Wołoszyn a écrit :
Hello,

I'd like to suggest a fix that should be taken under consideration.

Spoiler
=======

* Given Sympa list config contain:

value sender
apply forced

* Someone sends an email to the list. Email gets distributed.

* If an subscriber is using MS Outlook or Mozilla Thunderbird
and he presses "Reply" - Sympa list email address goes inside
"To:" field.

This behavior is wrong -the docs say that message sender email address should appear inside "To:" field.

More
====

According to the docs at: http://www.sympa.org/manual/parameters-sending#reply_to_header or help inside wwsympa web interface:

[QUOTE]
The reply_to_header parameter starts a paragraph defining what Sympa will place in the Reply-To: SMTP header field of the messages it distributes.

value sender | list | all | other_email (Default value: sender)
This parameter indicates whether the Reply-To: field should indicate the sender of the message (sender), the list itself (list), both list and sender (all) or an arbitrary email address (defined by the other_email parameter).
[/QUOTE]

and

[QUOTE]
apply respect | forced (Default value: respect).
The default is to respect (preserve) the existing Reply-To: SMTP header field in incoming messages. If set to forced, the Reply-To: SMTP header field will be overwritten.
[/QUOTE]

The way Sympa behaves when:
value sender
apply forced
is set is that it sends mail with no "Reply-To" header, with list email address in "X-Original-To" and sender in "From" field.

I consider Sympa to be extremally reliable piece of software and as I suppose given behavior is fully RFC compilant, but Microsoft Outlook and Mozilla Thunderbird in case if there is no "Reply-To" and there is "X-Original-To" - those clients are ignoring "From" and they treat "X-Original-To" as an address to reply. This is not how mentioned above docs say Sympa should behave, and at least for those MUAs - an address to reply is not as is is supposed to be. As Sympa is in most (every?) case part of a greater deployment - it needs to work as it is supposed in every case.

Below is fix that i belive should be applied. Applying this change to the Sympa source might require to be listed in new release info, because it will force Sympa list admins to check their configurations, at least if they were changing default apply respect to force .

Fix
===

diff -U 10 src/lib/List.pm.orig src/lib/List.pm
--- src/lib/List.pm.orig 2012-04-05 13:24:41.552080900 +0200
+++ src/lib/List.pm 2012-04-05 13:26:19.107876100 +0200
@@ -2683,21 +2683,21 @@
## Change the reply-to header if necessary.
if ($self->{'admin'}{'reply_to_header'}) {
unless ($hdr->get('Reply-To') && ($self->{'admin'}{'reply_to_header'}{'apply'} ne 'forced')) {
my $reply;

$hdr->delete('Reply-To');

if ($self->{'admin'}{'reply_to_header'}{'value'} eq 'list') {
$reply = "$name\@$host";
}elsif ($self->{'admin'}{'reply_to_header'}{'value'} eq 'sender') {
- $reply = undef;
+ $reply = $hdr->get('From');
}elsif ($self->{'admin'}{'reply_to_header'}{'value'} eq 'all') {
$reply = "$name\@$host,".$hdr->get('From');
}elsif ($self->{'admin'}{'reply_to_header'}{'value'} eq 'other_email') {
$reply = $self->{'admin'}{'reply_to_header'}{'other_email'};
}

$hdr->add('Reply-To',$reply) if $reply;
}
}






Archive powered by MHonArc 2.6.19+.

Top of Page