aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-part.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-part.c
parent366b731a169ac54a0407f5d85879c38ba463398a (diff)
downloadgsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.gz
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.tar.zst
gsoc2013-evolution-5fd22430809036acf607d3d3cd5f4b32c1f1cc81.zip
Add e_mail_part_id_has_suffix().
Diffstat (limited to 'em-format/e-mail-part.c')
-rw-r--r--em-format/e-mail-part.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/em-format/e-mail-part.c b/em-format/e-mail-part.c
index 95e4929286..945175cca2 100644
--- a/em-format/e-mail-part.c
+++ b/em-format/e-mail-part.c
@@ -211,6 +211,16 @@ e_mail_part_id_has_prefix (EMailPart *part,
return g_str_has_prefix (part->id, prefix);
}
+gboolean
+e_mail_part_id_has_suffix (EMailPart *part,
+ const gchar *suffix)
+{
+ g_return_val_if_fail (part != NULL, FALSE);
+ g_return_val_if_fail (suffix != NULL, FALSE);
+
+ return g_str_has_suffix (part->id, suffix);
+}
+
static EMailPartValidityPair *
mail_part_find_validity_pair (EMailPart *part,
guint32 validity_type)