[JDEV] Net::Jabber and envelopes

Chris cjackson at ctel.net
Thu Sep 7 22:55:43 CDT 2000


Thanks - I guess I was miss reading the Net::Jabber::X manpage - It
sounds like I can use GetX to retrieve any namespace (my @xTags =
$mesage->GetX("my:namespace");) and not just the ones with defined
retrieval functions.
I'll either mess with SetDelegate and add the functions or maybe do it
cheep and dirty with XML::Parser.
I just need to get at the forwardedby element to check for message
loops.
Thanks again...

Ryan Eatmon wrote:
> 
> You're confused because the Net::Jabber modules don't support the
> x:envelope namespace yet.  I'll look into adding that soon.
> 
> Ryan
> 
> Chris wrote:
> >
> > I'm trying to get my pager-transport to respond to the envelope "from"
> > vs. the message "from" to prevent loops caused by mod_filter, but
> >
> >   my $message = new Net::Jabber::Message(@_);
> >   print "Recd: ",$message->GetXML(),"\n";
> >   #prints the message and shows the envelope
> >
> >   my @tags = $message->GetX("jabber:x:envelope");
> >   my $tag;
> >   foreach $tag (@tagsub messageCB {
> >  {
> >     print "$tag\n";
> >   }
> > # doesn't print anything
> >
> > Where am I confused?
> >
> >
> > --
> > Hlade's Law:
> >     If you have a difficult task, give it to a lazy person --
> >     they will find an easier way to do it.
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> 
> --
> 
> Ryan Eatmon                reatmon at ti.com
> -----------------------------------------
> Mixed Signal Product Development EDA Team
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev

-- 
Hlade's Law:
    If you have a difficult task, give it to a lazy person --
    they will find an easier way to do it.




More information about the JDev mailing list