aboutsummaryrefslogtreecommitdiff
path: root/libsylph/utils.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-26 08:29:50 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-26 08:29:50 +0000
commit9aa18447c97fffa8f46dbc8752ddf3b5dcbdd4f1 (patch)
tree3492d164dad2e2397e74af466882ca47ae014ddc /libsylph/utils.c
parent3a222b6d435f8720c2c0fa9932862c0e6434b0c2 (diff)
modification for ML post with Reply-To.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@688 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/utils.c')
-rw-r--r--libsylph/utils.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libsylph/utils.c b/libsylph/utils.c
index 95bc237f..0ad23c3a 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -822,6 +822,22 @@ gchar *normalize_address_field(const gchar *str)
return ret_str;
}
+gboolean address_equal(const gchar *addr1, const gchar *addr2)
+{
+ gchar *addr1_, *addr2_;
+
+ if (!addr1 || !addr2)
+ return FALSE;
+
+ Xstrdup_a(addr1_, addr1, return FALSE);
+ Xstrdup_a(addr2_, addr2, return FALSE);
+
+ extract_address(addr1_);
+ extract_address(addr2_);
+
+ return strcmp(addr1_, addr2_) == 0;
+}
+
GSList *address_list_append_orig(GSList *addr_list, const gchar *str)
{
const gchar *p = str, *q;