Mercurial > pidgin
comparison src/gtknotify.c @ 7665:0351ff7030d0
[gaim-migrate @ 8309]
Felipe Contreras (aka revo aka shx) writes:
" Basically that, currently gaim will not display
international "subjects" or "from" fields from emails,
like "a??a" or "Pa?l".
This implements the propper RFC that specify the format
for those fields."
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 30 Nov 2003 04:17:17 +0000 |
parents | 3a5f89ba0da5 |
children | 42e5d2f4e4b1 |
comparison
equal
deleted
inserted
replaced
7664:e4264f71fac7 | 7665:0351ff7030d0 |
---|---|
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"), |