Daniel,
I'm using openser 1.1.0.
Using $cT works, as well as $hdr(Content-Type).
I must have had a typo in my $hdr() command yesterday.
Thanks for the help.
to make it more interactive and allow users to
contribute/enhance to
these documents, I moved to dokuwiki latest version so it can be edited
by anybody. From time to time we may generate a static version to have
it as reference in case someone tries to "poison" the content.
Mark Price
On 11/22/06, *Daniel-Constantin Mierla* <daniel(a)voice-system.ro
<mailto:daniel@voice-system.ro>> wrote:
Hello,
I tried and seems to work. There was a typo in pseudo-variables
documentation (fixed now), the short name is $cT for Content-Type
-- $ct
stands for Contact header body.
xlog("L_ALERT","**** $hdr(Content-Type) | $cT | $rb\n");
**** text/plain;charset=UTF-8 | text/plain;charset=UTF-8 | test
I used devel version, what version are you using ?
Cheers,
Daniel
On 11/22/06 01:36, Mark Price wrote:
Hi,
I am trying to log MESSAGE packets differentiated the
content-type of
the packet.
I can see in the packet dump that they have types such as
"text/html"
and so on.
I'm using the following statement in the code:
if(method=="MESSAGE") {
xlog("L_ALERT","$ct $rb\n");
}
The message body specified by $rb is printing out fine, but $ct is
printing out "<null>".
I get the exact same result if I say:
xlog("L_ALERT","$hdr(Content-Type) $rb\n");
Is this a bug in openser?
Thanks,
Mark Price
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users(a)openser.org <mailto:Users@openser.org>
http://openser.org/cgi-bin/mailman/listinfo/users