Mercurial > pidgin
comparison src/protocols/msn/notification.c @ 7699:04f9c750657f
[gaim-migrate @ 8344]
" There is an irritating typo that causes a "hidden" form
field in the temp html file used for redirecting to
hotmail to appear visible. Very short patch attached :)"
--Bill Crawford (billcrawford)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 02 Dec 2003 14:25:55 +0000 |
parents | 3a48ade4f510 |
children | 954b986ad3e3 |
comparison
equal
deleted
inserted
replaced
7698:e9af98f197af | 7699:04f9c750657f |
---|---|
1808 fprintf(fd, "<input type=\"hidden\" name=\"auth\" value=\"%s\">\n", | 1808 fprintf(fd, "<input type=\"hidden\" name=\"auth\" value=\"%s\">\n", |
1809 session->passport_info.mspauth); | 1809 session->passport_info.mspauth); |
1810 fprintf(fd, "<input type=\"hidden\" name=\"creds\" value=\"%s\">\n", | 1810 fprintf(fd, "<input type=\"hidden\" name=\"creds\" value=\"%s\">\n", |
1811 sendbuf); /* TODO Digest me (huh? -- ChipX86) */ | 1811 sendbuf); /* TODO Digest me (huh? -- ChipX86) */ |
1812 fprintf(fd, "<input type=\"hidden\" name=\"svc\" value=\"mail\">\n"); | 1812 fprintf(fd, "<input type=\"hidden\" name=\"svc\" value=\"mail\">\n"); |
1813 fprintf(fd, "<input type=\"hiden\" name=\"js\" value=\"yes\">\n"); | 1813 fprintf(fd, "<input type=\"hidden\" name=\"js\" value=\"yes\">\n"); |
1814 fprintf(fd, "</form></body>\n"); | 1814 fprintf(fd, "</form></body>\n"); |
1815 fprintf(fd, "</html>\n"); | 1815 fprintf(fd, "</html>\n"); |
1816 | 1816 |
1817 if (fclose(fd)) { | 1817 if (fclose(fd)) { |
1818 gaim_debug(GAIM_DEBUG_ERROR, "msn", | 1818 gaim_debug(GAIM_DEBUG_ERROR, "msn", |
2024 table = msn_message_get_hashtable_from_body(msg); | 2024 table = msn_message_get_hashtable_from_body(msg); |
2025 | 2025 |
2026 unread = g_hash_table_lookup(table, "Inbox-Unread"); | 2026 unread = g_hash_table_lookup(table, "Inbox-Unread"); |
2027 | 2027 |
2028 if (unread != NULL) { | 2028 if (unread != NULL) { |
2029 const char *passport = msn_user_get_passport(session->user); | |
2030 const char *url = session->passport_info.file; | |
2031 int count = atoi(unread); | 2029 int count = atoi(unread); |
2032 | 2030 |
2033 if (count != 0) | 2031 if (count != 0) |
2034 { | 2032 { |
2033 const char *passport = msn_user_get_passport(session->user); | |
2034 const char *file = session->passport_info.file; | |
2035 gchar *url; | |
2036 while (*file && *file == '/') | |
2037 ++file; | |
2038 url = g_strconcat ("file:///", file, 0); | |
2035 gaim_notify_emails(gc, atoi(unread), FALSE, NULL, NULL, | 2039 gaim_notify_emails(gc, atoi(unread), FALSE, NULL, NULL, |
2036 &passport, &url, NULL, NULL); | 2040 &passport, &url, NULL, NULL); |
2041 g_free (url); | |
2037 } | 2042 } |
2038 } | 2043 } |
2039 | 2044 |
2040 g_hash_table_destroy(table); | 2045 g_hash_table_destroy(table); |
2041 | 2046 |