Skip to Content.
Sympa Menu

en - [sympa-users] RFC 2369 headers disable

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: <address@concealed>
  • To: address@concealed
  • Subject: [sympa-users] RFC 2369 headers disable
  • Date: Mon, 31 Jan 2011 15:49:29 +0100

My mailing list will use only soap for manage subscriber, so I don't need
such header as

List-Id: <listheader.example.com>
List-Help: <mailto:address@concealed?subject=help>
List-Subscribe: <mailto:address@concealed?subject=subscribe%20listheader>
List-Unsubscribe: <mailto:address@concealed?subject=unsubscribe%20listheader>
List-Post: <mailto:address@concealed>
List-Owner: <mailto:address@concealed>
List-Archive: <http://example.com/sympa/arc/listheader>

How to disable it? Now comment this line in /usr/share/sympa/lib/List.pm and
it work. Is there other way? Edit source code is not very good idea...

## Add RFC 2369 header fields
foreach my $field (@{$self->{'admin'}{'rfc2369_header_fields'}}) {
if ($field eq 'help') {
$hdr->add('List-Help', sprintf ('<mailto:%s@%s?subject=help>',
&Conf::get_robot_conf($robot, 'email'), &Conf::get_robot_conf($robot,
'host')));
}elsif ($field eq 'unsubscribe') {
$hdr->add('List-Unsubscribe', sprintf
('<mailto:%s@%s?subject=unsubscribe%%20%s>', &Conf::get_robot_conf($robot,
'email'), &Conf::get_robot_conf($robot, 'host'), $self->{'name'}));
}elsif ($field eq 'subscribe') {
$hdr->add('List-Subscribe', sprintf
('<mailto:%s@%s?subject=subscribe%%20%s>', &Conf::get_robot_conf($robot,
'email'), &Conf::get_robot_conf($robot, 'host'), $self->{'name'}));
}elsif ($field eq 'post') {
$hdr->add('List-Post', sprintf ('<mailto:%s@%s>', $self->{'name'},
$self->{'admin'}{'host'}));
}elsif ($field eq 'owner') {
$hdr->add('List-Owner', sprintf ('<mailto:%s-request@%s>', $self-
>{'name'}, $self->{'admin'}{'host'}));
}elsif ($field eq 'archive') {
if (&Conf::get_robot_conf($robot, 'wwsympa_url') and $self-
>is_web_archived()) {
$hdr->add('List-Archive', sprintf ('<%s/arc/%s>',
&Conf::get_robot_conf($robot, 'wwsympa_url'), $self->{'name'}));
}
}
}


  • [sympa-users] RFC 2369 headers disable, buyloff, 01/31/2011

Archive powered by MHonArc 2.6.19+.

Top of Page