aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter-print-headers.c
diff options
context:
space:
mode:
Diffstat (limited to 'em-format/e-mail-formatter-print-headers.c')
-rw-r--r--em-format/e-mail-formatter-print-headers.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/em-format/e-mail-formatter-print-headers.c b/em-format/e-mail-formatter-print-headers.c
index a16264b9bf..8cda0e598f 100644
--- a/em-format/e-mail-formatter-print-headers.c
+++ b/em-format/e-mail-formatter-print-headers.c
@@ -108,8 +108,14 @@ emfpe_headers_format (EMailFormatterExtension *extension,
header->flags | E_MAIL_FORMATTER_HEADER_FLAG_NOLINKS,
"UTF-8");
} else {
- raw_header.value = g_strdup (camel_medium_get_header (
- CAMEL_MEDIUM (context->message), header->name));
+ CamelMimeMessage *message;
+ const gchar *header_value;
+
+ message = context->part_list->message;
+
+ header_value = camel_medium_get_header (
+ CAMEL_MEDIUM (message), header->name);
+ raw_header.value = g_strdup (header_value);
if (raw_header.value && *raw_header.value) {
e_mail_formatter_format_header (formatter, str,
@@ -130,7 +136,7 @@ emfpe_headers_format (EMailFormatterExtension *extension,
raw_header.name = _("Security");
tmp = g_string_new ("");
/* Find first secured part. */
- for (parts_iter = context->parts; parts_iter; parts_iter = parts_iter->next) {
+ for (parts_iter = context->part_list->list; parts_iter; parts_iter = parts_iter->next) {
EMailPart *mail_part = parts_iter->data;
if (mail_part == NULL)
@@ -179,7 +185,7 @@ emfpe_headers_format (EMailFormatterExtension *extension,
/* Count attachments and display the number as a header */
attachments_count = 0;
- for (parts_iter = context->parts; parts_iter; parts_iter = parts_iter->next) {
+ for (parts_iter = context->part_list->list; parts_iter; parts_iter = parts_iter->next) {
EMailPart *mail_part = parts_iter->data;
if (!mail_part)