-
Notifications
You must be signed in to change notification settings - Fork 5
Subscriptions
dx edited this page Mar 9, 2015
·
1 revision
Older MSN protocol versions required sending the contact list to the notification server with an ADL command. Skype still does this.
PUT 6 MSGR\CONTACTS 2432
Registration: ...
<ml l="1"><skp>
<c n="username" t="8"><s l="3" n="PE"/><s l="3" n="IM"/><s l="3" n="SKP"/><s l="3" n="PUB"/></c>
<c n="live:username" t="8"><s l="3" n="PE"/><s l="3" n="IM"/><s l="3" n="SKP"/><s l="3" n="PUB"/></c>
...
</skp></ml>
PUT 7 MSGR\SUBSCRIPTIONS 475
Registration: ...
<subscribe><messaging><im /><conversations /></messaging></subscribe>
After fetching MSGR\RECENTCONVERSATIONS
, it sends another
PUT 9 MSGR\SUBSCRIPTIONS 522
Registration: ...
<subscribe>
<presence><buddies><all /></buddies></presence>
<messaging><im /><conversations /></messaging>
</subscribe>
Outlook.com is lazy, skips the ADL-equivalent step, and sends a slightly longer presence subscription right away:
PUT 5 MSGR\SUBSCRIPTIONS 635
Registration: ...
<subscribe>
<notifications><partners><partner>Hotmail</partner><partner>ABCH</partner></partners></notifications>
<presence><buddies><all /></buddies></presence>
<messaging><im /><conversations /></messaging>
</subscribe>
This also adds hotmail notifications:
NFY 0 MSGR\HOTMAIL 393
Context: 41A95655061FACAA
MIME-Version: 1.0
Content-Type: text/x-msmsgsemailnotification; charset=UTF-8
From: someone
Message-URL: /cgi-bin/getmsg?msg=82B54FDE-XXXX-XXXX-XXXX-XXXXXXXXXXXX&start=0&len=2691&curmbox=ACTIVE
Post-URL: https://login.live.com/ppsecure/md5auth.srf?lc=1033
Subject: Re: =?UTF-8?Q?subject?=
Dest-Folder: ACTIVE
From-Addr: [email protected]
id: 0