aboutsummaryrefslogtreecommitdiff
path: root/libsylph
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
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')
-rw-r--r--libsylph/utils.c16
-rw-r--r--libsylph/utils.h3
2 files changed, 19 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;
diff --git a/libsylph/utils.h b/libsylph/utils.h
index bc704e8e..8ef85896 100644
--- a/libsylph/utils.h
+++ b/libsylph/utils.h
@@ -276,6 +276,9 @@ void extract_list_id_str (gchar *str);
gchar *normalize_address_field (const gchar *str);
+gboolean address_equal (const gchar *addr1,
+ const gchar *addr2);
+
GSList *address_list_append_orig (GSList *addr_list,
const gchar *str);
GSList *address_list_append (GSList *addr_list,