From c025ffbb296501d2da8cba78aa6a14008055cf87 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 16 May 2013 13:10:26 -0400 Subject: Add e_mail_part_get_id(). --- em-format/e-mail-formatter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'em-format/e-mail-formatter.c') 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 -- cgit v1.2.3