diff 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
line wrap: on
line diff
--- a/src/prpl.c	Mon Oct 14 06:34:42 2002 +0000
+++ b/src/prpl.c	Mon Oct 14 07:47:51 2002 +0000
@@ -412,9 +412,12 @@
 		mailnots = g_slist_append(mailnots, mn);
 	}
 
-	if (count < 0 && from && subject) {
-		g_snprintf(buf, sizeof buf, "%s has mail from %s: %s", gc->username, from, subject);
-	} else if (count) {
+	if (count < 0) {
+		if (from && subject)
+			g_snprintf(buf, sizeof buf, "%s has mail from %s: %s", gc->username, from, subject);
+		else
+			g_snprintf(buf, sizeof buf, "%s has new mail.", gc->username);
+	} else if (count > 0) {
 		g_snprintf(buf, sizeof buf, "%s has %d new message%s.",
 			   gc->username, count, count == 1 ? "" : "s");
 	} else if (mn->email_win) {