From 0eb8afc1d0cfa27d020a4191f44e400c714d190c Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Fri, 13 Apr 2001 22:08:03 +0000 Subject: Make the (previously unused) get-source command actually do the right 2001-04-13 Jon Trowbridge * camel-filter-search.c (get_source): Make the (previously unused) get-source command actually do the right thing, properly shrouding any passed-in source and falling back to use the source attached to the mime message. 2001-04-13 Jon Trowbridge * filtertypes.xml: Add XML specs for source account filtering. * filter-element.c (filter_element_new_type_name): Recognize type "source", construct a FilterSource. * filter-source.c: Added. A FilterElement for the account e-mail comes from. svn path=/trunk/; revision=9304 --- filter/filter-part.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filter/filter-part.c') diff --git a/filter/filter-part.c b/filter/filter-part.c index 6e7fc7fc2c..c4cc6888b9 100644 --- a/filter/filter-part.c +++ b/filter/filter-part.c @@ -157,7 +157,7 @@ filter_part_xml_create (FilterPart *ff, xmlNodePtr node) && (el = filter_element_new_type_name (type)) != NULL) { filter_element_xml_create (el, n); xmlFree (type); - d(printf ("adding element part %p %s\n", el, el->name)); + d(printf ("adding element part %p %s\n", ff, el, el->name)); ff->elements = g_list_append (ff->elements, el); } else { g_warning ("Invalid xml format, missing/unknown input type"); @@ -432,7 +432,7 @@ filter_part_expand_code (FilterPart *ff, const char *source, GString *out) memcpy (name, newstart+2, len); name[len] = 0; fe = filter_part_find_element (ff, name); - d(printf("expand code: looking up variab le '%s' = %p\n", name, fe)); + d(printf("expand code: looking up variab le '%s' = %p\n", ff, name, fe)); if (fe) { g_string_sprintfa (out, "%.*s", newstart-start, start); filter_element_format_sexp (fe, out); -- cgit v1.2.3