# HG changeset patch # User Christian Hammond # Date 1053910344 0 # Node ID 11be8ae32937d19b24aac15b53928b499a6ef840 # Parent 42a20beb80a7867f3aa14294b467d0a3289aaccf [gaim-migrate @ 5920] E-mail notification uses the new API. committer: Tailor Script diff -r 42a20beb80a7 -r 11be8ae32937 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);