aboutsummaryrefslogtreecommitdiffstats
path: root/filter
Commit message (Collapse)AuthorAgeFilesLines
* Remove Viewports around the treeviews, since they already have a scrolledEttore Perazzoli2003-10-234-36/+20
| | | | | | | | | | | | * filter.glade: Remove Viewports around the treeviews, since they already have a scrolled window around them and the viewports cause a double bevel to appear. * rule-editor.c (rule_editor_treeview_new): Make the scrolled window have a GTK_SHADOW_IN shadow. * vfolder-rule.c (vfolder_editor_sourcelist_new): Likewise svn path=/trunk/; revision=22997
* Merge new-ui-branch into the trunk.Ettore Perazzoli2003-10-224-40/+60
| | | | svn path=/trunk/; revision=22966
* Listen to the "value-changed" signal rather than the "changed" signal.Jeffrey Stedfast2003-09-232-1/+6
| | | | | | | | | 2003-09-22 Jeffrey Stedfast <fejj@ximian.com> * filter-int.c (get_widget): Listen to the "value-changed" signal rather than the "changed" signal. Fixes bug #48166. svn path=/trunk/; revision=22646
* type should be a GType. (rule_context_add_rule_set): Likewise. UpdateJeremy Katz2003-09-173-6/+13
| | | | | | | | | | | 2003-09-16 Jeremy Katz <katzj@redhat.com> * rule-context.c (rule_context_add_part_set): type should be a GType. (rule_context_add_rule_set): Likewise. * rule-context.h: Update prototypes. Use GType instead of int for type in _part_set_map and _rule_set_map. svn path=/trunk/; revision=22593
* forgot to commit. new search types xml file.Michael Zucci2003-09-171-0/+529
| | | | svn path=/trunk/; revision=22586
* ** See Natzilla task #47524Not Zed2003-09-164-5/+41
| | | | | | | | | | | | | | | | | | 2003-09-15 Not Zed <NotZed@Ximian.com> ** See Natzilla task #47524 * filter-rule.h (FilterRule): add a system bit, for rules that shouldn't be edited/saved. * rule-context.c (load): check for ruleset maps in the system file, and if they exist, load in as system rules. (save): ignore system rules if they exist. * searchtypes.xml: Added a search-specific types folder. Also contains system searches that cannot be deleted. svn path=/trunk/; revision=22581
* ** See bug #42636.Not Zed2003-08-063-4/+20
| | | | | | | | | | | | | | | | | | 2003-08-05 Not Zed <NotZed@Ximian.com> ** See bug #42636. * vfoldertypes.xml: Fix some of the subject rules, they were missing matching ')'s. 2003-08-01 Not Zed <NotZed@Ximian.com> ** See bug #47208. * filter-code.c (build_code): wrap the expression in a match-all so boolean expressions work properly for folder searches. svn path=/trunk/; revision=22090
* Use EVO_MARSHAL_RULEDan Winship2003-07-242-11/+5
| | | | | | * Makefile.am: Use EVO_MARSHAL_RULE svn path=/trunk/; revision=21919
* free current_url.Larry Ewing2003-06-142-1/+6
| | | | | | | | 2003-06-13 Larry Ewing <lewing@ximian.com> * filter-source.c (filter_source_finalize): free current_url. svn path=/trunk/; revision=21435
* Put the ChangeLog.pre-1-4 in the Makefiles.Ettore Perazzoli2003-06-131-2/+7
| | | | svn path=/trunk/; revision=21426
* stat the user file before parsing.Mike Kestner2003-06-112-1/+8
| | | | | | | | 2003-06-11 Mike Kestner <mkestner@ximian.com> * rule-context.c (load): stat the user file before parsing. svn path=/trunk/; revision=21408
* Fixes some leaks from bug #43883.Jeffrey Stedfast2003-06-104-6/+28
| | | | | | | | | | | | | | | | | | | | 2003-06-06 Jeffrey Stedfast <fejj@ximian.com> Fixes some leaks from bug #43883. * filter-file.c (xml_decode): Free file->path and set it to NULL before entering the loop to decode it. This way if the value is already set we don't leak it. Set file->path = g_strdup (str ? str : ""); and then xmlFree the str. 2003-05-21 Jeffrey Stedfast <fejj@ximian.com> * filter-source.c (filter_source_get_sources): Same as below. * filter-label.c (xml_create): Unref the gconf client when we're finished with it. svn path=/trunk/; revision=21390
* Roll over ChangeLogs.Ettore Perazzoli2003-06-102-2967/+2967
| | | | svn path=/trunk/; revision=21387
* Reverted unwanted commitRodrigo Moya2003-05-141-22/+22
| | | | svn path=/trunk/; revision=21168
* Updated NEWSRodrigo Moya2003-05-141-22/+22
| | | | svn path=/trunk/; revision=21167
* Format the colour string in a way that gdk_color_parse() will handle.Jeffrey Stedfast2003-05-072-1/+7
| | | | | | | | | | 2003-05-05 Jeffrey Stedfast <fejj@ximian.com> * filter-colour.c (format_sexp): Format the colour string in a way that gdk_color_parse() will handle. Apparently it no longer handles rgb:<red>/<green>/<blue>? Fixes bug #42345. svn path=/trunk/; revision=21115
* Fix for bug #41578.Jeffrey Stedfast2003-04-304-11/+28
| | | | | | | | | | | | | | | | | | | | | 2003-04-24 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #41578. * rule-editor.c (rule_move): Pass re->source instead of re->current->source to rule_context_get_rank_rule(). Also updated to pass re->source to rule_context_rank_rule(). (rule_editor_play_undo): Updated to pass re->source to rule_context_rank_rule(). * rule-context.c (rule_context_rank_rule): Now takes a 'source' argument rather than using rule->source (vfolder editor lists rules of all sources, not just same-source rules). (revert): Pass frule->source/part->source to rule_context_rank_rule() - might not be right but should preserve the prior behaviour at least. svn path=/trunk/; revision=21006
* removed debug spew.Not Zed2003-04-233-6/+55
| | | | | | | | | | | | | | | | | | 2003-04-18 Not Zed <NotZed@Ximian.com> * rule-editor.c (d): removed debug spew. * addresses #41398 * vfolder-rule.c (format_source): helper function to decode a url into a more user-friendly format. (source_add, get_widget): add the formatted data as another column to the table. (vfolder_editor_sourcelist_new): add another column to the table, a formatted uri as well as the raw one. (d): turned off debug vomit while i'm here. svn path=/trunk/; revision=20929
* updated the bug list that my last commit fixed (since more bugs have been ↵Jeffrey Stedfast2003-04-121-1/+1
| | | | | | submitted that were fixed by that previous fix). svn path=/trunk/; revision=20830
* added more bug #'sJeffrey Stedfast2003-04-121-2/+2
| | | | svn path=/trunk/; revision=20826
* Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156.Jeffrey Stedfast2003-04-128-42/+78
| | | | | | | | | | | | | | | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156. * filter-filter.c (get_widget): Same as with filter-rule. * filter-rule.c (get_widget): Changed border widths of frame vboxes and other padding to comply with the HIG. * rule-editor.c (rule_add): Change window border and padding around the 'rules' widget to comply with the HIG. (rule_edit): Same. (rule_editor_construct): Same here as well. * filter.glade: Many HIG compliance fixes. svn path=/trunk/; revision=20823
* cast warning.Not Zed2003-03-282-1/+5
| | | | | | | | 2003-03-28 Not Zed <NotZed@Ximian.com> * filter-datespec.c (button_clicked): cast warning. svn path=/trunk/; revision=20555
* Loop over child nodes here too in order to not be affected by libxml2Jeffrey Stedfast2003-03-273-20/+36
| | | | | | | | | | | | 2003-03-26 Jeffrey Stedfast <fejj@ximian.com> * filter-file.c (xml_decode): Loop over child nodes here too in order to not be affected by libxml2 crack. * filter-source.c (xml_decode): Fixed to disreguard libxml2 crack. (get_widget): Use strcmp instead of e_url_equal(). svn path=/trunk/; revision=20523
* (button_clicked): Fix this so we don't get stuck insideDan Winship2003-03-212-13/+7
| | | | | | gtk_dialog_run's main loop forever. svn path=/trunk/; revision=20433
* Change the strings in the timespans array from "second" / "seconds" to "1Dan Winship2003-03-212-9/+17
| | | | | | | | | | * filter-datespec.c (timespans, set_button): Change the strings in the timespans array from "second" / "seconds" to "1 second ago" / "%d seconds ago", etc, and update the code in set_button that uses them. Fixes #36245, translation clash between the "second" here and the one in the calendar (where it's used as "2nd"). svn path=/trunk/; revision=20432
* Don't return here - this is a void function. (rule_editor_set_source):Jeffrey Stedfast2003-03-202-2/+8
| | | | | | | | | | 2003-03-20 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_editor_set_sensitive): Don't return here - this is a void function. (rule_editor_set_source): Same. svn path=/trunk/; revision=20429
* use the same code as in filter-rule to enforce unique names for allNot Zed2003-03-182-1/+18
| | | | | | | | | 2003-03-18 Not Zed <NotZed@Ximian.com> * rule-context.c (new_rule_response): use the same code as in filter-rule to enforce unique names for all rules/vfolders. svn path=/trunk/; revision=20332
* Set the default window size to something reasonable (350x400?). Fixes bugJeffrey Stedfast2003-03-182-0/+4
| | | | | | | | | 2003-03-17 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_editor_construct): Set the default window size to something reasonable (350x400?). Fixes bug #39808. svn path=/trunk/; revision=20323
* Fixed to work properly. Fixes bug #39654.Jeffrey Stedfast2003-03-182-17/+27
| | | | | | | | | 2003-03-17 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (source_remove): Fixed to work properly. Fixes bug #39654. svn path=/trunk/; revision=20321
* Always add a Cancel button here, but if !enable_undo - make the responseJeffrey Stedfast2003-03-184-43/+55
| | | | | | | | | | | | 2003-03-17 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_editor_construct): Always add a Cancel button here, but if !enable_undo - make the response id GTK_RESPONSE_CANCEL rather than GTK_RESPONSE_REJECT (which does undo). This mimics the behaviour that was done in the mail/ code previously. Fixes bug #39809. svn path=/trunk/; revision=20315
* go to the proper level of child node before looking for rule sets, fix forNot Zed2003-03-102-216/+222
| | | | | | | | | 2003-03-11 Not Zed <NotZed@Ximian.com> * rule-context.c (revert): go to the proper level of child node before looking for rule sets, fix for #39165 to make 'cancel' work. svn path=/trunk/; revision=20230
* Fixes for bug #39170Jeffrey Stedfast2003-03-062-3/+12
| | | | | | | | | | | | | 2003-03-06 Jeffrey Stedfast <fejj@ximian.com> Fixes for bug #39170 * filter-element.c (filter_element_xml_create): Remove return keyword. (filter_element_build_code): Same. (filter_element_format_sexp): Here too. svn path=/trunk/; revision=20189
* Change to use EAccountList, etc.Not Zed2003-02-242-52/+28
| | | | | | | | | 2003-02-20 Not Zed <NotZed@Ximian.com> * filter-source.c (filter_source_get_sources): Change to use EAccountList, etc. svn path=/trunk/; revision=20014
* Get rid of the need for the GTK_WIDGET_DESTROYED() check.Jeffrey Stedfast2003-02-132-17/+15
| | | | | | | | | 2003-02-12 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (source_add): Get rid of the need for the GTK_WIDGET_DESTROYED() check. svn path=/trunk/; revision=19898
* Use g_object_new() instead of gtk_type_new().Jeffrey Stedfast2003-02-089-16/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-07 Jeffrey Stedfast <fejj@ximian.com> * filter-editor.c (filter_editor_new): Use g_object_new() instead of gtk_type_new(). * vfolder-editor.c (vfolder_editor_new): Use g_object_new() instead of gtk_type_new(). * score-editor.c (score_editor_new): Use g_object_new() instead of gtk_type_new(). * rule-editor.c (rule_editor_new): Use g_object_new() instead of gtk_type_new(). (rule_add): Use gtk_window_set_resizable() instead of the deprecated gtk_window_set_policy(). (rule_edit): Same here. (rule_editor_construct): Here too. * rule-context.c (rule_context_add_rule_gui): Use gtk_window_set_resizable() instead of the deprecated gtk_window_set_policy(). svn path=/trunk/; revision=19847
* Defined in configure.in now (filterdir): Define using privdatadirDan Winship2003-02-062-2/+6
| | | | | | | * Makefile.am (gladedir): Defined in configure.in now (filterdir): Define using privdatadir svn path=/trunk/; revision=19776
* (gladedir): Version using $(BASE_VERSION).Ettore Perazzoli2003-01-232-2/+7
| | | | | | (filterdir): Likewise. svn path=/trunk/; revision=19559
* dont re-use 'widget', its the return value!Not Zed2003-01-162-7/+12
| | | | | | | | | 2003-01-15 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (get_widget): dont re-use 'widget', its the return value! svn path=/trunk/; revision=19488
* Back to using e_xml_save_file().Jeffrey Stedfast2003-01-162-3/+5
| | | | | | | | 2003-01-15 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (save): Back to using e_xml_save_file(). svn path=/trunk/; revision=19483
* Change dialog from OK/Cancel to Cancel/OK to match HIG. (rule_edit):Ettore Perazzoli2003-01-154-10/+33
| | | | | | | | | | | | | | | * rule-editor.c (rule_add): Change dialog from OK/Cancel to Cancel/OK to match HIG. (rule_edit): Likewise. (rule_editor_construct): Likewise. * rule-context.c (rule_context_add_rule_gui): Change dialog from OK/Cancel to Cancel/OK to match HIG. * filter-datespec.c (button_clicked): Change dialog from OK/Cancel to Cancel/OK to match HIG. svn path=/trunk/; revision=19470
* more bug #'sJeffrey Stedfast2003-01-041-1/+1
| | | | svn path=/trunk/; revision=19229
* added a bug # that was fixedJeffrey Stedfast2003-01-041-1/+1
| | | | svn path=/trunk/; revision=19227
* Scroll to the newly added row. (rule_delete): Scroll to the selected row.Jeffrey Stedfast2003-01-042-10/+41
| | | | | | | | | | | | 2003-01-03 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (add_editor_response): Scroll to the newly added row. (rule_delete): Scroll to the selected row. (rule_move): After moving the row, re-select it and then scroll to make sure that it is still visible. svn path=/trunk/; revision=19226
* more fixesJeffrey Stedfast2003-01-033-9/+9
| | | | svn path=/trunk/; revision=19203
* Fixed to build with -DG_DISABLE_DEPRECATED and -DGTK_DISABLE_DEPRECATEDJeffrey Stedfast2003-01-0310-46/+76
| | | | | | | | | 2003-01-02 Jeffrey Stedfast <fejj@ximian.com> Fixed to build with -DG_DISABLE_DEPRECATED and -DGTK_DISABLE_DEPRECATED svn path=/trunk/; revision=19202
* Use an easier method for getting the iter.Jeffrey Stedfast2002-12-132-11/+15
| | | | | | | | | 2002-12-12 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (cursor_changed): Use an easier method for getting the iter. svn path=/trunk/; revision=19108
* New custom function for creating the source_list widget. (get_widget):Jeffrey Stedfast2002-12-134-70/+150
| | | | | | | | | | | | | | | | | 2002-12-12 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (vfolder_editor_sourcelist_new): New custom function for creating the source_list widget. (get_widget): Removed the source_list creation code. * rule-editor.c (rule_editor_construct): Listen to row-activated for double-click events. Also, removed the model creation code out of here. (rule_editor_treeview_new): Moved the treeview and model creation code into here instead, and made the glade widgets into custom widgets. svn path=/trunk/; revision=19106
* updatedJeffrey Stedfast2002-12-051-2/+2
| | | | svn path=/trunk/; revision=19004
* Add a textcellrenderer to display the folders. (get_widget): Remove FIXMENot Zed2002-11-262-1/+8
| | | | | | | | | | 2002-11-26 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (get_widget): Add a textcellrenderer to display the folders. (get_widget): Remove FIXME which was wrong. svn path=/trunk/; revision=18924
* FILTER_RULE_CLASS -> _GET_CLASSNot Zed2002-11-2622-74/+97
| | | | | | | | | | | | | | | | | | | | | | | 2002-11-26 Not Zed <NotZed@Ximian.com> * filter-rule.c (filter_rule_validate): FILTER_RULE_CLASS -> _GET_CLASS * rule-context.c (rule_context_save): RULE_CONTEXT_CLASS -> RULE_CONTEXT_GET_CLASS (rule_context_revert): " * *.[ch]: Ran fix.sh over all files. * rule-editor.c (rule_add): widget:set_parent -> window:set_transient_for (editor_response): renamed from editor_clicked, handle gtk dialog response codes. (rule_edit): connect to response rather than clicked. (rule_editor_construct): Setup a text column in the tree view. Not sure if this can be handled via glade. svn path=/trunk/; revision=18922
* free the list dataJeffrey Stedfast2002-11-211-8/+5
| | | | svn path=/trunk/; revision=18862
* gconfify.Jeffrey Stedfast2002-11-212-26/+42
| | | | | | | | 2002-11-20 Jeffrey Stedfast <fejj@ximian.com> * filter-label.c (xml_create): gconfify. svn path=/trunk/; revision=18861
* Updated to use GtkTreeView.Jeffrey Stedfast2002-11-195-80/+141
| | | | | | | | | | 2002-11-18 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c: Updated to use GtkTreeView. * vfolder-rule.c: Same. svn path=/trunk/; revision=18830
* Get the root node properly.Not Zed2002-11-1316-33/+49
| | | | | | | | | | | | | | | | | | 2002-11-13 Not Zed <NotZed@Ximian.com> * rule-context.c (load): Get the root node properly. * rule-editor.c (rule_add): cast g_object_weak_ref (rule_edit): " * all: xml2 node change - childs->children. Also, ignore 'text' nodes while scanning tree. * rule-context.h: gnome-xml->libxml. * filter-element.h: gnome-xml->libxml svn path=/trunk/; revision=18732
* comment out gtk_destroyed check.Not Zed2002-11-135-25/+86
| | | | | | | | | | | | 2002-11-13 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (source_add): comment out gtk_destroyed check. * filter-label.c: Added back some of the guts. Might not work but some of the code uses it :-/. Gives u a fixed set of non-editable labels. svn path=/trunk/; revision=18729
* Use weak_ref instead of connecting to "destroy". (rule_add): Same.Jeffrey Stedfast2002-11-092-3/+9
| | | | | | | | | | 2002-11-08 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_edit): Use weak_ref instead of connecting to "destroy". (rule_add): Same. svn path=/trunk/; revision=18679
* Use a GtkDialog instead of a GnomeDialog for reporting errors.Jeffrey Stedfast2002-11-0812-121/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-07 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): Use a GtkDialog instead of a GnomeDialog for reporting errors. * rule-editor.c (rule_add): Use a GtkDialog instead of GnomeDialog. (rule_edit): Same. (add_editor_response): Use a GtkMessageDialog for the error reporting instead of a GnomeDialog. (edit_editor_response): Same. * rule-context.c (rule_context_add_rule_gui): Use a GtkDialog instead of a GnomeDialog. * filter-rule.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-input.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-folder.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-file.c (validate): Use GtkDialog instead of GnomeDialog here. * rule-editor.c: Subclass GtkDialog instead of GnomeDialog. * filter-datespec.c (validate): Use GtkDialog instead of GnomeDialog. (button_clicked): Same. svn path=/trunk/; revision=18651
* Use GtkDialog instead of GnomeDialog here.Jeffrey Stedfast2002-11-0810-96/+131
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-07 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-input.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-folder.c (validate): Use GtkDialog instead of GnomeDialog here. * filter-file.c (validate): Use GtkDialog instead of GnomeDialog here. * rule-editor.c: Subclass GtkDialog instead of GnomeDialog. * filter-datespec.c (validate): Use GtkDialog instead of GnomeDialog. (button_clicked): Same. svn path=/trunk/; revision=18635
* Deleted most of the internals until we devise a gconf schema and redesignJeffrey Stedfast2002-11-073-78/+13
| | | | | | | | | | 2002-11-06 Jeffrey Stedfast <fejj@ximian.com> * filter-label.c (xml_create): Deleted most of the internals until we devise a gconf schema and redesign how we want to do this. It didn't work correctly for 1.2 anyway. svn path=/trunk/; revision=18618
* Converted to the glade-2 format.Jeffrey Stedfast2002-11-062-933/+1240
| | | | | | | | 2002-11-06 Jeffrey Stedfast <fejj@ximian.com> * filter.glade: Converted to the glade-2 format. svn path=/trunk/; revision=18585
* use G_STRUCT_OFFSET instead of GTK_SIGNAL_OFFSETJeffrey Stedfast2002-11-062-4/+4
| | | | svn path=/trunk/; revision=18584
* more build fixesJeffrey Stedfast2002-11-063-39/+39
| | | | svn path=/trunk/; revision=18583
* a ton more build fixesJeffrey Stedfast2002-11-067-114/+91
| | | | svn path=/trunk/; revision=18582
* more build fixesJeffrey Stedfast2002-11-064-12/+8
| | | | svn path=/trunk/; revision=18581
* don't #include gnome-defs.hJeffrey Stedfast2002-11-061-1/+0
| | | | svn path=/trunk/; revision=18579
* fixed gnome-stock stuffJeffrey Stedfast2002-11-062-33/+19
| | | | svn path=/trunk/; revision=18578
* more build fixesJeffrey Stedfast2002-11-062-9/+7
| | | | svn path=/trunk/; revision=18577
* build fixesJeffrey Stedfast2002-11-062-36/+27
| | | | svn path=/trunk/; revision=18576
* some build fixesJeffrey Stedfast2002-11-065-21/+22
| | | | svn path=/trunk/; revision=18575
* Ported.Jeffrey Stedfast2002-11-069-212/+202
| | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Jeffrey Stedfast <fejj@ximian.com> * filter-filter.c: Ported. * filter-source.c (get_widget): Don't use e_utf8_to_gtk_string. * filter-option.c (xml_create): Don't use e_utf8_xml1_decode. * filter-input.c (xml_encode): Don't use e_utf8_xml1_encode. (xml_decode): Don't use e_utf8_xml1_decode. (entry_changed): Don't use e_utf8_gtk_entry_get_text. (get_widget): Don't use e_utf8_gtk_entry_set_text. * filter-file.c (xml_encode): Don't use e_utf8_xml1_encode shit. (xml_decode): Don't use e_utf8_xml1_decode. (entry_changed): Don't use e_utf8_gtk_entry_get_text. (get_widget): Don't use e_utf8_gtk_entry_set_text. svn path=/trunk/; revision=18570
* Ported.Jeffrey Stedfast2002-11-0610-320/+304
| | | | | | | | | | | | 2002-11-05 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c: Ported. * vfolder-editor.c: Ported. * vfolder-context.c: Ported. svn path=/trunk/; revision=18569
* oopsJeffrey Stedfast2002-11-061-14/+13
| | | | svn path=/trunk/; revision=18564
* Ported.Jeffrey Stedfast2002-11-065-171/+173
| | | | | | | | 2002-11-05 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c: Ported. svn path=/trunk/; revision=18563
* Ported.Jeffrey Stedfast2002-11-068-202/+192
| | | | | | | | | | | | | 2002-11-05 Jeffrey Stedfast <fejj@ximian.com> * score-rule.c: Ported. * score-editor.c: Ported. Again, thise code seems to be unused. * score-context.c: Ported. Although it seems this code isn't really used anywhere? svn path=/trunk/; revision=18562
* Ported.Jeffrey Stedfast2002-11-055-124/+117
| | | | | | | | 2002-11-04 Jeffrey Stedfast <fejj@ximian.com> * filter-part.c: Ported. svn path=/trunk/; revision=18540
* Also ported.Jeffrey Stedfast2002-11-055-234/+225
| | | | | | | | | | 2002-11-04 Jeffrey Stedfast <fejj@ximian.com> * filter-editor.c: Also ported. * rule-editor.c: Ported to gtk2 and removed unnecessary e_utf8 snot. svn path=/trunk/; revision=18539
* Ported this too.Jeffrey Stedfast2002-11-025-171/+171
| | | | | | | | | | 2002-11-02 Jeffrey Stedfast <fejj@ximian.com> * filter-context.c: Ported this too. * rule-context.c: Ported to glib2/GObject. svn path=/trunk/; revision=18502
* Ported to glib2/GObject.Jeffrey Stedfast2002-11-023-359/+370
| | | | | | | | 2002-11-02 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c: Ported to glib2/GObject. svn path=/trunk/; revision=18501
* Ported to GObject.Jeffrey Stedfast2002-11-0211-426/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-01 Jeffrey Stedfast <fejj@ximian.com> * filter-element.c: Ported to GObject. * filter-input.c: Same. * filter-code.c: This too. * filter-colour.c: And this. * filter-datespec.c: You guessed it. * filter-file.c: And again... * filter-folder.c: Wheee! This is fun... * filter-int.c: Gee, I wonder... * filter-label.c: Also ported. * filter-option.c: Yep, this too. * filter-source.c: And finally this one. svn path=/trunk/; revision=18495
* Ported to GObject.Jeffrey Stedfast2002-11-027-165/+175
| | | | | | | | | | | | | | | | | | 2002-11-01 Jeffrey Stedfast <fejj@ximian.com> * filter-element.c: Ported to GObject. * filter-input.c: Same. * filter-code.c: This too. * filter-colour.c: And this. * filter-datespec.c: You guessed it. * filter-file.c: And again... svn path=/trunk/; revision=18493
* Ported to GObject.Jeffrey Stedfast2002-11-029-355/+362
| | | | | | | | | | | | | | 2002-11-01 Jeffrey Stedfast <fejj@ximian.com> * filter-element.c: Ported to GObject. * filter-input.c: Same. * filter-code.c: This too. * filter-colour.c: And this. svn path=/trunk/; revision=18492
* Adjust default rule editor size to accomodate the menu widening caused byDan Winship2002-11-012-1/+7
| | | | | | | | * rule-editor.c (rule_add): Adjust default rule editor size to accomodate the menu widening caused by "Pipe Message to Shell Command". svn path=/trunk/; revision=18470
* Removed the Run Once filter action.Jeffrey Stedfast2002-10-113-28/+26
| | | | | | | | 2002-10-10 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Removed the Run Once filter action. svn path=/trunk/; revision=18364
* Sync for 1.1.2.Ettore Perazzoli2002-10-081-22/+22
| | | | svn path=/trunk/; revision=18347
* It's a grand old string-review! Nitpicky and minor changes; details in the ↵Aaron Weber2002-10-013-3/+10
| | | | | | appropriate ChangeLog files. svn path=/trunk/; revision=18268
* Use "mail/*" as the allowed folder type.Dan Winship2002-09-263-2/+9
| | | | | | | | | * filter-folder.c (get_widget): Use "mail/*" as the allowed folder type. * vfolder-rule.c (source_add): Likewise svn path=/trunk/; revision=18225
* add empty statement after label to make it ANSI.Dan Winship2002-09-232-0/+6
| | | | | | | * filter-context.c (filter_delete_uri): add empty statement after label to make it ANSI. svn path=/trunk/; revision=18158
* Changed source account, use header-source rather than (= (get-source) ...)Not Zed2002-09-192-2/+7
| | | | | | | | | 2002-09-19 Not Zed <NotZed@Ximian.com> * filtertypes.xml: Changed source account, use header-source rather than (= (get-source) ...) svn path=/trunk/; revision=18113
* Add a Run Once action to run a command only once rather than for eachJeffrey Stedfast2002-09-143-0/+11
| | | | | | | | | 2002-09-13 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Add a Run Once action to run a command only once rather than for each message that has that action applied. svn path=/trunk/; revision=18068
* Dont allow duplicate names. (edit_editor_clicked): Same here. For #24803.Not Zed2002-08-082-2/+34
| | | | | | | | | 2002-08-08 Not Zed <NotZed@Ximian.com> * rule-editor.c (add_editor_clicked): Dont allow duplicate names. (edit_editor_clicked): Same here. For #24803. svn path=/trunk/; revision=17739
* Don't need to save temp/backup files anymore, e_xml_save_file() nowJeffrey Stedfast2002-08-072-15/+10
| | | | | | | | | | | 2002-08-06 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (save): Don't need to save temp/backup files anymore, e_xml_save_file() now handles this for us (well, at least the saving of temp files). I'm not sure we need a backup file anymore now that we can depend on e_xml_save_file() to "Just Work" svn path=/trunk/; revision=17727
* Use e_xml_save_file(). (xml_doc_save): Removed this code and added it toJeffrey Stedfast2002-08-072-300/+11
| | | | | | | | | | | 2002-08-06 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (save): Use e_xml_save_file(). (xml_doc_save): Removed this code and added it to gal so that e-table and all other parts of evolution and so forth could use it. svn path=/trunk/; revision=17720
* New internal function to replace xmlSaveFile. Does proper error checkingJeffrey Stedfast2002-08-062-4/+317
| | | | | | | | | | | | 2002-08-05 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (xml_doc_save): New internal function to replace xmlSaveFile. Does proper error checking and so forth to ensure that the resulting file does not ever get truncated. (save): Cal xml_doc_save rather than xmlSaveFile. Fixes bug #25980. svn path=/trunk/; revision=17703
* Added a datespec editor window.Not Zed2002-08-024-478/+485
| | | | | | | | | | | | 2002-08-02 Not Zed <NotZed@Ximian.com> * filter.glade: Added a datespec editor window. * filter-datespec.c (button_clicked): Rewritten to use glade. Simplified all the code around it as a result, etc, and fixed bug #21798. svn path=/trunk/; revision=17684
* If the value was unset, initialize it to now.Peter Williams2002-08-022-11/+16
| | | | | | | | | 2002-08-01 Peter Williams <peterw@ximian.com> * filter-datespec.c (activate_specified): If the value was unset, initialize it to now. svn path=/trunk/; revision=17670
* (xml_create): Remove unused variable.Ettore Perazzoli2002-08-012-1/+4
| | | | svn path=/trunk/; revision=17662
* Translate the rule name when filling in the name entry.Peter Williams2002-07-312-1/+6
| | | | | | | | | 2002-07-30 Peter Williams <peterw@ximian.com> * filter-rule.c (get_widget): Translate the rule name when filling in the name entry. svn path=/trunk/; revision=17648
* Add xml to unset system flags.Jeffrey Stedfast2002-07-293-0/+28
| | | | | | | | 2002-07-29 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Add xml to unset system flags. svn path=/trunk/; revision=17626
* Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bugJeffrey Stedfast2002-07-276-34/+30
| | | | | | | | | 2002-07-26 Jeffrey Stedfast <fejj@ximian.com> * filter-int.c (xml_decode): Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bug #28113. svn path=/trunk/; revision=17622
* Use GtkType (I only changed this one because I turned on debugging for aJeffrey Stedfast2002-07-255-7/+24
| | | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * filter-int.[c,h]: Use GtkType (I only changed this one because I turned on debugging for a bit). * filter-file.c (validate): Fix the strcmp logic a bit, I had it the exact opposite of what I really wanted. Oops :-) svn path=/trunk/; revision=17586
* Do some minimalistic validation of command-lines (ie, make sure it isn'tJeffrey Stedfast2002-07-254-20/+38
| | | | | | | | | | | | | | 2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * filter-file.c (validate): Do some minimalistic validation of command-lines (ie, make sure it isn't an empty string). * filtertypes.xml: s/shell-exec/shell/ (for the action) and pass "/bin/sh" "-c" as the first 2 arguments. For the shell-exec *rule*, change the name to "pipe-message" and add the "/bin/sh" "-c" arguments too. svn path=/trunk/; revision=17584
* Use the U_() macro to get the UTF-8 translation.Jeffrey Stedfast2002-07-183-21/+28
| | | | | | | | | 2002-07-17 Jeffrey Stedfast <fejj@ximian.com> * filter-label.c (xml_create): Use the U_() macro to get the UTF-8 translation. svn path=/trunk/; revision=17495
* cvs remove.Not Zed2002-07-167-132/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-15 Not Zed <NotZed@Ximian.com> * filter-score.[ch]: cvs remove. * filter-element.c: Remove reference to filter-score.h * vfoldertypes.xml: Fix label vfolder rule as below, also add score and size rules from filtertypes.xml. * filtertypes.xml (score): Use (cast-int (user-tag "score")) to get the value directly, rather than (get-score). (label): Use (user-tag "label") to get the value directly, rather than (get-label). The label is now a string too. * filter-label.c (filter_label_get_type): Make filter-label inherit from filter-option. Which makes more sense doesn't it ... surely. (validate): Removed, optionlists are self-validating. (xml_create): Initialise the list of options from our configuration database. If it isn't working, ignore it and set it up anyway. (filter_label_init): Override the xml type. (filter_label_count): (filter_label_label): (filter_label_index): Some helper functions for external interfaces. All of the mail config/etc should use this. * filter-option.c (free_option): (xml_create): (clone): Made the "value" type in glib memory rather than xml memory space. (filter_option_add): Utility function to add a new option to the list. (clone): Use above function to simplify code. (xml_create): Same here. (xml_encode): Allow subclasses to override the type. svn path=/trunk/; revision=17472
* Changelog is pending some other patch approval so i'm not commiting.Not Zed2002-07-153-290/+0
| | | | | | | | | | 2002-07-15 Not Zed <NotZed@Ximian.com> * filter-score.[ch]: cvs remove. * filter-element.c: Remove reference to filter-score.h svn path=/trunk/; revision=17454
* ** fixes for #10781Not Zed2002-07-1524-139/+496
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-10 Not Zed <NotZed@Ximian.com> ** fixes for #10781 * filter-int.c (xml_encode): (xml_decode): Handle encoding/decoding with a type name, in a manner compatible with the score/label elemtns. (filter_int_new_type): New constructor to create a generic 'int' type. * filter-score.c: Removed. Now relies on using a filter-int with appropriate settings. * filter-label.[ch]: Now inherits from filter-int. * rule-context.c (rule_context_revert): New method to revert a filter context back to a user-file's definition. (revert): implementation. * filter-rule.h: Added new virtual method _eq and wrapper, and fixed all subclasses to implement it. * filter-element.h: Added new virtual method _eq and wrapper. Fixed all subclasses to implement it. svn path=/trunk/; revision=17448
* Make the sound type for (play-sound ) a "file" type rather than "string"Jeffrey Stedfast2002-07-094-3/+20
| | | | | | | | | | | | | | | | | 2002-07-08 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Make the sound type for (play-sound ) a "file" type rather than "string" since users will want to use a filesel to select it most likely. Fixes bug #26921. * filter-file.c (validate): If the type is "file" check that it is a valid file, otheriwse if it is a command-line just ignore it for now. * filter-element.c (filter_element_new_type_name): A filter type of "file" should also use the filter-file object. svn path=/trunk/; revision=17385
* fixed a spelling mistakeJeffrey Stedfast2002-05-251-1/+1
| | | | svn path=/trunk/; revision=17009
* *** empty log message ***Ettore Perazzoli2002-05-251-1/+1
| | | | svn path=/trunk/; revision=17007
* Add libfilter-i18n.h.Ettore Perazzoli2002-05-251-0/+1
| | | | svn path=/trunk/; revision=17006
* Fix English grammar.Ettore Perazzoli2002-05-252-1/+5
| | | | | | * filter-rule.c (get_widget): Fix English grammar. svn path=/trunk/; revision=17005
* Added a label definition.Jeffrey Stedfast2002-05-1712-7/+445
| | | | | | | | | | | | | | | | | 2002-05-16 Jeffrey Stedfast <fejj@ximian.com> * vfoldertypes.xml: Added a label definition. * filtertypes.xml: Added a label definition. * filter-label.c: New filter widget for labels. * filter-element.c (filter_element_new_type_name): Add support for the new label widget. * filter-int.c (format_sexp): Fixed a memory leak. svn path=/trunk/; revision=16936
* Set the path in the entry widget.Jeffrey Stedfast2002-05-102-0/+4
| | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * filter-file.c (get_widget): Set the path in the entry widget. svn path=/trunk/; revision=16741
* Add filter-file.[c,h] to the build.Jeffrey Stedfast2002-05-106-20/+66
| | | | | | | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Add filter-file.[c,h] to the build. * filtertypes.xml: Add a "Command" filter rule. * filter-element.c (filter_element_new_type_name): Add support for type "command" which uses the new FilterFile widget. svn path=/trunk/; revision=16739
* New filter widgets for choosing files and/or command-line's (?). Not yetJeffrey Stedfast2002-05-103-0/+375
| | | | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * filter-file.[c,h]: New filter widgets for choosing files and/or command-line's (?). Not yet hooked up or anything, just for future use. svn path=/trunk/; revision=16735
* Changed to return a GList *, a list of the names of the rules affected byNot Zed2002-05-085-42/+126
| | | | | | | | | | | | | | | | | 2002-05-08 Not Zed <NotZed@Ximian.com> * rule-context.c (rule_context_delete_uri): Changed to return a GList *, a list of the names of the rules affected by the delete, fixed all implementors. (rule_context_rename_uri): Similarly for delete_uri, for api consistency. (rule_context_free_uri_list): Util function to free the return from above. * filter-context.c (filter_delete_uri): Actually implement it, fix for #18826, and some related bugs. svn path=/trunk/; revision=16718
* Get rid of ibex stuff, we no longer use it.Jeffrey Stedfast2002-04-272-1/+4
| | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Get rid of ibex stuff, we no longer use it. svn path=/trunk/; revision=16622
* The score "is" rule should have a value of "is" and not "less-than".Jeffrey Stedfast2002-04-192-1/+6
| | | | | | | | | 2002-04-18 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: The score "is" rule should have a value of "is" and not "less-than". svn path=/trunk/; revision=16514
* Fixed a grammer mistake, or so according to bug #23376. Whatever.Jeffrey Stedfast2002-04-133-19/+25
| | | | | | | | | 2002-04-12 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (get_widget): Fixed a grammer mistake, or so according to bug #23376. Whatever. svn path=/trunk/; revision=16454
* Fix "Follow Up" searches by comparing to the empty string, rather than justRussell Steinthal2002-04-123-4/+16
| | | | | | looking at the string value (which isn't a boolean) (Bug #233340 svn path=/trunk/; revision=16444
* Check that there is a value to setup. Fixes #15470.Not Zed2002-04-102-1/+4
| | | | | | | | | 2002-04-10 Not Zed <NotZed@Ximian.com> * filter-input.c (validate): Check that there is a value to setup. Fixes #15470. svn path=/trunk/; revision=16420
* This needs to return a gboolean (TRUE). (rule_edit): UsingJeffrey Stedfast2002-04-102-5/+15
| | | | | | | | | | | 2002-04-09 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (double_click): This needs to return a gboolean (TRUE). (rule_edit): Using gnome_dialog_set_parent instead of gtk_widget_set_parent_window seems to fix bug #23226. svn path=/trunk/; revision=16415
* Added closing ) for "not starts with" subject rule. Added closing ) forNot Zed2002-04-102-5/+6
| | | | | | | | | | 2002-04-10 Not Zed <NotZed@Ximian.com> * filtertypes.xml: Added closing ) for "not starts with" subject rule. Added closing ) for all the other broken rules too ... svn path=/trunk/; revision=16408
* Added closing ) for "not starts with" subject rule.Not Zed2002-04-103-19/+24
| | | | | | | | | 2002-04-10 Not Zed <NotZed@Ximian.com> * filtertypes.xml: Added closing ) for "not starts with" subject rule. svn path=/trunk/; revision=16406
* Remove the #ifndef SHELL part. Use an EvolutionFolderSelectorButton.Dan Winship2002-04-056-126/+40
| | | | | | | | | | | | | | | | * filter-folder.c: Remove the #ifndef SHELL part. Use an EvolutionFolderSelectorButton. Remove FilterFolder->name since it's no longer needed. * filter-context.c (filter_rename_uri): Update for removal of FilterFolder->name. * filter-element.c (filter_element_copy_value): Likewise. * vfolder-rule.c (source_add): Update for evolution_shell_client_user_select_folder API change. svn path=/trunk/; revision=16354
* Set 're' as the parent window rather than as the parent widget.Jeffrey Stedfast2002-04-023-7/+14
| | | | | | | | | | 2002-04-01 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_edit): Set 're' as the parent window rather than as the parent widget. (add_editor_clicked): Only unref the editor if it is non-NULL. svn path=/trunk/; revision=16317
* Free account_name so we don't leak. Also after getting the source uri, useJeffrey Stedfast2002-03-192-34/+72
| | | | | | | | | | | | | | | 2002-03-18 Jeffrey Stedfast <fejj@ximian.com> * filter-source.c (filter_source_get_sources): Free account_name so we don't leak. Also after getting the source uri, use camel-url to hide unwanted stuff. (xml_decode): Use xmlFree on the buffer returned from xmlNodeGetContent rather than g_free, as I think they are incompatable. Also use camel-url here to hide any params in the decoded url (to make things compatable with what older versions may have saved). svn path=/trunk/; revision=16196
* updated i18n headerJeffrey Stedfast2002-03-071-18/+20
| | | | svn path=/trunk/; revision=15951
* Added beep and play-sound actions.Jeffrey Stedfast2002-03-072-0/+13
| | | | | | | | 2002-03-06 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Added beep and play-sound actions. svn path=/trunk/; revision=15950
* Copy values across to new part.Not Zed2002-02-269-18/+126
| | | | | | | | | | | | | | | | | | 2002-02-26 Not Zed <NotZed@Ximian.com> * filter-filter.c (option_activate): Copy values across to new part. * filter-rule.c (option_activate): copy values across to new part, if they are compatible. * filter-element.c (filter_element_copy_value): New function to copy values (where they can be) from one filter element to another. * filter-part.c (filter_part_copy_values): New function to copy values of a filter part. #1359. svn path=/trunk/; revision=15841
* Re-added contains and not-contains. Also added filter/vfolder rules forJeffrey Stedfast2002-02-134-2/+43
| | | | | | | | | | | 2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * vfoldertypes.xml: * filtertypes.xml: Re-added contains and not-contains. Also added filter/vfolder rules for Flag-for-Followup. svn path=/trunk/; revision=15694
* Re-added contains and not-contains.Jeffrey Stedfast2002-02-134-1/+20
| | | | | | | | 2002-02-12 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Re-added contains and not-contains. svn path=/trunk/; revision=15687
* NeedsReply no longer existsJeffrey Stedfast2002-02-082-6/+0
| | | | svn path=/trunk/; revision=15600
* Same here.Jeffrey Stedfast2002-02-053-66/+9
| | | | | | | | | | | 2002-02-04 Jeffrey Stedfast <fejj@ximian.com> * vfoldertypes.xml: Same here. * filtertypes.xml: For mlist matching, we only want "is" and "is not" because that is all we really support anyway. svn path=/trunk/; revision=15570
* Final cleanup for the CFLAGS and LIBS in the Makefiles.Ettore Perazzoli2002-01-282-5/+6
| | | | svn path=/trunk/; revision=15486
* check if re->edit != NULL before trying to unref it. Fixes a segfault whenMikael Hallendal2002-01-272-1/+10
| | | | | | | | | | 2002-01-26 Mikael Hallendal <micke@codefactory.se> * rule-editor.c (add_editor_clicked): check if re->edit != NULL before trying to unref it. Fixes a segfault when closing the rule editor. svn path=/trunk/; revision=15483
* If we write "" to an xml file, we read back NULL. So if we read back NULL,Not Zed2002-01-152-4/+13
| | | | | | | | | | | 2002-01-15 Not Zed <NotZed@Ximian.com> * filter-input.c (xml_decode): If we write "" to an xml file, we read back NULL. So if we read back NULL, convert it to "". Sigh. This makes a fix for #7801, although new gui may also be required. svn path=/trunk/; revision=15326
* Get the account name because that is the string we'd like to use forJeffrey Stedfast2002-01-043-27/+40
| | | | | | | | | | | | | 2002-01-03 Jeffrey Stedfast <fejj@ximian.com> * filter-source.c (filter_source_get_sources): Get the account name because that is the string we'd like to use for display. (get_widget): Generate the account label the same as we do for the composer's From optionmenu. (filter_source_finalize): Free the account_name. (clone): Pass along the account_name member to filter_add_source svn path=/trunk/; revision=15241
* Make the date comparisons read the same as the ones in filtertypes.xmlJeffrey Stedfast2002-01-033-36/+39
| | | | | | | | | 2002-01-02 Jeffrey Stedfast <fejj@ximian.com> * vfoldertypes.xml: Make the date comparisons read the same as the ones in filtertypes.xml svn path=/trunk/; revision=15232
* Add new action to execute a shell command.Jeffrey Stedfast2001-12-183-18/+29
| | | | | | | | 2001-12-17 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Add new action to execute a shell command. svn path=/trunk/; revision=15138
* Oops... this didn't get committed before.Jon Trowbridge2001-12-101-0/+8
| | | | svn path=/trunk/; revision=14947
* Implements marking messages as "Need Reply".Jon Trowbridge2001-12-102-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements marking messages as "Need Reply". 2001-12-09 Jon Trowbridge <trow@ximian.com> * mail-need-reply.xpm: Added a really, really ugly and awful icon to symbolize "message needs a reply". * Makefile.am (EXTRA_DIST): Added mail-need-reply.xpm. 2001-12-09 Jon Trowbridge <trow@ximian.com> * camel-folder-summary.c: Add "NeedsReply" to the flag_names array for CAMEL_MESSAGE_NEEDS_REPLY. * camel-folder-summary.h: Added CAMEL_MESSAGE_NEEDS_REPLY flag. 2001-12-09 Jon Trowbridge <trow@ximian.com> * vfoldertypes.xml: Add "Needs Reply" option to different status types. * filtertypes.xml: Add "Needs Reply" option to different status types. 2001-12-09 Jon Trowbridge <trow@ximian.com> * message-list.c: #include "art/mail-need-reply.xpm". (ml_tree_value_at): Adjust magic numbers, show "Need Reply" icon if the message needs reply. (message_list_create_extras): Adjust magic numbers to add new icon. (on_click): Changed to toggle between unread, read, and need reply when the status icon is clicked. * mail-callbacks.c (mark_as_needing_reply): Added. (mark_as_not_needing_reply): Added. Add "set" value to struct post_send_data. (composer_sent_cb): Use both "flags" and "set" elements of post_send_data when setting message flags. (mail_reply): Clear "Needs Reply" flag when we actually reply to a message. * folder-browser.c: Changed flag values to be given by bit-shifting (1<<5) vs. base-ten (32). Added CAN_MARK_DOESNT_NEED_REPLY flag. Added "Mark as Needing Reply" and "Mark as Not Needing Reply" elements to context menu. (on_right_click): Hide "Mark as (Not) Needing Reply" context menu elements as appropriate. svn path=/trunk/; revision=14946
* Removed U_. Fixes #15415.Zbigniew Chyla2001-11-282-1/+5
| | | | | | | | 2001-11-15 Zbigniew Chyla <cyba@gnome.pl> * rule-editor.c (set_source): Removed U_. Fixes #15415. svn path=/trunk/; revision=14797
* Hook onto destroy event. (edit_editor_destroyed): IF we get destroyed,Not Zed2001-11-285-27/+76
| | | | | | | | | | | | | | | | | | | | | | | | 2001-11-21 Not Zed <NotZed@Ximian.com> * rule-editor.c (rule_edit): Hook onto destroy event. (edit_editor_destroyed): IF we get destroyed, fake a -1 click event to clean up. (rule_add): hook onto destroy of dialogue. (add_editor_destroyed): Simulate -1 click event to clean up. Fix for #15745. 2001-11-20 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (source_add): Desensitise button while we're running, and if we are destroyed, exit and do nothing when we're done. Fixes crash in #15498. * filter-folder.c (button_clicked): Ref 'ff' around dialogue showing incase we go away before it returns. Also desensitise button that invoked us while its being processed & remove 'is_active' hack. Fixes similar problems to those in #15498. svn path=/trunk/; revision=14794
* Force the user to name the filter.Jeffrey Stedfast2001-11-133-9/+35
| | | | | | | | | | 2001-11-12 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (validate): Force the user to name the filter. * vfolder-rule.c (validate): Force the user to name the vfolder. svn path=/trunk/; revision=14679
* Require gal 0.15.99.8Joe Shaw2001-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-29 Joe Shaw <joe@ximian.com> * configure.in: Require gal 0.15.99.8 * addressbook/backend/ebook/e-card-simple.c, addressbook/gui/component/addressbook-storage.c, addressbook/gui/widgets/e-addressbook-view.c, calendar/gui/e-calendar-table.c, calendar/gui/e-itip-control.c, calendar/gui/e-meeting-model.c, calendar/gui/itip-utils.c, calendar/gui/print.c, calendar/gui/alarm-notify/alarm-notify-dialog.c, filter/rule-editor.c, mail/mail-config.c, mail/mail-folder-cache.c, mail/mail-format.c, mail/mail-local.c, mail/mail-ops.c, mail/mail-vfolder.c, shell/e-local-storage.c, shell/e-summary-storage.c: Change includes of e-util/e-unicode-i18n.h to gal/util/e-unicode-i18n.h svn path=/trunk/; revision=14427
* Need to ref rule since add doesn't. This doesn't crash anymore but doesn't92001-10-292-0/+3
| | | | | | | | | | 2001-10-29 <NotZed@Ximian.com> * rule-editor.c: (rule_editor_play_undo): Need to ref rule since add doesn't. This doesn't crash anymore but doesn't seem to do everything right either. svn path=/trunk/; revision=14312
* Fixed previous fix.Michael Zucci2001-10-292-1/+2
| | | | svn path=/trunk/; revision=14311
* Some debug printf fixes for printf's that dont like null %s's.92001-10-292-2/+7
| | | | | | | | | 2001-10-29 <NotZed@Ximian.com> * rule-editor.c: Some debug printf fixes for printf's that dont like null %s's. svn path=/trunk/; revision=14309
* Fix enable undo logic.Michael Zucci2001-10-292-1/+2
| | | | | | | * rule-editor.c (rule_editor_add_undo): Fix enable undo logic. svn path=/trunk/; revision=14308
* Implement, change any folder uri's that have been renamed, to the new one.82001-10-287-8/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-28 <NotZed@Ximian.com> * filter-context.c (filter_rename_uri): Implement, change any folder uri's that have been renamed, to the new one. (filter_delete_uri): Dont actually do any work (yet). We could probably put rename_uri on every rule context/filter part/filter element, and let their methods handle it, but for now its easy enough just to handle the few cases that we have to handle manually. * rule-context.c (rule_context_delete_uri): Update a filter context for a deleted uri, e.g. folder removed. (rule_context_rename_uri): Update a filter context for a renamed uri, e.g. * filter-folder.c (filter_folder_set_value): New function to set the uri of a folder filter. * rule-editor.c (rule_move): Add undo for move. (rule_editor_add_undo): Add extra rank item. (rule_editor_play_undo): handle rank case. (rule_editor_finalise): Clean up any hanging over undo log. (editor_clicked): Only enable 'undo' if we have EVOLUTION_RULE_UNDO enabled. Code still a bit flakey. (rule_editor_construct): Only enable a cancel button if EVOLUTION_RULE_UNDO is set. (rule_editor_add_undo): Only add if undo enabled. * filter-rule.c (filter_rule_set_name): Emit a changed event if it changes. (filter_rule_set_source): Same. svn path=/trunk/; revision=14289
* Add undo for move. (rule_editor_add_undo): Add extra rank item.82001-10-286-12/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-28 <NotZed@Ximian.com> * rule-editor.c (rule_move): Add undo for move. (rule_editor_add_undo): Add extra rank item. (rule_editor_play_undo): handle rank case. (rule_editor_finalise): Clean up any hanging over undo log. (editor_clicked): Only enable 'undo' if we have EVOLUTION_RULE_UNDO enabled. Code still a bit flakey. (rule_editor_construct): Only enable a cancel button if EVOLUTION_RULE_UNDO is set. * filter-rule.c (filter_rule_set_name): Emit a changed event if it changes. (filter_rule_set_source): Same. 2001-10-26 <NotZed@Ximian.com> * rule-context.c (rule_context_find_rank_rule): Find a rule at a specific rank/source. * rule-editor.c (add_editor_clicked): Log the added object. (rule_editor_add_undo): New function to add an undo record to the rule editor. (edit_editor_clicked): Log the changed object. (rule_delete): Add undo object. (rule_editor_play_undo): Play an undo log back. svn path=/trunk/; revision=14281
* Fix the address of the FSF in the licensing comments.Ettore Perazzoli2001-10-282-2/+0
| | | | svn path=/trunk/; revision=14243
* Fixing the license text.Ettore Perazzoli2001-10-2846-517/+508
| | | | svn path=/trunk/; revision=14215
* Fixing the license text.Ettore Perazzoli2001-10-282-2/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-272-4/+4
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked):Jeffrey Stedfast2001-10-262-0/+13
| | | | | | | | | | | 2001-10-26 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_add): Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked): Re-sensitize it. (edit_editor_clicked): Same. svn path=/trunk/; revision=14123
* Keep track of the current editor dialog window so that on exit, we canJeffrey Stedfast2001-10-263-33/+60
| | | | | | | | | | | | | 2001-10-25 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c: Keep track of the current editor dialog window so that on exit, we can close it too. (rule_edit): Don't make the dialog modal and set it's parent window as well as don't allow more than a single editor window to be popped up. (rule_add): Same. svn path=/trunk/; revision=14122
* added a missing close parenJeffrey Stedfast2001-10-261-1/+1
| | | | svn path=/trunk/; revision=14120
* Add a changed signal. Emits if the order changes or if you add or remove a42001-10-244-10/+109
| | | | | | | | | | | | | | 2001-10-24 <NotZed@Ximian.com> * rule-context.c (rule_context_class_init): Add a changed signal. Emits if the order changes or if you add or remove a rule. (rule_context_rank_rule): Fix rank rule to properly rank based on source, not merely on list position. (rule_context_add_rule): Also emit changed signal. (rule_context_remove_rule): Same. (rule_context_rank_rule): Emit changed signal. svn path=/trunk/; revision=13978
* Translate the rule names. (Bug #13082)Jon Trowbridge2001-10-212-1/+7
| | | | | | | | | 2001-10-20 Jon Trowbridge <trow@ximian.com> * rule-editor.c (set_source): Translate the rule names. (Bug #13082) svn path=/trunk/; revision=13827
* Fix the WM problems related to the folder selection dialog beingEttore Perazzoli2001-10-193-0/+8
| | | | | | | out-of-proc. Now it can be set to be a transient window correctly, and fakes its WindowGroup hint appropriately. svn path=/trunk/; revision=13765
* Kludge to raise the filter dialog when the folder-selection window isJeffrey Stedfast2001-10-162-1/+7
| | | | | | | | | 2001-10-15 Jeffrey Stedfast <fejj@ximian.com> * filter-folder.c (button_clicked): Kludge to raise the filter dialog when the folder-selection window is closed. svn path=/trunk/; revision=13688
* If we have no node content, dont append any value or try to decode it.52001-10-162-4/+11
| | | | | | | | | | 2001-10-15 <NotZed@Ximian.com> * filter-input.c (xml_decode): If we have no node content, dont append any value or try to decode it. Gets rid of a bunch of annoying warnings. svn path=/trunk/; revision=13677
* And again here.Jeffrey Stedfast2001-10-054-4/+13
| | | | | | | | | | | | | 2001-10-04 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c (validate): And again here. * filter-folder.c (validate): Same. * filter-datespec.c (validate): Take out the "Oops" part of the warning. svn path=/trunk/; revision=13426
* "safe" save code, first save to .#name, then rename to name if it worked,42001-10-052-5/+31
| | | | | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * rule-context.c (save): "safe" save code, first save to .#name, then rename to name if it worked, also create backups to name~. Means filters/etc wont get reset/lost if disk fills up, although relies on libxml failing properly. (new_rule_clicked): Removed warning, we do now have changed signals! svn path=/trunk/; revision=13422
* Emit changed events when we change it. (vfolder_rule_remove_source): "82001-09-292-0/+9
| | | | | | | | | | 2001-09-28 <NotZed@Ximian.com> * vfolder-rule.c (vfolder_rule_add_source): Emit changed events when we change it. (vfolder_rule_remove_source): " svn path=/trunk/; revision=13241
* Set the item label to the new rule name, not the old rule name. Fixes bugJeffrey Stedfast2001-09-292-8/+17
| | | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (edit_editor_clicked): Set the item label to the new rule name, not the old rule name. Fixes bug #11168. svn path=/trunk/; revision=13224
* Use g_strdup for the uri, not the xml memory.72001-09-284-1586/+12
| | | | | | | | | | | | 2001-09-27 <NotZed@Ximian.com> * vfolder-rule.c (xml_decode): Use g_strdup for the uri, not the xml memory. * filter-driver.c, filter-message-search.c: Removed, again, how did they come back??? svn path=/trunk/; revision=13208
* Emit changed events.32001-09-156-7/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-09-13 <NotZed@Ximian.com> * filter-filter.c (filter_filter_add_action): (filter_filter_remove_action): (filter_filter_replace_action): Emit changed events. * filter-rule.c (filter_rule_xml_decode): Emiot a rule changed event. (filter_rule_copy): Emit a changed event. (filter_rule_replace_part): " (filter_rule_add_part): " (filter_rule_remove_part): " (filter_rule_xml_decode): Freeze around decoding, so we only emit changed when done. (filter_rule_emit_changed): New function to emit changed events if not frozen. 2001-09-13 <NotZed@Ximian.com> * rule-context.c (rule_context_class_init): Added a 'rule_added' and 'rule_removed' signal. (rule_context_load): Set a (private) frozen flag while we're loading. (rule_context_add_rule): Emit a rule_added signal if we're not frozen. (rule_context_remove_rule): Emit a rule_removed signal if we're not frozen. svn path=/trunk/; revision=12855
* Clone the current rule before editing it so that changes can be undone.Jeffrey Stedfast2001-09-137-30/+150
| | | | | | | | | | | | | | | | | | | | | | 2001-09-12 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_edit): Clone the current rule before editing it so that changes can be undone. (edit_editor_clicked): If the user hit OK, replace the original rule with the new one. * vfolder-rule.c (vfolder_rule_finalise): Free the sources list. (rule_copy): Implemented. * filter-filter.c (rule_copy): Implemented. * filter-rule.c (filter_rule_copy): New convenience function to copy one rule "into" another. (rule_copy): Default implementation. (filter_rule_clone): Use filter_rule_copy() internally to get rid of the nastiness/slowness of xml encoding and then decoding. svn path=/trunk/; revision=12787
* Remove the match-all from the not body-contains, so we can use the new22001-09-132-1/+6
| | | | | | | | | 2001-09-12 <NotZed@Ximian.com> * vfoldertypes.xml: Remove the match-all from the not body-contains, so we can use the new vector not function. svn path=/trunk/; revision=12780
* Encode the score as an integer string, not as a string of integers. #5098.02001-09-112-4/+6
| | | | | | | | | 2001-09-10 <NotZed@Ximian.com> * filter-score.c (format_sexp): Encode the score as an integer string, not as a string of integers. #5098. svn path=/trunk/; revision=12761
* Allow the dialog's title to be translated.Jeffrey Stedfast2001-09-112-1/+6
| | | | | | | | | 2001-09-10 Jeffrey Stedfast <fejj@ximian.com> * filter-datespec.c (button_clicked): Allow the dialog's title to be translated. svn path=/trunk/; revision=12748
* #include <sys/types.h> for regex_t on freebsd.Chris Toshok2001-08-202-0/+5
| | | | | | | | 2001-08-19 Chris Toshok <toshok@ximian.com> * filter-input.c: #include <sys/types.h> for regex_t on freebsd. svn path=/trunk/; revision=12229
* Added key accelerators.Jeffrey Stedfast2001-08-183-30/+52
| | | | | | | | 2001-08-15 Jeffrey Stedfast <fejj@ximian.com> * filter.glade: Added key accelerators. svn path=/trunk/; revision=12157
* in default_user:Peter Williams2001-08-152-1/+6
| | | | | | | | | | | | | | | | 2001-08-14 Peter Williams <peterw@ximian.com> * searches.xml: Rename <title> to <_title> so that these fields can be translated. in filter: 2001-08-14 Peter Williams <peterw@ximian.com> * filter-rule.c (xml_decode): Match either "title" or "_title" to allow for translations of the title (provided in the default files) svn path=/trunk/; revision=12034
* New function. Convert a time_t to a gchar * (with i18n) (describe_button):Peter Williams2001-08-142-2/+17
| | | | | | | | | | 2001-08-13 Peter Williams <peterw@ximian.com> * filter-datespec.c (format_time): New function. Convert a time_t to a gchar * (with i18n) (describe_button): Use format_time instead of ctime. svn path=/trunk/; revision=11942
* Add a gettext around our static strings.Peter Williams2001-08-132-1/+6
| | | | | | | | | 2001-08-13 Peter Williams <peterw@ximian.com> * filter-datespec.c (make_span_editor): Add a gettext around our static strings. svn path=/trunk/; revision=11939
* Removed comment about the need to resolve nicknames properly, because weJon Trowbridge2001-08-111-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-10 Jon Trowbridge <trow@ximian.com> * e-msg-composer-hdrs.c (set_recipients): Removed comment about the need to resolve nicknames properly, because we now do that. 2001-08-10 Jon Trowbridge <trow@ximian.com> * e-filter-bar.h: Set the subitems to NULL in the pre-defined ESearchBarItems. * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's subitems to NULL. (build_items): Set the ESearchBarItem's subitems to NULL. (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL. * e-search-bar.c: Added support for subitems, so that a search option can key off of another option menu rather than just an entry. 2001-08-10 Jon Trowbridge <trow@ximian.com> * gui/component/addressbook.c: Set the ESearchBarItem subitems explicitly to NULL. 2001-08-10 Jon Trowbridge <trow@ximian.com> * gui/cal-search-bar.c: Where we have ESearchBarItems, set their subitems to NULL. 2001-08-10 Jon Trowbridge <trow@ximian.com> * folder-browser.c: Set our ESearchBarItems subitems to NULL. svn path=/trunk/; revision=11904
* Make this compile again.Peter Williams2001-08-102-3/+7
| | | | | | | | 2001-08-10 Peter Williams <peterw@ximian.com> * rule-context.c (rule_context_add_rule_gui): Make this compile again. svn path=/trunk/; revision=11877
* No need to gtk_widget_show() the gnome dialog widget twice...Jeffrey Stedfast2001-08-103-146/+158
| | | | | | | | | | | | 2001-08-10 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (rule_context_add_rule_gui): No need to gtk_widget_show() the gnome dialog widget twice... * vfolder-rule.c (get_widget): Unref the glade_xml gui object before returning. svn path=/trunk/; revision=11870
* don't mix g_free and xmlAlloc (xml_decode): don't mix g_free and xmlAllocRadek Doulik2001-08-095-9/+29
| | | | | | | | | | | | | | | | | | | 2001-08-08 Radek Doulik <rodo@ximian.com> * filter-folder.c (button_clicked): don't mix g_free and xmlAlloc (xml_decode): don't mix g_free and xmlAlloc * filter-code.c (filter_code_init): use xmlStrdup instead of g_strdup * filter-input.c (filter_input_new_type_name): use xmlStrdup instead of g_strdup (filter_input_finalise): don't mix g_free and xmlAlloc * filter-option.c (clone): use xmlStrdup instead of g_strdup (free_option): don't mix g_free and xmlAlloc svn path=/trunk/; revision=11795
* use xmlStrdup rather than g_strdupRadek Doulik2001-08-083-2/+9
| | | | | | | | | | | 2001-08-08 Radek Doulik <rodo@ximian.com> * filter-source.c (clone): use xmlStrdup rather than g_strdup * filter-element.c (filter_element_finalise): don't mix g_free and xmlAlloc svn path=/trunk/; revision=11788
* Properly free the list of parts, and the private data.Not Zed2001-08-087-37/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-07 Not Zed <NotZed@Ximian.com> * filter-rule.c (filter_rule_finalise): Properly free the list of parts, and the private data. (FilterRulePrivate): Remove unused 'parts' member. * filter-option.c (free_option): For freeing options. (filter_option_finalise): Free options list. * filter-element.c (filter_element_finalise): free name. * filter-input.c (filter_input_finalise): Free type and values list. * filter-context.c (filter_context_finalise): Free the actions. * rule-context.c (rule_context_finalise): Remove the totally weird arsed *_set_list free code. (free_part_set): (free_rule_set): Use this to free stuff using g_list_foreach. (rule_context_finalise): Free the error string. (rule_context_finalise): Free the rules and parts. svn path=/trunk/; revision=11774
* Reverted my previous change, I fixed the filter code to handle this theJeffrey Stedfast2001-08-082-0/+33
| | | | | | | | | | 2001-08-07 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Reverted my previous change, I fixed the filter code to handle this the way danw said to handle it in bug #5886 now. svn path=/trunk/; revision=11739
* Removed the "is" and "is not" rules from the xml file for address matchingJeffrey Stedfast2001-08-082-27/+5
| | | | | | | | | 2001-08-07 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Removed the "is" and "is not" rules from the xml file for address matching because users are easily confused. svn path=/trunk/; revision=11737
* Do an evil kludgy hack so that the Rule Name entry widget gets focusedJeffrey Stedfast2001-08-042-3/+14
| | | | | | | | | | 2001-08-03 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (get_widget): Do an evil kludgy hack so that the Rule Name entry widget gets focused when the filter editor is shown. svn path=/trunk/; revision=11626
* Wrap some debug printf's with d().Jeffrey Stedfast2001-08-034-93/+98
| | | | | | | | | | | 2001-08-02 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c: Wrap some debug printf's with d(). * rule-context.h: Removed prototype for rule_context_delete_rule() since the function doesn't exist. svn path=/trunk/; revision=11600
* Sync for the release.Ettore Perazzoli2001-08-011-1/+0
| | | | svn path=/trunk/; revision=11530
* Added a validate function that checks to make sure that vfolders that haveJon Trowbridge2001-07-243-0/+40
| | | | | | | | | | | | | 2001-07-23 Jon Trowbridge <trow@ximian.com> * vfolder-rule.c (validate): Added a validate function that checks to make sure that vfolders that have "specific folders" as their source actually have a non-empty list of source folders selected. (Bug #4937) (get_widget): If fr->source is NULL for some reason, bring it into sync with the default in the option menu. svn path=/trunk/; revision=11336
* Change the butt-ugly UI to a saner (and just as flexible) one. Instead ofPeter Williams2001-07-242-98/+114
| | | | | | | | | | | | | | | | | | 2001-07-23 Peter Williams <peterw@ximian.com> * filter-datespec.c (make_span_editor): Change the butt-ugly UI to a saner (and just as flexible) one. Instead of all those spinbuttons, just have one and let the user select the time unit. (omenu_item_activated): New function. When the user changes the time unit, convert it from the old number. Pretty. (adj_value_changed): This function is now simpler. (set_adjustments): Also modified for new UI model. (button_clicked): Set the selected_type before calling the callback. (FilterDatespecPrivate): Members change a bit. (filter_datespec_init): No longer need to allocation spinbuttons (filter_datespec_finalise): No longer need to free spinbuttons. svn path=/trunk/; revision=11312
* Removed the "Forward To" filter action.Jeffrey Stedfast2001-07-213-45/+44
| | | | | | | | 2001-07-20 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Removed the "Forward To" filter action. svn path=/trunk/; revision=11278
* Return -1 if we don't find it? This is what most of the code expected butJeffrey Stedfast2001-07-193-31/+41
| | | | | | | | | | 2001-07-18 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (rule_context_get_rank_rule): Return -1 if we don't find it? This is what most of the code expected but not what we were returning on fail. svn path=/trunk/; revision=11206
* Marked string for translation.Chyla Zbigniew2001-07-132-1/+5
| | | | | | * filter-datespec.c (stringify_agoness): Marked string for translation. svn path=/trunk/; revision=11060
* Users should not be able to filter on "Status is Deleted" since we don'tJeffrey Stedfast2001-07-133-21/+23
| | | | | | | | | 2001-07-12 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Users should not be able to filter on "Status is Deleted" since we don't allow that in the filter driver code. svn path=/trunk/; revision=11049
* Copied the "Attachments" rule part over from filtertypes.xml, would be aJason Leach2001-07-112-0/+26
| | | | | | | | | | | | 2001-07-11 Jason Leach <jleach@ximian.com> * vfoldertypes.xml: Copied the "Attachments" rule part over from filtertypes.xml, would be a powerful feature for vfolders (see all the patches across all folders, or all the attachments you've sent, without having to duplicate potentially big files, blah blah, bug #1155). svn path=/trunk/; revision=10996
* Put a match-all around the not-body-contains to make it work per-message.Peter Williams2001-07-113-2/+9
| | | | | | | | | | | 2001-07-10 Peter Williams <peterw@ximian.com> * vfoldertypes.xml: Put a match-all around the not-body-contains to make it work per-message. * filtertypes.xml: Same. svn path=/trunk/; revision=10962
* Set the focus on the title of the filter rule.Jeffrey Stedfast2001-07-102-6/+13
| | | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (get_widget): Set the focus on the title of the filter rule. svn path=/trunk/; revision=10921
* 2001-07-09 Anna Marie DirksAnna Dirks2001-07-102-0/+6
| | | | | | | | *rule-context.c (rule_context_add_rule_gui): Increased the size of the "Add Filter Rule" dialog to 600 x 400, so that no resizing is necessary to use the dialog. svn path=/trunk/; revision=10914
* Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): EncodeJon Trowbridge2001-07-094-73/+94
| | | | | | | | | | | | | 2001-07-09 Jon Trowbridge <trow@ximian.com> * filter-source.c (filter_source_get_sources): Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): Encode things properly. (xml_decode): Decode things properly. (get_widget): Ignore accounts w/o source URLs. (clone): Set the ->name in our copy. svn path=/trunk/; revision=10903
* Select the most appropriate filter rule.Jeffrey Stedfast2001-07-063-2/+12
| | | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_delete): Select the most appropriate filter rule. svn path=/trunk/; revision=10836
* oops, forgot to commit ChangeLogJeffrey Stedfast2001-07-061-6/+9
| | | | svn path=/trunk/; revision=10833
* Fix bug #4043: s/colour/colorJeffrey Stedfast2001-07-062-1/+5
| | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Fix bug #4043: s/colour/color svn path=/trunk/; revision=10832
* Prevent crashing while we work this out.Peter Williams2001-07-043-2/+15
| | | | | | | | | | | | 001-07-03 Peter Williams <peterw@ximian.com> * filter-source.c (get_widget): Prevent crashing while we work this out. * filter-rule.c (get_widget): Don't try to gtk_widget_grab_default with a widget that can't be the default. Altough it should be able to.... svn path=/trunk/; revision=10771
* Added an integer type for filtering values. used for size.Sam Creasey2001-07-037-0/+321
| | | | | | | | | | | | 2001-07-02 Sam Creasey <sammy@oh.verio.com> * filter-int.c: Added an integer type for filtering values. used for size. * Makefile.am (SOURCES): added filter-int.c, filter-int.h * filtertypes.xml: added a part entry for size based filters svn path=/trunk/; revision=10717
* Changed "Add criterion" button to have normal button relief in response toAnna Marie Dirks2001-07-033-2/+10
| | | | | | | | | | | | | 2001-07-02 Anna Marie Dirks <anna@ximian.com> * filter-rule.c (get_widget): Changed "Add criterion" button to have normal button relief in response to complaints of it not appearing clickable. * filter-filter.c: Changed "Add action" button to have normal button relief in response to complaints of it not appearing clickable. svn path=/trunk/; revision=10705
* Set the filter-rule dialog to be user-resizable.Jeffrey Stedfast2001-06-303-28/+44
| | | | | | | | | 2001-06-29 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_editor_construct): Set the filter-rule dialog to be user-resizable. svn path=/trunk/; revision=10607
* Make "Move" the default action.Jeffrey Stedfast2001-06-282-5/+9
| | | | | | | | 2001-06-27 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Make "Move" the default action. svn path=/trunk/; revision=10533
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-2339-44/+44
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* Deleted Gediminas patch.Not Zed2001-05-081-0/+4
| | | | | | | | 2001-05-08 Not Zed <NotZed@Ximian.com> * filter-rule.c: Deleted Gediminas patch. svn path=/trunk/; revision=9709
* Fix for #2253 (search names not translated), mail-search i18n fixes.Gediminas Paulauskas2001-05-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * searches.xml: replace title> with _title>. Part of fix to #2253. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * mail-search.c: convert search entry to utf8. * mail-local.c: d() debugging message. * mail-send-recv.c: replace " ..." with "..." * Makefile.am: removed EVOLUTION_VERSION. 2001-05-07 Gediminas Paulauskas <menesis@delfi.lt> * POTFILES.in: add mail/mail-search.c 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * misc/e-search-bar.c (add_dropdown), (set_option): first try to translate, then if not suceeded -- convert from utf8. This handles cases when menuitem needs to be translated (it is passed as N_()), or is utf8 search title. However you cannot have a search like "Folders" -- it is translated. Part of fix for #2253. * misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED macro instead of own "Advanced ..." for consistency. 2001-05-08 Gediminas Paulauskas <menesis@delfi.lt> * filter-rule.c (xml_decode): allow "_title" in user rules. translate them and encode to utf8. (get_rule_part_widget): do not call gettext on part->title. It is always translated already. svn path=/trunk/; revision=9706
* Set the default size of the dialog to 600x400, which seems to be a niceJeffrey Stedfast2001-04-272-2/+12
| | | | | | | | | | | 2001-04-26 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_edit): Set the default size of the dialog to 600x400, which seems to be a nice size that fits all the widgets into it. (rule_add): Same. svn path=/trunk/; revision=9604
* Remove UNICODE_CFLAGSDan Winship2001-04-262-1/+4
| | | | | | * Makefile.am (INCLUDES): Remove UNICODE_CFLAGS svn path=/trunk/; revision=9582
* Blah blah fix for xml1 broken utf8 encoding, and use "g" memory for allNot Zed2001-04-262-16/+36
| | | | | | | | | | 2001-04-26 Not Zed <NotZed@Ximian.com> * filter-part.c (filter_part_xml_create): Blah blah fix for xml1 broken utf8 encoding, and use "g" memory for all allocations. (filter_part_finalise): Free our data properly. svn path=/trunk/; revision=9572
* Pull up fix for translation of filter direction drop down menu from theKjartan Maraas2001-04-212-1/+12
| | | | | | | | | 2001-04-20 Kjartan Maraas <kmaraas@gnome.org> * filter-rule.c: Pull up fix for translation of filter direction drop down menu from the branch. svn path=/trunk/; revision=9475
* Plug memory leaks.Dan Winship2001-04-1914-21/+62
| | | | | | | | | | | | | | * filter-colour.c, filter-datespec.c, filter-folder.c, filter-input.c, filter-option.c, filter-rule.c, filter-score.c, filter-source.c, score-rule.c (xml_decode): Plug memory leaks. * rule-context.c (rule_context_finalise): Implement. Free stuff. * filter-element.h: #include <gnome-xml/xmlmemory.h> here for xmlFree * filter-filter.c, filter-part.c: Remove xmlmemory.h #include svn path=/trunk/; revision=9451
* s/Is/is/ and s/Is Not/is not/ to be more consistant with the rest.Jeffrey Stedfast2001-04-163-22/+25
| | | | | | | | | 2001-04-15 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: s/Is/is/ and s/Is Not/is not/ to be more consistant with the rest. svn path=/trunk/; revision=9331
* Oops --- I forgot to add these files before my last commit.Jon Trowbridge2001-04-142-0/+408
| | | | svn path=/trunk/; revision=9305
* Make the (previously unused) get-source command actually do the rightJon Trowbridge2001-04-147-3/+42
| | | | | | | | | | | | | | | | | | | | | | 2001-04-13 Jon Trowbridge <trow@gnu.org> * 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 <trow@gnu.org> * 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
* Here goes my additional simple include fixes.Gediminas Paulauskas2001-04-051-9/+0
| | | | svn path=/trunk/; revision=9191
* Fix headers. Same here. Same here. Same here. Same here. Same here. SameKjartan Maraas2001-04-0510-0/+37
| | | | | | | | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * filter-editor.c: Fix headers. * filter-filter.c: Same here. * filter-option.c: Same here. * filter-part.c: Same here. * filter-rule.c: Same here. * rule-editor.c: Same here. * score-editor.c: Same here. * vfolder-editor.c: Same here. * vfolder-rule.c: Same here. svn path=/trunk/; revision=9182
* Set the newpart on the container object. (less_parts): Remove the rule thtJeffrey Stedfast2001-04-034-90/+125
| | | | | | | | | | | | | | | | | | | | | | | | 2001-04-02 Jeffrey Stedfast <fejj@ximian.com> * filter-filter.c (option_activate): Set the newpart on the container object. (less_parts): Remove the rule tht the user wants to remove. (attach_rule): Attach a new rule and it's remove button to the end of the table. (more_parts): Fix to resize the table and such. (get_widget): Don't have a remove action button, we are putting this next to the rule part now. * filter-rule.c (option_activate): Set the newpart on the container object. (less_parts): Remove the rule tht the user wants to remove. (attach_rule): Attach a new rule and it's remove button to the end of the table. (more_parts): Fix to resize the table and such. (get_widget): Don't have a remove action button, we are putting this next to the rule part now. svn path=/trunk/; revision=9115
* Fix headers. Remove unneccesary ones and replace with more finegrainedKjartan Maraas2001-03-3043-66/+122
| | | | | | | | | 2001-03-30 Kjartan Maraas <kmaraas@gnome.org> * *.*: Fix headers. Remove unneccesary ones and replace with more finegrained ones where needed. svn path=/trunk/; revision=9028
* Oops, an unspecified date is '0', not -1.Jeffrey Stedfast2001-03-232-1/+6
| | | | | | | | | 2001-03-22 Jeffrey Stedfast <fejj@ximian.com> * filter-datespec.c (validate): Oops, an unspecified date is '0', not -1. svn path=/trunk/; revision=8910
* Validate the rule before closing.Jeffrey Stedfast2001-03-224-13/+24
| | | | | | | | | 2001-03-21 Jeffrey Stedfast <fejj@ximian.com> * rule-context.c (new_rule_clicked): Validate the rule before closing. svn path=/trunk/; revision=8879
* Set the editor dialog modal rather than setting the filter dialogJeffrey Stedfast2001-03-212-118/+130
| | | | | | | | | | | | | | | | | 2001-03-20 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_edit): Set the editor dialog modal rather than setting the filter dialog insensitive. Also ref re->edit since we unref it when the editor closes. This should fix bug #1905. (edit_editor_clicked): No need to set the filter dialog sensitive again. (rule_add): Set the add-rule dialog modal and don't set the filter dialog insensitive. (add_editor_clicked): No need to set the filter dialog sensitive again. svn path=/trunk/; revision=8858
* Since we are now using filter-option widgets in place of system-flag, weJeffrey Stedfast2001-03-183-4/+14
| | | | | | | | | | | 2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * filter-option.c (build_code): Since we are now using filter-option widgets in place of system-flag, we do not need a "code" part so if there isn't a code part, don't build it. (clone): Updated to allow NULL code parts. svn path=/trunk/; revision=8789
* If the filter type is a "system-flag", use the optionlist type as typeJeffrey Stedfast2001-03-182-1/+6
| | | | | | | | | | | 2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * filter-element.c (filter_element_new_type_name): If the filter type is a "system-flag", use the optionlist type as type system-flag has been removed. This should allow backward compatability. svn path=/trunk/; revision=8785
* Remove the menu that is in the glade file because we want to replace itJeffrey Stedfast2001-03-174-5/+51
| | | | | | | | | | | | | | 2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * filter-editor.c (filter_editor_construct): Remove the menu that is in the glade file because we want to replace it with our menu, not append items to that menu. * filtertypes.xml: Oops, missed the system-flag action-set. * vfoldertypes.xml: Update "status" ruleset. svn path=/trunk/; revision=8780
* removed these blasted filesJeffrey Stedfast2001-03-174-602/+0
| | | | svn path=/trunk/; revision=8769
* Removed filter-url.[c,h] and filter-system-flag.[c,h]Jeffrey Stedfast2001-03-175-32/+37
| | | | | | | | | | | | | | | | | | | 2001-03-16 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Removed filter-url.[c,h] and filter-system-flag.[c,h] * filter-element.c (filter_element_new_type_name): Removed references to the url-type and system-flag types. * filtertypes.xml: Removed "source" type and fixed "status" to use the optionmenu. * filter-url.[c,h]: Removed. * filter-system-flag.[c,h]: Removed (just use optionmenu). svn path=/trunk/; revision=8768
* Changed the edit_filter to be a standalone window rather than a widget, soNot Zed2001-03-1514-928/+943
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-15 Not Zed <NotZed@Ximian.com> * filter.glade: Changed the edit_filter to be a standalone window rather than a widget, so we can get the rule editor part out separately. Same for vfolder editor, and new score, and basic rule editors. * score-editor.c (score_editor_new): Turned back on object stuff, subclass rule-editor, and removed most of the code. * filter-editor.c (filter_editor_new): Turned into an object, subclass rule-editor, removed most of the code. Now we accept the source list during create, and plug that into the glade. * vfolder-editor.c (vfolder_editor_new): Turned back on object stuff, subclass rule-editor, and removed most of the code. * Makefile.am (libfilter_la_SOURCES): Added rule-editor.[ch]. * filter-filter.c (validate): inherit the validate function and also validate the actions part of a filterfilter. * filter-rule.c (filter_rule_validate): New method so that filter rules can validate themselves. (validate): Default implementation, validates base rules. * rule-editor.h: New generic rule editor, to be used for filter editor/vfolder editor/score editor/saved searches editor. svn path=/trunk/; revision=8729
* create doc/devel/executive-summary/MakefileGediminas Paulauskas2001-03-152-1/+5
| | | | | | | | | | | | | 2001-03-14 Gediminas Paulauskas <menesis@delfi.lt> * configure.in: create doc/devel/executive-summary/Makefile * doc/C/Makefile.am: there's no apx-fdl.sgml and evolution-guide.sgml anymore * filter/filter-system-flag.c: translate status flag title. svn path=/trunk/; revision=8714
* Added an "Attachments" filter option where you can filter messages thatJeffrey Stedfast2001-03-134-121/+35
| | | | | | | | | | | 2001-03-12 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Added an "Attachments" filter option where you can filter messages that have (or do not have) attachments. This does not allow you to filter based on the types of the attachments. svn path=/trunk/; revision=8652
* Make sure we have something selected first ;-)Jeffrey Stedfast2001-03-093-6/+13
| | | | | | | | | | | 2001-03-08 Jeffrey Stedfast <fejj@ximian.com> * vfolder-editor.c (double_click): Make sure we have something selected first ;-) * filter-editor.c (double_click): And here too. svn path=/trunk/; revision=8599
* Added option menu to vfolder editor.Not Zed2001-03-035-208/+160
| | | | | | | | | | | | | | | | | | 2001-03-03 Not Zed <NotZed@Ximian.com> * filter.glade: Added option menu to vfolder editor. 2001-03-02 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (get_widget): Setup the data on the base source opiton menu, and make hte option menu reflect the source. (select_source_with): Set the source type for this rule. e.g. these folders, "with ..." * filter-editor.c: Removed the N_() stuff from the source_names array, they must not be internationalised!!! svn path=/trunk/; revision=8533
* New function to clone rules.Not Zed2001-03-013-0/+21
| | | | | | | | 2001-02-28 Not Zed <NotZed@Ximian.com> * filter-rule.c (filter_rule_clone): New function to clone rules. svn path=/trunk/; revision=8435
* IMAP subscriptions stuff.Aaron Weber2001-02-231-0/+114
| | | | | | | | 2001-02-23 Aaron Weber <aaron@helixcode.com> * C/usage-mail.sgml: IMAP subscriptions stuff. svn path=/trunk/; revision=8366
* renamed mailing list options to be more meaningful.Not Zed2001-02-233-20/+22
| | | | | | | | | | | | 2001-02-23 Not Zed <NotZed@Ximian.com> * filtertypes.xml: renamed mailing list options to be more meaningful. * vfoldertypes.xml: renamed mailing list options to be more meaningful. svn path=/trunk/; revision=8357
* Added mailing list matching rules.Not Zed2001-02-234-0/+101
| | | | | | | | | | 2001-02-23 Not Zed <NotZed@Ximian.com> * filtertypes.xml: Added mailing list matching rules. * vfoldertypes.xml: Added mailing list rules. svn path=/trunk/; revision=8356
* Getting almost full and proper use of xml-i18n-tools.Gediminas Paulauskas2001-02-114-18/+7
| | | | | | | | | | | | | | | | | Removed all files where glade writes strings. Changed Makefile.am to not distribute them. Changed all glade files to not write strings to those files. Removed *.desktop and evolution.keys files, because they are generated. Added them to .cvsignore Added *.desktop.in evolution.keys.in files without transalted strings. Added all existing entries from desktop files to po files. Changed Makefile.am to distribute only .in files, and merge translations into desktop files. Removed obsolete files from po/ dir svn path=/trunk/; revision=8164
* Translate the option title. (Noticed by Kjartan).Dan Winship2001-02-072-1/+6
| | | | | | | * filter-option.c (get_widget): Translate the option title. (Noticed by Kjartan). svn path=/trunk/; revision=8027
* Add #include <config.h> and mark some strings for translation.Kjartan Maraas2001-02-0514-3/+1638
| | | | | | | | | | | 2001-02-05 Kjartan Maraas <kmaraas@gnome.org> * filter-code.c, filter-colour.c, filter-context.c, filter-element.c, filter-input.c, filter-score.c, filter-system-flag.c, filter-url.c: Add #include <config.h> and mark some strings for translation. svn path=/trunk/; revision=7967
* Removed, now lives in camel-filter-search.*Not Zed2001-01-226-1712/+10
| | | | | | | | | | | | | | 2001-01-22 Not Zed <NotZed@Ximian.com> * filter-message-search.[ch]: Removed, now lives in camel-filter-search.* * Makefile.am (libfilter_la_SOURCES): Removed filter-driver.[ch] and filter-message-search.[ch]. * filter-driver.[ch]: Removed. now lives in camel-filter-driver.* svn path=/trunk/; revision=7703
* Set the delete bit *before* copying to the default folder.Jeffrey Stedfast2001-01-202-4/+9
| | | | | | | | | 2001-01-19 Jeffrey Stedfast <fejj@ximian.com> * filter-driver.c (filter_driver_filter_message): Set the delete bit *before* copying to the default folder. svn path=/trunk/; revision=7656
* Er, don't set the button insensitive if there is *1* action, set itJeffrey Stedfast2001-01-182-4/+15
| | | | | | | | | | | | | 2001-01-18 Jeffrey Stedfast <fejj@ximian.com> * filter-filter.c (less_parts): Er, don't set the button insensitive if there is *1* action, set it insensitive if there are less than or equal to *1* actions. Doh! (more_parts): Only set the remove button sensitive if there is more than 1 action. (get_widget): Here too. svn path=/trunk/; revision=7616
* Remove these files.Jacob Leach2001-01-172-402/+0
| | | | svn path=/trunk/; revision=7537
* Moved ESearchBar from filter/ to widgets/misc/, a more appropriate home.Jacob Leach2001-01-172-2/+5
| | | | | | | Moved ESearchBar from filter/ to widgets/misc/, a more appropriate home. Bug #1060. svn path=/trunk/; revision=7536
* Moved p->copied to the inner part of the loop so that in the case of aJeffrey Stedfast2001-01-132-4/+15
| | | | | | | | | | | | 2001-01-13 Jeffrey Stedfast <fejj@ximian.com> * filter-driver.c (do_copy): Moved p->copied to the inner part of the loop so that in the case of a folder not existing, it doesn't think that the message was already copied to some place and thus not save it to the Inbox. (do_move): Same. svn path=/trunk/; revision=7478
* Changed Priority to Score.Jeffrey Stedfast2001-01-103-2/+4
| | | | | | | | 2001-01-10 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Changed Priority to Score. svn path=/trunk/; revision=7357