Skip to Content.
Sympa Menu

en - msg_header in scenari

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Chris Hastie <address@concealed>
  • To: address@concealed
  • Subject: msg_header in scenari
  • Date: Fri, 27 Feb 2004 09:12:56 +0000

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.

As an aside, I'm not sure about the use of the term 'smtp_key_word' in the docs. The headers of an RFC 2822 message have little to do with SMTP and RFC 2821 other than usually, but not always, that is how they are transmitted.
--
Chris Hastie


  • msg_header in scenari, Chris Hastie, 02/27/2004

Archive powered by MHonArc 2.6.19+.

Top of Page