Mercurial > pidgin
comparison src/gtknotify.c @ 7679:1363f91da9cc
[gaim-migrate @ 8323]
The real patch that handles mime email stuff from
Felipe Contreras (revo)(shx), after I nagged him a bunch
to change some stuff.
Thanks!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 01 Dec 2003 03:41:50 +0000 |
parents | cf6a7939af78 |
children | 954b986ad3e3 |
comparison
equal
deleted
inserted
replaced
7678:cf6a7939af78 | 7679:1363f91da9cc |
---|---|
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); | |
218 from_text = g_strdup_printf( | 219 from_text = g_strdup_printf( |
219 _("<span weight=\"bold\">From:</span> %s\n"), *froms); | 220 _("<span weight=\"bold\">From:</span> %s\n"), from_decoded); |
221 g_free(from_decoded); | |
220 } | 222 } |
221 | 223 |
222 if (subjects != NULL) { | 224 if (subjects != NULL) { |
225 char *subject_decoded = gaim_mime_decode_field(*subjects); | |
223 subject_text = g_strdup_printf( | 226 subject_text = g_strdup_printf( |
224 _("<span weight=\"bold\">Subject:</span> %s\n"), *subjects); | 227 _("<span weight=\"bold\">Subject:</span> %s\n"), subject_decoded); |
228 g_free(subject_decoded); | |
225 } | 229 } |
226 | 230 |
227 label_text = g_strdup_printf( | 231 label_text = g_strdup_printf( |
228 _("<span weight=\"bold\" size=\"larger\">You have mail!</span>" | 232 _("<span weight=\"bold\" size=\"larger\">You have mail!</span>" |
229 "\n\n%s%s%s%s"), | 233 "\n\n%s%s%s%s"), |