# HG changeset patch # User Christian Hammond # Date 1053913618 0 # Node ID 76ec14ba51d759ac64f8e5f21064251603f820f7 # Parent 11be8ae32937d19b24aac15b53928b499a6ef840 [gaim-migrate @ 5921] Yahoo uses the new mail notification. committer: Tailor Script diff -r 11be8ae32937 -r 76ec14ba51d7 src/protocols/yahoo/yahoo.c --- a/src/protocols/yahoo/yahoo.c Mon May 26 00:52:24 2003 +0000 +++ b/src/protocols/yahoo/yahoo.c Mon May 26 01:46:58 2003 +0000 @@ -666,6 +666,9 @@ int count = 0; GSList *l = pkt->hash; + if (!GAIM_ACCOUNT_CHECK_MAIL(gc->account)) + return; + while (l) { struct yahoo_pair *pair = l->data; if (pair->key == 9) @@ -681,10 +684,18 @@ if (who && subj && email && *email) { char *from = g_strdup_printf("%s (%s)", who, email); - connection_has_mail(gc, -1, from, subj, "http://mail.yahoo.com/"); + + gaim_notify_email(gc, subj, from, gc->username, + "http://mail.yahoo.com/", NULL, NULL); + g_free(from); - } else if (count > 0) - connection_has_mail(gc, count, NULL, NULL, "http://mail.yahoo.com/"); + } else if (count > 0) { + const char *to = gc->username; + const char *url = "http://mail.yahoo.com/"; + + gaim_notify_emails(gc, count, FALSE, NULL, NULL, &to, &url, + NULL, NULL); + } } /* This is the y64 alphabet... it's like base64, but has a . and a _ */ char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._";