Skip to Content.
Sympa Menu

en - [sympa-users] Re: x-no-archive header?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: address@concealed
  • To: Miles Fidelman <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: [sympa-users] Re: x-no-archive header?
  • Date: Mon, 12 Feb 2007 09:32:48 +0100

Miles Fidelman wrote:
Hi Folks,

I just discovered that Sympa automatically adds x-no-archive: yes headers to outgoing messages. Is there a way to turn this off for a specific list?
No, there is no way for that. If you look at List.pm in subrouting distribute_msg, you wil see that unwanted headers are removed first then others headers such as "X-no-archive" added. So you can't remove headers using "remove_headers" parameter for that (if you do it it will remove preexisting x-no-archive header but Sympa will always add its own one).

Herer is the code (List.pm):

## Remove unwanted headers if present.
if ($Conf{'remove_headers'}) {
foreach my $field (@{$Conf{'remove_headers'}}) {
$hdr->delete($field);
}
}
## Add useful headers
$hdr->add('X-Loop', "$name\@$host");
$hdr->add('X-Sequence', $sequence);
$hdr->add('Errors-to', $name.&Conf::get_robot_conf($robot, 'return_path_suffix').'@'.$host);
$hdr->add('Precedence', 'list');
$hdr->add('X-no-archive', 'yes');
foreach my $i (@{$self->{'admin'}{'custom_header'}}) {
$hdr->add($1, $2) if ($i=~/^([\S\-\:]*)\s(.*)$/);
}

If you move the first block (remove) after the second one (add) this will not be good enough because your request is to do it per list configuration. ($Conf is a hash made from sympa.conf configuration file). By the way it would also be possible to remove mandatory headers. Not a good idea.

You should add a feature request for it in Sympa web site
.

Regards
Serge



Archive powered by MHonArc 2.6.19+.

Top of Page