diff src/protocols/oscar/oscar.c @ 5537:3becf79500d2

[gaim-migrate @ 5937] This is: -AIM over OSCAR use Christian's new, kick ass gaim_notify_email stuff for new mail notification. This should be good, but it's kind of a pain to test. Let me know if you have any problems -Minor fix to the translation README -2 minor changes to the doxygen of 2 major header files (this means you'll have to recompile a lot of files :-) ) -If your global proxy setting is "No Proxy" and your global proxy host is empty, but $http_proxy is set to something, gaim used to switch your global proxy setting to "HTTP." It no longer does this. This makes more sense to me. If you disagree, please let me know--this is open to debate, and what not. Also, the use of environmental proxy settings will be changed a bit in the next day or two committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 27 May 2003 03:38:52 +0000
parents e9b9fbf89c42
children cfa4159e5cde
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c	Tue May 27 02:58:56 2003 +0000
+++ b/src/protocols/oscar/oscar.c	Tue May 27 03:38:52 2003 +0000
@@ -3445,11 +3445,13 @@
 	va_end(ap);
 
 	if (emailinfo) {
+		gchar *to = g_strdup_printf("%s@%s", gc->username, emailinfo->domain);
 		if (emailinfo->unread) {
 			if (havenewmail)
-				connection_has_mail(gc, emailinfo->nummsgs ? emailinfo->nummsgs : -1, NULL, NULL, emailinfo->url);
+				gaim_notify_emails(gc, emailinfo->nummsgs, FALSE, NULL, NULL, &to, &emailinfo->url, NULL, NULL);
 		} else
-			connection_has_mail(gc, 0, NULL, NULL, emailinfo->url);
+			gaim_notify_emails(gc, 0, FALSE, NULL, NULL, &to, &emailinfo->url, NULL, NULL);
+		g_free(to);
 	}
 
 	return 1;