| 59 |
59 |
| 60 /* If Gmail doesn't tell us who the mail is to, let's use our JID */ |
60 /* If Gmail doesn't tell us who the mail is to, let's use our JID */ |
| 61 to = xmlnode_get_attrib(packet, "to"); |
61 to = xmlnode_get_attrib(packet, "to"); |
| 62 default_tos[0] = jabber_get_bare_jid(to); |
62 default_tos[0] = jabber_get_bare_jid(to); |
| 63 |
63 |
| 64 if (count == 0) { |
|
| 65 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); |
|
| 66 g_free(default_tos[0]); |
|
| 67 return; |
|
| 68 } |
|
| 69 |
|
| 70 message = xmlnode_get_child(child, "mail-thread-info"); |
64 message = xmlnode_get_child(child, "mail-thread-info"); |
| 71 if (!message) { |
65 |
| |
66 if (count == 0 || !message) { |
| 72 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); |
67 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); |
| 73 g_free(default_tos[0]); |
68 g_free(default_tos[0]); |
| 74 return; |
69 return; |
| 75 } |
70 } |
| 76 |
71 |
| 125 } |
120 } |
| 126 |
121 |
| 127 if (i>0) |
122 if (i>0) |
| 128 purple_notify_emails(js->gc, count, count == i, (const char**) subjects, froms, tos, |
123 purple_notify_emails(js->gc, count, count == i, (const char**) subjects, froms, tos, |
| 129 urls, NULL, NULL); |
124 urls, NULL, NULL); |
| 130 else |
125 else |
| 131 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); |
126 purple_notify_emails(js->gc, count, FALSE, NULL, NULL, (const char**) default_tos, NULL, NULL, NULL); |
| 132 |
127 |
| 133 |
128 |
| 134 g_free(to_name); |
129 g_free(to_name); |
| 135 g_free(tos); |
130 g_free(tos); |