Mercurial > pidgin
comparison src/prpl.c @ 3694:e941bfbacf7c
[gaim-migrate @ 3824]
Adds an option for unread mail notification for AIM over oscar. Yippy.
This involves making a connection to the email AIM servers (parallel to
chatnav, bos, auth, ads, etc.). Also added were functions n' stuff to
handle getting mail status updates.
AIM does this in a very silly way. They only tell you how many messages
you have when you sign on, so I had to change connection_has_mail so it
will just say "bleh has new mail," without saying the number of new
messages.
Also, I haven't really looked into having you auto-login to webmail,
though it is possible. This is good for now.
Oh, and since I'm sure people will ask... AIM screen names come with an
email account @netscape.net. You have to sign in to netscape.net to
activate it.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 14 Oct 2002 07:47:51 +0000 |
parents | 6fe1d751b494 |
children | a20bf3d247ff |
comparison
equal
deleted
inserted
replaced
3693:2d1b14529fa2 | 3694:e941bfbacf7c |
---|---|
410 mn = g_new0(struct mail_notify, 1); | 410 mn = g_new0(struct mail_notify, 1); |
411 mn->gc = gc; | 411 mn->gc = gc; |
412 mailnots = g_slist_append(mailnots, mn); | 412 mailnots = g_slist_append(mailnots, mn); |
413 } | 413 } |
414 | 414 |
415 if (count < 0 && from && subject) { | 415 if (count < 0) { |
416 g_snprintf(buf, sizeof buf, "%s has mail from %s: %s", gc->username, from, subject); | 416 if (from && subject) |
417 } else if (count) { | 417 g_snprintf(buf, sizeof buf, "%s has mail from %s: %s", gc->username, from, subject); |
418 else | |
419 g_snprintf(buf, sizeof buf, "%s has new mail.", gc->username); | |
420 } else if (count > 0) { | |
418 g_snprintf(buf, sizeof buf, "%s has %d new message%s.", | 421 g_snprintf(buf, sizeof buf, "%s has %d new message%s.", |
419 gc->username, count, count == 1 ? "" : "s"); | 422 gc->username, count, count == 1 ? "" : "s"); |
420 } else if (mn->email_win) { | 423 } else if (mn->email_win) { |
421 gtk_widget_destroy(mn->email_win); | 424 gtk_widget_destroy(mn->email_win); |
422 return; | 425 return; |