cool.. I don't know about the URL, but wasn't it http://space.msn.com/members/$email_address humm.. doesn't seem so.. did you try to 'GET' the blog url ? I mean, using the URL command (not well known command) but try this Ctrl-D for protocol log, Ctrl-M for NS command (what you type there is sent to the NS with the next transaction id available) in the NS command window type :
URL INBOX

humm.. I don't remember what other 'URL' parameters it accepts, I remember I found another one.. ohh yeah, I tihnk "URL COMPOSE $email" yep.. just tried it, that was it.. anyways, maybe there is a new URL option to get the url of the blog (which is logic... ).. if you sniff the packets when you access the blog of someone, I'm sure you'll see what it does, M$N never uses a hardcoded url (the only thing intelligent), instead, they use the URL command, (if you sniff and click on your "new messages" to access your inbox, an URL INBOX command is sent, same thing if you click on "Send email" to a contact, a "URL COMPOSE" command is sent.. so I'm pretty sure when it tries to access the blog it will also use that command.. don't forget, ethereal is your friend :P About parsing the XML, don't forget it's simple.. very simple with the xml tools I added :
set xml_list [xml2list $xml_data]
set what_you_want [GetXmlEntry $xml_list ":what:you:look:for"]
set attr [GetXmlAttribute $xml_list ":what:you:look:for" "name_of_attribute"]

example is :
<NOTIFICATION>
        <Message from="[EMAIL PROTECTED]" >
                <TXT> blablabla </TXT>
        </Message>
</NOTIFICATION>

Assume this Xml is the $xml_data variable, then you do :
set xml_list [xml2list $xml_data]
you get a list like this (try it to be sure, I'm just doing this from memory) : {NOTIFICATION {} {{Message {{from [EMAIL PROTECTED] {TXT {} {{#text { blablablabla }}}}}}}


format is (if I remember correctly) : list of 3 elements -> {entry_name list_attributes list_of_children} the list of attributes is I think a list of 2 elements : {attribute_name value} the list of children is I think a list of multiple elements, each being a children (subtags or values), if an element of that list is itself a list of 3 element list, it's a subentry (subtag) if you get someone in a list a list with #text as first element, then the second is a text representing the data inside the tag... anyways, you DON'T NEED to know all that, it's just in case you need to fix my code (in sxml.tcl, I added a few procs at the end) the GetXmlEntry will get you the value of a tag, in the format of subtags separated with a colon, the GetXmlAttribute is the same but gets you a specific attribute of that tag.. so in the previous xml example, you'll have :
set sender [GetXmlAttribue ":NOTIFICATION:Message" "from"]
set message [GetXmlEntry ":NOTIFICATION:Message:TXT"]


got it ? there, now you can easily parse the xml, without the need to write the xml to a file, then scan it with ::sxml and register procedures and have complex callback functions to parse the data as parsed... blablabla... these methods will give you the first (I think) element (so multiple <smiley> for example won't work) and won't work with xml data that has comments or <?xml .. ?> and <!-- ... --> ok ? so it means you can't use it to parse settings.xml for example!!! use it only for XML data you get from the NS or SB, since those XML datas don't have any <?xml> tag and don't have any comments inline... (would be stupid if they had!)


good luck :d

KKRT



On Wed, 11 Jan 2006 14:45:12 -0500, Karel Demeyer <[EMAIL PROTECTED]> wrote:

This is already stored, you can get that info
with ::abook::getVolatileData [EMAIL PROTECTED] HSB
if 1 (s)he has an updates blog .. but did someone found out yet how to
get the url to the blog ? Also, the xml we get when someone updates his
blog while you are online needs to be parsed ;)  Again, I'm talking and
not coding, sorry :)

Op za, 07-01-2006 te 00:33 +0200, schreef Vivia Nikolaidou:
This is the way for MSNP11:  Just how do we get the link for MSN Space?

---------------

http://msnpiki.msnfanatic.com/index.php/MSNP11:Changes :

BPR

This command is sent by the notification server immediately after it sends
a LST command while synchronising. It contains no way of identifying the
principle that it refers to, so you must assume that it is for the most
recently sent LST. New in MSNP11 is the HSB (Has Blog) setting. Other
values are PHM (Phone Mobile), PHW (Phone Work), PHH (Phone Home), MOB
(MSN Mobile contact authorised), MBE (MSN Mobile device enabled) and WWE
(MSN Direct device enabled).

 > BPR HSB 1\r\n

It is used to indicate that the principle has an (updated) MSN Space blog.

---------------

On Fri, 6 Jan 2006, Karel Demeyer wrote:

> Was MSNP11 really needed for it ?  When I was making my plugin msnp11
> was not yet implemented I think and I thought someone said me I should
> look at it as it was alredy possible .. no ?
>
> I think the ccard plugin should be rewritten (partly) anyway.
> Someone ? :D  Snit-ised etc .. of course the way it works and a lot of
> GUI things can be kept ...
>
> Karel. - who is stressing because of the exams that are coming closer
> and still having a lot to study :D
>
>
> Op vr, 06-01-2006 te 13:58 -0500, schreef Jérôme Gagnon-Voyer:
> > Yes MSNP11 was necessary for this. We already have a great plugin
> > (ContactCard) that we could use for this sugestion. I just don't have
> > any docs about that (protocol)
> > Le 06-01-06 à 11:55, Alvaro J. Iradier a écrit :
> >
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > Hi, this guy is asking for
> > >
> > > 1) Show a star in the contact list for contacts that have updated
> > > their
> > > MSN-Space
> > > 2) In the contact details/properties, a link the the user MSN-Space
> > >
> > > Do we have some work on this? Is MSNP11 necessary for this?
> > >
> > > Greets.
> > >
> > > - -------- Original Message --------
> > > Subject: sugerencia para aMSN
> > > Date: Mon, 02 Jan 2006 12:59:37 +0100
> > > From: jose cano <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > >
> > > Hola!!
> > > has hecho un trabajo buenísimo con aMSN.
> > > Uno de los motivos por los que mucha peña no se pasa a Linux,
> > > es que no quieren perder su funcionalidad MSN.
> > >
> > > Por eso, te digo que has hecho un trabajo excelente para aumentar
> > > la comunidad de usuarios Linux.
> > >
> > > Bueno. mi sugerencia: Creo que al aMSN solo le falta ver la
> > > estrella que
> > > sale
> > > a la izquierda de los contactos cuando un usuario ha actualizado su
> > > MSN
> > > SPACE.
> > >
> > > y en los detalles dle usuario, un link a su MSN SPACE. Con eso
> > > sería ya
> > > completo.
> > >
> > > Gracias!!!
> > >
> > > _________________________________________________________________
> > > FREE pop-up blocking with the new MSN Toolbar - get it now!
> > > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
> > >
> > >
> > >
> > > - --
> > >
> > > (================================)
> > >       Alvaro J. Iradier Muro
> > >         [EMAIL PROTECTED]
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.2 (GNU/Linux)
> > > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> > >
> > > iD8DBQFDvqD8oDlUrRluukQRAk4+AKCbtDx6/dxr/MPZKcHa6IuwXecJIwCgxU04
> > > eQWWPlzuvTdeustykZtZjAw=
> > > =Z7zC
> > > -----END PGP SIGNATURE-----
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > > log files
> > > for problems? Stop! Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the  web.  DOWNLOAD
> > > SPLUNK!
> > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > > _______________________________________________
> > > Amsn-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/amsn-devel
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> > for problems?  Stop!  Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> > _______________________________________________
> > Amsn-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/amsn-devel
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_idv37&alloc_id865&opk
> _______________________________________________
> Amsn-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amsn-devel
>


---

"Where is the life that we have lost in living?
 Where is the wisdom that we have lost in knowledge?
 Where is the knowledge that we have lost in information?"

OEO;



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel



--
KaKaRoTo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel

Reply via email to