aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter-quote.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-02-07 02:59:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-02-07 02:59:55 +0800
commit6a6ad99ba710aaf0202cbc1d0c7fe382a7e2774e (patch)
treecb81cf0916468d9bd90deafecd4edf6d846e6c2f /em-format/e-mail-formatter-quote.c
parentc5fae912d155a7e6247d92b3974a615fd17944f0 (diff)
downloadgsoc2013-evolution-6a6ad99ba710aaf0202cbc1d0c7fe382a7e2774e.tar.gz
gsoc2013-evolution-6a6ad99ba710aaf0202cbc1d0c7fe382a7e2774e.tar.zst
gsoc2013-evolution-6a6ad99ba710aaf0202cbc1d0c7fe382a7e2774e.zip
EMailFormatterQuote: Use e_mail_formatter_find_rfc822_end_iter().
Diffstat (limited to 'em-format/e-mail-formatter-quote.c')
-rw-r--r--em-format/e-mail-formatter-quote.c16
1 files changed, 2 insertions, 14 deletions
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 <camel/camel.h>
#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;
}