From 5fd22430809036acf607d3d3cd5f4b32c1f1cc81 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 18 May 2013 11:02:20 -0400 Subject: Add e_mail_part_id_has_suffix(). --- em-format/e-mail-formatter-message-rfc822.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'em-format/e-mail-formatter-message-rfc822.c') diff --git a/em-format/e-mail-formatter-message-rfc822.c b/em-format/e-mail-formatter-message-rfc822.c index 8e7b1cee8b..01b67c64da 100644 --- a/em-format/e-mail-formatter-message-rfc822.c +++ b/em-format/e-mail-formatter-message-rfc822.c @@ -90,7 +90,7 @@ emfe_message_rfc822_format (EMailFormatterExtension *extension, p_id = e_mail_part_get_id (p); /* Check for nested rfc822 messages */ - if (g_str_has_suffix (p->id, ".rfc822")) { + if (e_mail_part_id_has_suffix (p, ".rfc822")) { gchar *sub_end = g_strconcat (p_id, ".end", NULL); while (link != NULL) { @@ -152,13 +152,13 @@ emfe_message_rfc822_format (EMailFormatterExtension *extension, const gchar *p_id; /* Skip attachment bar */ - if (g_str_has_suffix (part->id, ".attachment-bar")) + if (e_mail_part_id_has_suffix (part, ".attachment-bar")) continue; p_id = e_mail_part_get_id (p); /* Check for nested rfc822 messages */ - if (g_str_has_suffix (p->id, ".rfc822")) { + if (e_mail_part_id_has_suffix (p, ".rfc822")) { gchar *sub_end = g_strconcat (p_id, ".end", NULL); while (link != NULL) { -- cgit