aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-05-18 23:02:20 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-05-20 01:07:20 +0800
commit5fd22430809036acf607d3d3cd5f4b32c1f1cc81 (patch)
tree460fd37581efc61e5e0caf5772fb26bedbd6a25b /em-format/e-mail-formatter.c
parent366b731a169ac54a0407f5d85879c38ba463398a (diff)
downloadgsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.gz
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.bz2
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.lz
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.xz
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.zst
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.zip
Add e_mail_part_id_has_suffix().
Diffstat (limited to 'em-format/e-mail-formatter.c')
-rw-r--r--em-format/e-mail-formatter.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/em-format/e-mail-formatter.c b/em-format/e-mail-formatter.c
index fb1c069ffa..e2e6da75a3 100644
--- a/em-format/e-mail-formatter.c
+++ b/em-format/e-mail-formatter.c
@@ -405,7 +405,7 @@ mail_formatter_run (EMailFormatter *formatter,
break;
if (part->is_hidden && !part->is_error) {
- if (g_str_has_suffix (part->id, ".rfc822")) {
+ if (e_mail_part_id_has_suffix (part, ".rfc822")) {
link = e_mail_formatter_find_rfc822_end_iter (link);
}
@@ -429,7 +429,7 @@ mail_formatter_run (EMailFormatter *formatter,
* jump to the end of the message, because content
* of the whole message has been formatted by
* message_rfc822 formatter */
- if (ok && g_str_has_suffix (part->id, ".rfc822")) {
+ if (ok && e_mail_part_id_has_suffix (part, ".rfc822")) {
link = e_mail_formatter_find_rfc822_end_iter (link);
if (link == NULL)
@@ -444,8 +444,8 @@ mail_formatter_run (EMailFormatter *formatter,
if (!ok) {
/* We don't want to source these */
- if (g_str_has_suffix (part->id, ".headers") ||
- g_str_has_suffix (part->id, "attachment-bar"))
+ if (e_mail_part_id_has_suffix (part, ".headers") ||
+ e_mail_part_id_has_suffix (part, "attachment-bar"))
continue;
e_mail_formatter_format_as (
@@ -460,11 +460,11 @@ mail_formatter_run (EMailFormatter *formatter,
/* If we just wrote source of a rfc822 message, then jump
* behind the message (otherwise source of all parts
* would be rendered twice) */
- if (g_str_has_suffix (part->id, ".rfc822")) {
+ if (e_mail_part_id_has_suffix (part, ".rfc822")) {
do {
part = link->data;
- if (g_str_has_suffix (part->id, ".rfc822.end"))
+ if (e_mail_part_id_has_suffix (part, ".rfc822.end"))
break;
link = g_list_next (link);