# HG changeset patch # User Christian Hammond # Date 1053910344 0 # Node ID d49ba63410e36c1c3b5512552e878910bebbad76 # Parent 5ac50d7f36890f4518276b98b7bac47589b39611 [gaim-migrate @ 5920] E-mail notification uses the new API. diff -r 5ac50d7f3689 -r d49ba63410e3 src/protocols/msn/notification.c --- a/src/protocols/msn/notification.c Mon May 26 00:51:23 2003 +0000 +++ b/src/protocols/msn/notification.c Mon May 26 00:52:24 2003 +0000 @@ -1224,6 +1224,9 @@ return TRUE; } + if (!GAIM_ACCOUNT_CHECK_MAIL(session->account)) + return TRUE; + if (session->passport_info.file == NULL) { msn_servconn_send_command(servconn, "URL", "INBOX"); @@ -1236,9 +1239,13 @@ unread = g_hash_table_lookup(table, "Inbox-Unread"); - if (unread != NULL) - connection_has_mail(gc, atoi(unread), NULL, NULL, - session->passport_info.file); + if (unread != NULL) { + const char *passport = msn_user_get_passport(session->user); + const char *url = session->passport_info.file; + + gaim_notify_emails(gc, atoi(unread), FALSE, NULL, NULL, + &passport, &url, NULL, NULL); + } g_hash_table_destroy(table); @@ -1258,6 +1265,9 @@ return TRUE; } + if (!GAIM_ACCOUNT_CHECK_MAIL(session->account)) + return TRUE; + if (session->passport_info.file == NULL) { msn_servconn_send_command(servconn, "URL", "INBOX"); @@ -1271,13 +1281,8 @@ from = g_hash_table_lookup(table, "From"); subject = g_hash_table_lookup(table, "Subject"); - if (from == NULL || subject == NULL) { - connection_has_mail(gc, 1, NULL, NULL, session->passport_info.file); - } - else { - connection_has_mail(gc, -1, from, subject, - session->passport_info.file); - } + gaim_notify_email(gc, subject, from, msn_user_get_passport(session->user), + session->passport_info.file, NULL, NULL); g_hash_table_destroy(table);