adium: 258cdbf1: Applied patch from QuLogic which should ...

thijsalkemade at gmail.com thijsalkemade at gmail.com
Thu Dec 15 11:22:28 EST 2011


----------------------------------------------------------------------
Revision: 258cdbf114369b480f0397dd82b24715a204eb1c
Parent:   b7a1ac61019d1553d175719453fb16d2e991cb80
Author:   thijsalkemade at gmail.com
Date:     12/15/11 11:13:24
Branch:   im.pidgin.adium
URL: http://d.pidgin.im/viewmtn/revision/info/258cdbf114369b480f0397dd82b24715a204eb1c

Changelog: 

Applied patch from QuLogic which should fix double "new mail" notifications on
MSN.

Refs #9876

Changes against parent b7a1ac61019d1553d175719453fb16d2e991cb80

  patched  libpurple/protocols/msn/oim.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/oim.c	2a81eabd7aa57fccd6708da34d6b477abd06a967
+++ libpurple/protocols/msn/oim.c	63186383f8b1b2313cc112f893cc2a7627d51785
@@ -762,8 +762,6 @@ msn_parse_oim_xml(MsnOim *oim, xmlnode *
 msn_parse_oim_xml(MsnOim *oim, xmlnode *node)
 {
 	xmlnode *mNode;
-	xmlnode *iu_node;
-	MsnSession *session = oim->session;
 
 	g_return_if_fail(node != NULL);
 
@@ -774,22 +772,6 @@ msn_parse_oim_xml(MsnOim *oim, xmlnode *
 		return;
 	}
 
-	iu_node = xmlnode_get_child(node, "E/IU");
-
-	if (iu_node != NULL && purple_account_get_check_mail(session->account))
-	{
-		char *unread = xmlnode_get_data(iu_node);
-		const char *passports[2] = { msn_user_get_passport(session->user) };
-		const char *urls[2] = { session->passport_info.mail_url };
-		int count = atoi(unread);
-
-		/* XXX/khc: pretty sure this is wrong */
-		if (count > 0)
-			purple_notify_emails(session->account->gc, count, FALSE, NULL,
-				NULL, passports, urls, NULL, NULL);
-		g_free(unread);
-	}
-
 	for(mNode = xmlnode_get_child(node, "M"); mNode;
 					mNode = xmlnode_get_next_twin(mNode)){
 		char *passport, *msgid, *nickname, *rtime = NULL;


More information about the Commits mailing list