aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-autofilter.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2004-05-06 04:27:55 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-05-06 04:27:55 +0800
commit8b4ba053eb05318b6a85c72232602ef5fba49dd8 (patch)
tree5987b372db2a1d0de462336a1198203f89cee87a /mail/mail-autofilter.c
parent60a9d81314d2d74f385ac2e3d6060bcb4df5af25 (diff)
downloadgsoc2013-evolution-8b4ba053eb05318b6a85c72232602ef5fba49dd8.tar.gz
gsoc2013-evolution-8b4ba053eb05318b6a85c72232602ef5fba49dd8.tar.zst
gsoc2013-evolution-8b4ba053eb05318b6a85c72232602ef5fba49dd8.zip
Removed. (rule_from_message): Removed the AUTO_THREAD bit.
2004-05-05 Jeffrey Stedfast <fejj@ximian.com> * mail-autofilter.c (rule_match_thread): Removed. (rule_from_message): Removed the AUTO_THREAD bit. * em-folder-view.c: Removed vFolder/Filter on Thread. These were both broken. (struct _filter_data): Removed a bunch of data members since most of them weren't used. svn path=/trunk/; revision=25810
Diffstat (limited to 'mail/mail-autofilter.c')
-rw-r--r--mail/mail-autofilter.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/mail/mail-autofilter.c b/mail/mail-autofilter.c
index 71443f431c..469c7ce55b 100644
--- a/mail/mail-autofilter.c
+++ b/mail/mail-autofilter.c
@@ -223,28 +223,6 @@ rule_match_mlist(RuleContext *context, FilterRule *rule, const char *mlist)
}
static void
-rule_match_thread (RuleContext *context, FilterRule *rule, const char *msgid)
-{
- FilterElement *element;
- FilterPart *part;
-
- if (msgid[0] == 0)
- return;
-
- part = rule_context_create_part (context, "header");
- filter_rule_add_part (rule, part);
-
- element = filter_part_find_element (part, "header-type");
- filter_option_set_current ((FilterOption *) element, "contains");
-
- element = filter_part_find_element (part, "header-field");
- filter_input_set_value ((FilterInput *) element, "References");
-
- element = filter_part_find_element (part, "word");
- filter_input_set_value ((FilterInput *) element, msgid);
-}
-
-static void
rule_from_message (FilterRule *rule, RuleContext *context, CamelMimeMessage *msg, int flags)
{
CamelInternetAddress *addr;
@@ -296,30 +274,6 @@ rule_from_message (FilterRule *rule, RuleContext *context, CamelMimeMessage *msg
}
g_free(mlist);
}
- if (flags & AUTO_THREAD) {
- const char *msgid = NULL, *refs = NULL;
- char *name;
-
- if (!(refs = camel_medium_get_header ((CamelMedium *) msg, "References"))) {
- if (!(refs = camel_medium_get_header ((CamelMedium *) msg, "In-Reply-To")))
- msgid = camel_mime_message_get_message_id (msg);
- }
-
- if (refs || msgid) {
- struct _camel_header_references *r = NULL;
-
- if (refs) {
- r = camel_header_references_decode (refs);
- msgid = r->id;
- }
-
- rule_match_thread (context, rule, msgid);
- name = g_strdup_printf (_("Replies to %s"), msgid);
-
- if (r)
- camel_header_references_list_clear (&r);
- }
- }
}
FilterRule *