comparison src/protocols/yahoo/yahoo.c @ 4001:9178da61c19f

[gaim-migrate @ 4201] fix bug where logging in to yahoo causes a blank new mail notification (thanks ZuperDee and faceprint) committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 26 Nov 2002 14:13:11 +0000
parents 3fdfe7872118
children 133cf6424c53
comparison
equal deleted inserted replaced
4000:4f03d0c4fb4d 4001:9178da61c19f
683 else if (pair->key == 18) 683 else if (pair->key == 18)
684 subj = pair->value; 684 subj = pair->value;
685 l = l->next; 685 l = l->next;
686 } 686 }
687 687
688 if (who && email && subj) { 688 if (who && subj && email && *email) {
689 char *from = g_strdup_printf("%s (%s)", who, email); 689 char *from = g_strdup_printf("%s (%s)", who, email);
690 connection_has_mail(gc, -1, from, subj, "http://mail.yahoo.com/"); 690 connection_has_mail(gc, -1, from, subj, "http://mail.yahoo.com/");
691 g_free(from); 691 g_free(from);
692 } else 692 } else if (count > 0)
693 connection_has_mail(gc, count, NULL, NULL, "http://mail.yahoo.com/"); 693 connection_has_mail(gc, count, NULL, NULL, "http://mail.yahoo.com/");
694 } 694 }
695 /* This is the y64 alphabet... it's like base64, but has a . and a _ */ 695 /* This is the y64 alphabet... it's like base64, but has a . and a _ */
696 char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._"; 696 char base64digits[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._";
697 697