aboutsummaryrefslogtreecommitdiffstats
path: root/filter
Commit message (Collapse)AuthorAgeFilesLines
* moved e-error to e-utilNot Zed2005-05-1611-71/+50
| | | | | | | | | | 2005-05-16 Not Zed <NotZed@Ximian.com> * moved e-error to e-util * Makefile.am: fix error i18n extraction svn path=/trunk/; revision=29364
* Remove markup from translatable string. Fixes #268390 Patch submitted bySarfraaz Ahmed2005-05-062-1/+9
| | | | | | | | | 2005-05-06 Sarfraaz Ahmed <asarfraaz@novell.com> * filter-rule.c : Remove markup from translatable string. Fixes #268390 Patch submitted by Priit Laes svn path=/trunk/; revision=29302
* Fix for 72676.Harry Lu2005-02-182-0/+15
| | | | | | | | | | | 2005-02-17 Harry Lu <harry.lu@sun.com> Fix for 72676. * rule-editor.c: (double_click): call gtk_tree_selection_get_selected to see if there is a row selected. svn path=/trunk/; revision=28808
* Install shared libraries to privlibdir.Hans Petter Jansson2005-02-102-1/+5
| | | | | | | | | | | | | | | | 2005-02-09 Hans Petter Jansson <hpj@novell.com> * addressbook/gui/contact-editor/Makefile.am: * addressbook/gui/contact-list-editor/Makefile.am: * addressbook/util/Makefile.am: * filter/Makefile.am: * widgets/e-timezone-dialog/Makefile.am: * widgets/menus/Makefile.am: * widgets/misc/Makefile.am: * smime/lib/Makefile.am: * smime/gui/Makefile.am: Install shared libraries to privlibdir. svn path=/trunk/; revision=28762
* cast lenght specifiers to int.Not Zed2005-01-122-2/+7
| | | | | | | | | 2005-01-11 Not Zed <NotZed@Ximian.com> * filter-part.c (filter_part_expand_code): cast lenght specifiers to int. svn path=/trunk/; revision=28372
* Added label "Show filters for mail:".Diego Sevilla Ruiz2004-12-073-1/+29
| | | | | | | | | | | 2004-12-02 Diego Sevilla Ruiz <dsevilla@dsevilla> * filter.glade: Added label "Show filters for mail:". * filter-rule.c: Capitalize Ingoing and Outgoing labels. Fixes #46229. svn path=/trunk/; revision=28078
* Moved stuff from e-util to libedataserver.Not Zed2004-12-038-7/+13
| | | | | | | | | | 2004-11-15 Not Zed <NotZed@Ximian.com> * *.c: Moved stuff from e-util to libedataserver. * filter-system-flag.c: removed gal header. svn path=/trunk/; revision=28051
* add mnemonic widget in search box.Mengjie Yu2004-12-012-2/+7
| | | | | | | | 2004-11-29 Mengjie Yu <meng-jie.yu@sun.com> * filter-rule.c: (get_widget):add mnemonic widget in search box. svn path=/trunk/; revision=28031
* added the "use_filechooser" property to the GnomeFileEntryCarlos Garnacho Parro2004-08-132-0/+6
| | | | | | | | | 2004-07-29 Carlos Garnacho Parro <carlosg@gnome.org> * filter-file.c: added the "use_filechooser" property to the GnomeFileEntry svn path=/trunk/; revision=26891
* encode entities. fixes bug #46677.Jeffrey Stedfast2004-06-222-0/+8
| | | | | | | | 2004-06-21 Jeffrey Stedfast <fejj@novell.com> * filter-input.c (xml_encode): encode entities. fixes bug #46677. svn path=/trunk/; revision=26443
* Re-added - THIS IS NOT TO BE REMOVED!!!!Jeffrey Stedfast2004-06-182-0/+28
| | | | | | | | 2004-06-18 Jeffrey Stedfast <fejj@ximian.com> * filter-errors.xml.h: Re-added - THIS IS NOT TO BE REMOVED!!!! svn path=/trunk/; revision=26416
* Remove this generated file from CVSRodney Dawes2004-06-172-24/+4
| | | | | | | | 2004-06-17 Rodney Dawes <dobey@novell.com> * filter-errors.xml.h: Remove this generated file from CVS svn path=/trunk/; revision=26389
* ** See #59885.Not Zed2004-06-1738-5731/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-17 Not Zed <NotZed@Ximian.com> ** See #59885. ** Moved all of the mailer specific filter stuff into mail/*. * filter-element.c (copy_value): implement for base types. * filter-element.c (filter_element_copy_value): do this as a virtual method. * filter.glade: moved the vfolder stuff to mail/ * libfilter-i18n.h: removed, moved to mailer. * filter-errors.xml: moved the vfolder/filtering errors to the mail error file. * Makefile.am (EXTRA_DIST): moved *types.xml to mail. (INCLUDES): removed a bunch of mail dependencies. * filter-*.[ch], vfolder-*.[ch]: Moved all mail related filter and vfolder stuff to mail directory. * score-*.[ch]: Removed all of it. * vfolder-context.c (vfolder_new_element): and for vfolders. * filter-context.c (filter_new_element): implement for filter element types. * rule-context.c (rc_new_element): replacement for old filter_element_new_type_name. only has the basics. * filter-part.c (filter_part_xml_create): take a rule context as an argument & and look up the element name off the context. * rule-context.c (rule_context_new_element): new virtual method to get an element for a given name. * filter-element.c (filter_element_new_type_name): removed. svn path=/trunk/; revision=26379
* give the junk test a unique name. #59567.Not Zed2004-06-082-1/+5
| | | | | | | | 2004-06-08 Not Zed <NotZed@Ximian.com> * filtertypes.xml: give the junk test a unique name. #59567. svn path=/trunk/; revision=26247
* Require e-error-toolRodney Dawes2004-05-282-0/+5
| | | | | | | | | | | | 2004-05-27 Rodney Dawes <dobey@novell.com> * e-util/Makefile.am (dist-hook): Require e-error-tool 2004-05-27 Rodney Dawes <dobey@novell.com> * */Makefile.am (EXTRA_DIST): Add $(error_i18n) for "make dist" svn path=/trunk/; revision=26114
* Removed from CVS Generated files don't belong in CVSRodney Dawes2004-05-262-65/+5
| | | | | | | | | 2004-05-26 Rodney Dawes <dobey@novell.com> * libfilter-i18n.h: Removed from CVS Generated files don't belong in CVS svn path=/trunk/; revision=26102
* don't dist the error .h fileJP Rosevear2004-05-202-1/+4
| | | | | | | | 2004-05-19 JP Rosevear <jpr@novell.com> * Makefile.am: don't dist the error .h file svn path=/trunk/; revision=25979
* fix for folder selector api change, change the ok button to "Add".Not Zed2004-05-182-1/+6
| | | | | | | | | 2004-05-18 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (source_add): fix for folder selector api change, change the ok button to "Add". svn path=/trunk/; revision=25950
* Same.Jeffrey Stedfast2004-05-123-0/+8
| | | | | | | | | | 2004-05-12 Jeffrey Stedfast <fejj@novell.com> * vfolder-rule.c: Same. * filter-folder.c: Added a #include to fix some compile warnings. svn path=/trunk/; revision=25880
* load threading option if threading enabled. (xml_encode): write outNot Zed2004-05-126-27/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-05-12 Not Zed <NotZed@Ximian.com> * filter-rule.c (xml_decode): load threading option if threading enabled. (xml_encode): write out threading setting. (rule_copy): copy threading option. (rule_eq): compare threading. (build_code): build the match-threads stuff if set. (fr_grouping_changed): insead of the match_all match_any activate clalbacks. (fr_threading_changed): handle threading option menu * rule-context.c (rule_context_init): set capabilities flags. * vfolder-context.c (vfolder_context_init): set capabilities flags to include threading. * rule-context.h: added a capabilities flag, grouping and threading capabilities. Sort of a hack to workaround not being able to put grouping or threading into rules. * filter-rule.h: added an option for threading as well as grouping. svn path=/trunk/; revision=25877
* fix i18n file generation rules.Not Zed2004-05-125-55/+106
| | | | | | | | | | | | 2004-05-12 Not Zed <NotZed@Ximian.com> * Makefile.am (%.xml.h): fix i18n file generation rules. * filter-errors.xml: rename from xml.in and fix tags. * filter-errors.xml.h: add for translators. svn path=/trunk/; revision=25867
* Added the Junk status flag to the xml definition so you can vfolder onJeffrey Stedfast2004-05-032-0/+8
| | | | | | | | | 2004-05-03 Jeffrey Stedfast <fejj@ximian.com> * vfoldertypes.xml: Added the Junk status flag to the xml definition so you can vfolder on that. svn path=/trunk/; revision=25755
* updateDan Winship2004-05-031-3/+3
| | | | svn path=/trunk/; revision=25751
* fix a warning.Not Zed2004-04-2811-96/+34
| | | | | | | | | | 2004-04-28 Not Zed <NotZed@Ximian.com> * filter-option.c (filter_option_add): fix a warning. ** Changed error messages to use EError. svn path=/trunk/; revision=25651
* Work in progress, HIG'ing and de-coupling of errors.Michael Zucci2004-04-161-0/+51
| | | | svn path=/trunk/; revision=25493
* renamed filter_label to rule_label, and removed the vfolder-editor andNot Zed2004-03-317-659/+51
| | | | | | | | | | | | | | | | | | | | | | | | 2004-03-31 Not Zed <NotZed@Ximian.com> * filter.glade: renamed filter_label to rule_label, and removed the vfolder-editor and filter-editor windows. * rule-editor.c (rule_editor_new): hide the source widget. * vfolder-editor.c (vfolder_editor_new): hide the source widget. * rule-editor.c (rule_editor_new): add a label argument. * vfolder-editor.c (vfolder_editor_new): ditto below. * filter-editor.c (filter_editor_new): dont add any label here. * rule-editor.c (rule_editor_construct): Put the widget back in the dialogue box here. Add an argument for the area label. ** Revert Rodney's last patch. svn path=/trunk/; revision=25257
* Use the new "filter_editor" that has been added to the glade file RemoveRodney Dawes2004-03-314-274/+402
| | | | | | | | | | | | | | | 2004-03-30 Rodney Dawes <dobey@ximian.com> * filter-editor.c (filter_editor_new): Use the new "filter_editor" that has been added to the glade file * filter.glade: Remove an unused piece of UI definition and add a new "filter_editor" that is the same as rule_editor, only for the filter editor dialogs, and change "Filter Rules" to "Search Rules" in the rule_editor * rule-editor.c (rule_editor_new): Set the child widget of the editor dialog appropriately svn path=/trunk/; revision=25251
* Fix packing of the hbox that contains the actual input widgets to expandRodney Dawes2004-03-303-2/+8
| | | | | | | | | | 2004-03-29 Rodney Dawes <dobey@ximian.com> * filter-filter.c (get_widget): * filter-rule.c (get_widget): Fix packing of the hbox that contains the actual input widgets to expand and fill svn path=/trunk/; revision=25235
* return the added option. (clone): make sure we set the current optionNot Zed2004-03-265-9/+22
| | | | | | | | | | | | | 2004-03-26 Not Zed <NotZed@Ximian.com> * filter-option.c (filter_option_add): return the added option. (clone): make sure we set the current option properly on the new copy. See #56028. * filtertypes.xml: s/pipe to shell command/pipe to program/ s/shell command/run program/, cleans up the UI a lot. svn path=/trunk/; revision=25194
* Use ngettext for handling plurals in filter-datespec. Partial fix for #53464).Danilo Ĺ egan2004-03-202-13/+25
| | | | svn path=/trunk/; revision=25135
* Don't ref the newly cloned rule (fix to previous patch).Jeffrey Stedfast2004-03-172-1/+5
| | | | | | | | | 2004-03-16 Jeffrey Stedfast <fejj@ximian.com> * filter-rule.c (rule_copy): Don't ref the newly cloned rule (fix to previous patch). svn path=/trunk/; revision=25089
* When copying a FilterPart of a rule, we need copy the data of partsBill Zhu2004-03-162-2/+8
| | | | | | | | | 2004-03-14 Bill Zhu <bill.zhu@sun.com> * filter-rule.c (rule_copy): When copying a FilterPart of a rule, we need copy the data of parts together but not only copy the pointer. svn path=/trunk/; revision=25086
* Credit William Jon McCann for original filter HIG patch (forgot to)Rodney Dawes2004-03-161-0/+2
| | | | svn path=/trunk/; revision=25084
* Hide the separators on these dialogs Re-pack the rule_editor widget inRodney Dawes2004-03-1614-461/+651
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-04-15 Rodney Dawes <dobey@ximian.com> * filter-datespec.c (validate): (button_clicked): Hide the separators on these dialogs * filter-editor.c (filter_editor_new): Re-pack the rule_editor widget in here, and get rid of the GtkFrame-related code * filter-file.c (validate): Hide the separators on these dialogs * filter-filter.c (get_widget): Get rid of the GtkFrame, and relayout the widgets to be HIG-compliant * filter-folder.c (validate): Hide the separator on this dialog * filter-input.c (validate): Hide the separator on this dialog * filter-part.c (main): Hide the separator on this dialog * filter-rule.c (validate): Hide the separator on this dialog (get_widget): Get rid of the GtkFrame, and relayout the widgets to be HIG-compliant * filter.glade: Make the widget layouts here be HIG-compliant * rule-context.c (new_rule_response): (rule_context_add_rule_gui): Hide the separators on these dialogs * rule-editor.c (rule_editor_new): Get rid of the GtkFrame-related code (add_editor_response): Hide the dialog separator here (rule_add): Hide the dialog separator here (edit_editor_response): Hide the dialog separator here (rule_edit): Hide the dialog separator here (rule_editor_construct): Remove the rule_editor repacking code Set the dialog vbox's border width to 12 Set the mnemonic for the filter label here Hide the dialog separator on the filter editor dialog * vfolder-editor.c (vfolder_editor_new): Re-pack the appropriate editor widget in here Get rid of the GtkFrame-related code * vfolder-rule.c (validate): Hide the dialog separators here svn path=/trunk/; revision=25083
* After setting the new selected iter, call cursor_changed() so we canJeffrey Stedfast2004-02-212-0/+13
| | | | | | | | | | 2004-02-20 Jeffrey Stedfast <fejj@ximian.com> * rule-editor.c (rule_delete): After setting the new selected iter, call cursor_changed() so we can update state. Fixes bug #54205. svn path=/trunk/; revision=24823
* ** See bug #54338.Not Zed2004-02-204-55/+85
| | | | | | | | | | | | | | | | | | | 2004-02-20 Not Zed <NotZed@Ximian.com> ** See bug #54338. * vfolder-rule.c: instead of overriding the filter-rule's 'source' attribute for 'with sources', add a 'with' enum. (xml_decode): handle loading old-format files, as well as new ones, where the with is a prop on the sources xml. (xml_encode): set 'with' on save. (rule_copy): copy across with value. (get_widget): just hook onto option menu changed, dont bother setting up any per-item callbacks. (select_source_with_changed): callback to monitor source 'with' type. svn path=/trunk/; revision=24815
* implement, since we dont store the min/max values in the xml output, weNot Zed2004-02-172-0/+21
| | | | | | | | | | 2004-02-17 Not Zed <NotZed@Ximian.com> * filter-int.c (int_clone): implement, since we dont store the min/max values in the xml output, we lose it otherwise. Bug #54155. svn path=/trunk/; revision=24757
* Default to an empty string for the value. (xml_decode): Remove old valuesHans Petter Jansson2004-02-072-2/+23
| | | | | | | | | | 2004-02-06 Hans Petter Jansson <hpj@ximian.com> * filter-input.c (filter_input_init): Default to an empty string for the value. (xml_decode): Remove old values before decoding the new ones. svn path=/trunk/; revision=24660
* add widgets/miscDan Winship2004-02-042-0/+5
| | | | | | * Makefile.am (INCLUDES): add widgets/misc svn path=/trunk/; revision=24587
* autogenerated file out of sync in CVSRadek Doulik2004-01-231-1/+1
| | | | svn path=/trunk/; revision=24379
* load from the just-loaded 'userdoc' rather than rc->user.Not Zed2004-01-203-22/+25
| | | | | | | | | | | | 2004-01-20 Not Zed <NotZed@Ximian.com> * rule-context.c (revert): load from the just-loaded 'userdoc' rather than rc->user. (rule_context_finalise): remove user and system xmldoc files. (load): make rc->system and rc->user locals systemdoc userdoc, and free them immediately. svn path=/trunk/; revision=24321
* ** See bug #52467.Not Zed2004-01-162-11/+28
| | | | | | | | | | | | | | 2004-01-16 Not Zed <NotZed@Ximian.com> ** See bug #52467. * vfolder-rule.c (vfr_folder_response): convert the uri to an evolution uri, rather than a camel one, for storage. And remove double-calls to geT_selected_uri. (format_source): treat uri as an evolution uri and convert to a camel one to get something meaningful out of it. svn path=/trunk/; revision=24265
* s/spam/junk, added junk test rule, it must be lost while porting to 1.5Radek Doulik2004-01-153-27/+56
| | | | | | | | | 2004-01-15 Radek Doulik <rodo@ximian.com> * filtertypes.xml: s/spam/junk, added junk test rule, it must be lost while porting to 1.5 svn path=/trunk/; revision=24240
* ** See bug #47751.Not Zed2004-01-074-25/+28
| | | | | | | | | | | | | | 2003-08-20 Not Zed <NotZed@Ximian.com> ** See bug #47751. * rule-editor.c (add_editor_response, edit_editor_response) (rule_edit, rule_add, rule_editor_construct, editor_response): * rule-context.c (new_rule_response, rule_context_add_rule_gui): * filter-datespec.c (button_clicked): RESPONSE_REJECT/ACCEPT -> RESPONSE_CANCEL/OK svn path=/trunk/; revision=24082
* call peek instead of get as the function was renamedJP Rosevear2003-12-232-1/+6
| | | | | | | | | 2003-12-23 JP Rosevear <jpr@ximian.com> * vfolder-rule.c (source_add): call peek instead of get as the function was renamed svn path=/trunk/; revision=24006
* Remove hard coded disable deprecated flagsJP Rosevear2003-12-072-1/+4
| | | | | | | | 2003-12-06 JP Rosevear <jpr@ximian.com> * */Makefile.am: Remove hard coded disable deprecated flags svn path=/trunk/; revision=23658
* added FILTER_SOURCE_JUNKTEST - perform only junktest on incoming mailRadek Doulik2003-12-042-0/+6
| | | | | | | | | 2003-12-04 Radek Doulik <rodo@ximian.com> * filter-rule.h: added FILTER_SOURCE_JUNKTEST - perform only junktest on incoming mail svn path=/trunk/; revision=23628
* turn on deprecated gtk stuffJP Rosevear2003-11-262-1/+4
| | | | | | | | 2003-11-26 JP Rosevear <jpr@ximian.com> * Makefile.am: turn on deprecated gtk stuff svn path=/trunk/; revision=23493
* #include "em-folder-tree.h"Jeffrey Stedfast2003-11-172-2/+7
| | | | | | | | 2003-11-17 Jeffrey Stedfast <fejj@ximian.com> * vfolder-rule.c: #include "em-folder-tree.h" svn path=/trunk/; revision=23382
* fix for folder selector api changes. (vfr_folder_response): handle theNot Zed2003-11-172-27/+36
| | | | | | | | | 2003-11-17 Not Zed <NotZed@Ximian.com> * vfolder-rule.c (source_add): fix for folder selector api changes. (vfr_folder_response): handle the dialog response. svn path=/trunk/; revision=23380
* merged spam filtering branchRadek Doulik2003-11-132-0/+7
| | | | svn path=/trunk/; revision=23302
* 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