Mercurial > pidgin.yaz
comparison src/gtknotify.c @ 7817:954b986ad3e3
[gaim-migrate @ 8464]
Email parsing changes from Felipe Contreras (revo):
Currently only MSN send email notifications with MIME
fields, so, only decode MIME fields in MSN.
This makes me feel warm.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 09 Dec 2003 01:55:15 +0000 |
parents | 1363f91da9cc |
children | 48dc9f358a91 |
comparison
equal
deleted
inserted
replaced
7816:061b39119a1b | 7817:954b986ad3e3 |
---|---|
213 | 213 |
214 if (count == 1) { | 214 if (count == 1) { |
215 char *from_text = NULL, *subject_text = NULL; | 215 char *from_text = NULL, *subject_text = NULL; |
216 | 216 |
217 if (froms != NULL) { | 217 if (froms != NULL) { |
218 char *from_decoded = gaim_mime_decode_field(*froms); | |
219 from_text = g_strdup_printf( | 218 from_text = g_strdup_printf( |
220 _("<span weight=\"bold\">From:</span> %s\n"), from_decoded); | 219 _("<span weight=\"bold\">From:</span> %s\n"), *froms); |
221 g_free(from_decoded); | |
222 } | 220 } |
223 | 221 |
224 if (subjects != NULL) { | 222 if (subjects != NULL) { |
225 char *subject_decoded = gaim_mime_decode_field(*subjects); | |
226 subject_text = g_strdup_printf( | 223 subject_text = g_strdup_printf( |
227 _("<span weight=\"bold\">Subject:</span> %s\n"), subject_decoded); | 224 _("<span weight=\"bold\">Subject:</span> %s\n"), *subjects); |
228 g_free(subject_decoded); | |
229 } | 225 } |
230 | 226 |
231 label_text = g_strdup_printf( | 227 label_text = g_strdup_printf( |
232 _("<span weight=\"bold\" size=\"larger\">You have mail!</span>" | 228 _("<span weight=\"bold\" size=\"larger\">You have mail!</span>" |
233 "\n\n%s%s%s%s"), | 229 "\n\n%s%s%s%s"), |