aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter.c
diff options
context:
space:
mode:
Diffstat (limited to 'em-format/e-mail-formatter.c')
-rw-r--r--em-format/e-mail-formatter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c
index ad203d83ad..fb1c069ffa 100644
--- a/em-format/e-mail-formatter.c
+++ b/em-format/e-mail-formatter.c
@@ -396,8 +396,11 @@ mail_formatter_run (EMailFormatter *formatter,
for (link = head; link != NULL; link = g_list_next (link)) {
EMailPart *part = link->data;
+ const gchar *part_id;
gboolean ok;
+ part_id = e_mail_part_get_id (part);
+
if (g_cancellable_is_cancelled (cancellable))
break;
@@ -451,7 +454,7 @@ mail_formatter_run (EMailFormatter *formatter,
/* .message is the entire message. There's nothing more
* to be written. */
- if (g_strcmp0 (part->id, ".message") == 0)
+ if (g_strcmp0 (part_id, ".message") == 0)
break;
/* If we just wrote source of a rfc822 message, then jump