Skip to Content.
Sympa Menu

en - Re: [sympa-users] msg_header in scenari

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun - CRU <address@concealed>
  • To: Chris Hastie <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] msg_header in scenari
  • Date: Mon, 01 Mar 2004 16:26:24 +0100

Hi Chris,

You're right, [msg_header->xxx] variables were not parsed in scenario files.
We've fixed this problem in CVS :
http://listes.cru.fr/cgi-bin/cvsweb.cgi/sympa/src/List.pm.diff?r2=1.423&r1=1.422&f=u

Thanks.

Chris Hastie a écrit :

There seems to be a difference of opinion between the docs and the code in 4.0.b2 with respect to the [msg_header-><smtp_key_word>] variable in scenari.

According to the docs, [msg_header-><smtp_key_word>] is what should be used. But it doesn't work. And looking at the code, [header-><smtp_key_word>] does:

## SMTP Header field
}elsif ($value =~ /\[(msg_header|header)\-\>([\w\-]+)\]/i) {
if (defined ($context->{'msg'})) {
my $header = $context->{'msg'}->head;
my $field = $header->get($2);
$value =~ s/\[header\-\>([\w\-]+)\]/$field/;
}else {
return -1 * $negation;
}

any mention of "msg_" has been missed from substitution that sets a value for $value.
[...]

--
Olivier Salaun
Comite Reseau des Universites





  • Re: [sympa-users] msg_header in scenari, Olivier Salaun - CRU, 03/01/2004

Archive powered by MHonArc 2.6.19+.

Top of Page