From 6a6ad99ba710aaf0202cbc1d0c7fe382a7e2774e Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 6 Feb 2013 13:59:13 -0500 Subject: EMailFormatterQuote: Use e_mail_formatter_find_rfc822_end_iter(). --- em-format/e-mail-formatter-quote.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'em-format') diff --git a/em-format/e-mail-formatter-quote.c b/em-format/e-mail-formatter-quote.c index 1a2d84deba..c8f83860ee 100644 --- a/em-format/e-mail-formatter-quote.c +++ b/em-format/e-mail-formatter-quote.c @@ -21,6 +21,7 @@ #include #include "e-mail-formatter-quote.h" +#include "e-mail-formatter-utils.h" #include "e-mail-part.h" #include "e-mail-part-attachment.h" #include "e-mail-part-utils.h" @@ -110,20 +111,7 @@ mail_formatter_quote_run (EMailFormatter *formatter, } if (g_str_has_suffix (part->id, ".rfc822")) { - gchar *end = g_strconcat (part->id, ".end", NULL); - - while (link != NULL) { - EMailPart *p = link->data; - - if (g_strcmp0 (p->id, end) == 0) - break; - - link = g_list_next (link); - if (link == NULL) - break; - } - g_free (end); - + link = e_mail_formatter_find_rfc822_end_iter (link); continue; } -- cgit v1.2.3