aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-driver.c
Commit message (Collapse)AuthorAgeFilesLines
* ** Almost a total rewrite of every file, except for filter-driver whichNot Zed2000-07-301-148/+46
| | | | | | | | | | | 2000-07-30 Not Zed <NotZed@HelixCode.com> ** Almost a total rewrite of every file, except for filter-driver which just had minor updates. The rule format has changed. svn path=/trunk/; revision=4418
* Update for CamelFolder API changes. (delete_message and get_uids don'tDan Winship2000-07-251-3/+3
| | | | | | | | * filter-driver.c (do_delete, filter_driver_run): Update for CamelFolder API changes. (delete_message and get_uids don't take exceptions any more.) svn path=/trunk/; revision=4304
* Updated to reflect changes to camel_folder_append_message ()Jeffrey Stedfast2000-07-121-2/+5
| | | | | | | | | 2000-07-11 Jeffrey Stedfast <fejj@helixcode.com> * filter-driver.c (filter_driver_run): Updated to reflect changes to camel_folder_append_message () svn path=/trunk/; revision=4104
* Update for camel_folder_search_by_expression change (GList -> GPtrArray).Dan Winship2000-07-081-69/+82
| | | | | | | * filter-driver.c: Update for camel_folder_search_by_expression change (GList -> GPtrArray). svn path=/trunk/; revision=3959
* remove some non-error case debugging messages.Dan Winship2000-07-061-37/+5
| | | | | | * remove some non-error case debugging messages. svn path=/trunk/; revision=3904
* Add uids to the "processed" list only after succesfully doing somethingDan Winship2000-07-061-14/+14
| | | | | | | | | | * filter-driver.c (do_delete, do_copy, do_stop, filter_driver_run): Add uids to the "processed" list only after succesfully doing something with them. Fixes the problem where copying a message to a folder that didn't exist would result in it disapearing. svn path=/trunk/; revision=3887
* Get filters to work by not freeing the XML document nor the ruleset.Ettore Perazzoli2000-07-031-0/+2
| | | | | | | | This probably makes us leak, but I don't understand how the code is supposed to work so I cannot do the correct fix. At least filters (seem to) work now. svn path=/trunk/; revision=3867
* freeze the folder to avoid multiple folder_changed's (close_folder): andDan Winship2000-07-031-1/+6
| | | | | | | | * filter-driver.c (open_folder): freeze the folder to avoid multiple folder_changed's (close_folder): and thaw it. svn path=/trunk/; revision=3864
* kill filter_driver_set_session and filter_driver_set_rules and insteadDan Winship2000-07-031-53/+22
| | | | | | | | | | | | * filter-driver.c (filter_driver_new): kill filter_driver_set_session and filter_driver_set_rules and instead make filter_driver_new take the rules and a callback function it can use to turn URIs into folders. (open_folder): Use the callback function rather than calling camel directly: some URIs need special handling to turn them into stores and folders correctly, so let the mailer do that. svn path=/trunk/; revision=3859
* Updated to reflect changes made to camel-folder.Jeffrey Stedfast2000-07-021-3/+3
| | | | | | | | | 2000-07-01 Jeffrey Stedfast <fejj@helixcode.com> * filter-driver.c: Updated to reflect changes made to camel-folder. svn path=/trunk/; revision=3846
* Add some checks for bad/nonexistant XML docs.Peter Williams2000-07-011-1/+5
| | | | svn path=/trunk/; revision=3828
* Added a #include <gnome-xml/parser.h> as this was needed (since we usedJeffrey Stedfast2000-06-271-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-06-26 Jeffrey Stedfast <fejj@helixcode.com> * filter-editor.c: Added a #include <gnome-xml/parser.h> as this was needed (since we used the xml parser...) (druid_dialogue_clicked): Do we want to use struct filter_option or do we instead want to use struct filter_optionrule as we had before? Since the function we pass the data to expects filter_option, I suspect that that is what we want. * filter-format.h (filter_description_html_write): Renamed from description_html_write in order to match function name in filter-format.c * filter-druid.c (option_name_changed): Fixed a memory leak (Free'd a filter description list). * filter-arg-types.c (arg_folder_edit_values): Free'd GList data in argin->values. * filter-driver.c (filter_driver_set_rules): Added code to free an xmlDoc and some other data. * filter-arg.h: Add prototypes for filter_arg_write_html() and filter_arg_write_text(); * filter-arg-types.c: Lets see if we can't get rid of some of these warnings... (use some casts to make warnings go away) (arg_address_edit_value): Lets make sure that ad exists before looking at member data. svn path=/trunk/; revision=3741
* Update for Camel flag handling changes.Dan Winship2000-06-171-8/+2
| | | | | | | * filter-driver.c (do_delete, filter_driver_run): Update for Camel flag handling changes. svn path=/trunk/; revision=3599
* Update for CamelFolder changes.Dan Winship2000-06-161-8/+1
| | | | | | | * filter-driver.c (open_folder, close_folder): Update for CamelFolder changes. svn path=/trunk/; revision=3582
* Update for folder existence/creation changes.Dan Winship2000-06-071-5/+1
| | | | | | | * filter-driver.c (open_folder): Update for folder existence/creation changes. svn path=/trunk/; revision=3454
* Free the exception and the priv struct.Christopher James Lahey2000-06-021-0/+4
| | | | | | | | 2000-06-02 Christopher James Lahey <clahey@helixcode.com> * filter-driver.c: Free the exception and the priv struct. svn path=/trunk/; revision=3387
* New file - lists rules appropriate for vfolders (no actions, etc).Not Zed2000-05-281-28/+48
| | | | | | | | | | | | | | | | | 2000-05-27 Not Zed <NotZed@HelixCode.com> * vfoldertypes.xml: New file - lists rules appropriate for vfolders (no actions, etc). * Makefile.am (EXTRA_DIST): Add vfoldertypes.xml * filter-driver.c (filter_driver_expand_option): Made public from expand_filter_option. (filter_driver_rule_count): find out how many user rules are defined. (filter_driver_rule_get): Get a user rule by index. svn path=/trunk/; revision=3240
* update for camel_folder_get_uids changeDan Winship2000-05-191-8/+8
| | | | | | | * filter-driver.c (filter_driver_run): update for camel_folder_get_uids change svn path=/trunk/; revision=3127
* Fix some html formatting.NotZed2000-05-171-17/+35
| | | | | | | | | | | | | | | 2000-05-17 NotZed <NotZed@HelixCode.com> * filter-druid.c: Fix some html formatting. 2000-05-16 NotZed <NotZed@HelixCode.com> * filter-driver.c (filter_driver_run): Delete all processed messages. This is probably going to slow it down a bit. (filter_driver_run): Close folders before destroying them *sigh*. (open_folder): Actually open the folder. Doh. svn path=/trunk/; revision=3101
* Removed filter-driver test program, now just part of libfilter.NotZed2000-05-161-150/+348
| | | | | | | | | | | | 2000-05-15 NotZed <NotZed@HelixCode.com> * Makefile.am: Removed filter-driver test program, now just part of libfilter. * filter-driver.c: Made an object, with an api and everything, can apply a filter to a given mailbox. svn path=/trunk/; revision=3050
* Fix for api.NotZed2000-05-021-12/+1
| | | | | | | | 2000-05-01 NotZed <NotZed@HelixCode.com> * filter-driver.c (main): Fix for api. svn path=/trunk/; revision=2726
* Remove no-longer-necessary call to camel_provider_register_as_module.Dan Winship2000-05-011-1/+0
| | | | | | | * filter-driver.c (start): Remove no-longer-necessary call to camel_provider_register_as_module. svn path=/trunk/; revision=2693
* Removed a bunch of crappy unrequired headers.NotZed2000-04-211-7/+1
| | | | | | | | | | 2000-04-20 NotZed <NotZed@HelixCode.com> * filter-driver.c: Removed a bunch of crappy unrequired headers. * Makefile.am (filter_driver_LDADD): Added libibex back again. svn path=/trunk/; revision=2534
* kill camel-logDan Winship2000-04-191-1/+0
| | | | svn path=/trunk/; revision=2487
* Plug some minor memleaks.NotZed2000-03-281-0/+12
| | | | | | | | | | | | | | | | | 2000-03-27 NotZed <NotZed@HelixCode.com> * filter-xml.c (tokenise_xmlfreeprop): Free a prop after tokenising it. (find_node_attr): Free the prop after using it. (load_desc): Ditto. I use free() because xmlFree() is nowhere to be found. (filter_load_optionset): Ditto. * filter-arg-types.c (arg_address_values_add_xml): free() xml stuff, plugs a leak. (arg_folder_values_add_xml): Ditto. svn path=/trunk/; revision=2193
* Changed to use async search api.NotZed2000-03-241-1/+15
| | | | | | | | 2000-03-22 NotZed <NotZed@HelixCode.com> * filter-driver.c (main): Changed to use async search api. svn path=/trunk/; revision=2153
* Actually implement filtering, at least, from Inbox. Copy messages toNotZed2000-03-051-65/+232
| | | | | | | | | | | | | | | 2000-03-04 NotZed <NotZed@HelixCode.com> * filter-driver.c (main): Actually implement filtering, at least, from Inbox. Copy messages to folder (in the same store only, so far), delete, and stop processing are implemented, and the logic to handle default processing. * filter-xml.c (load_optionvalue): Fix up a bug where we lost the name of the arg (ouch). * filter-xml.c: Wrapped printf's in debug macros. svn path=/trunk/; revision=2054
* Remove gui code, this will be actual filtering code.NotZed2000-03-011-257/+14
| | | | | | | | | | | | | 2000-02-29 NotZed <NotZed@HelixCode.com> * filter-driver.c (main): Remove gui code, this will be actual filtering code. * Makefile: Added filter-editor to the library. * filter-editor.c (main): Comment out, make it a proper library. svn path=/trunk/; revision=1991
* Removed unused header.NotZed2000-02-291-2/+2
| | | | | | | | 2000-02-28 NotZed <NotZed@HelixCode.com> * filter-druid.c: Removed unused header. svn path=/trunk/; revision=1982
* Removed references to filter-sexp.[ch].NotZed2000-02-291-16/+16
| | | | | | | | | | | 2000-02-28 NotZed <NotZed@HelixCode.com> * Makefile: Removed references to filter-sexp.[ch]. * filter-sexp.[ch]: Removed some unecessary includes. Moved to e-util. Renamed callers. svn path=/trunk/; revision=1981
* New utility functions for working with the internal rule format.NotZed2000-02-221-7/+13
| | | | | | | | | | | | | | | | | | | | | | 2000-02-22 NotZed <NotZed@HelixCode.com> * filter-xml.c (filter_clone_optionrule): (filter_clone_optionrule_free): (filter_optionrule_new_from_rule): New utility functions for working with the internal rule format. * filter-arg.[ch]: Added new callbacks for editing a single value, and a new editor which shows all items in a list, and allows you to edit them via the single-edit method. This needs some cleanup for some unused/unusable virtual methods (edit_values, write_html?). * Makefile: Add the druid for build. * filter-druid.c: A 'druid' widget for editing a single filter rule. svn path=/trunk/; revision=1901
* Now have loader/save, basic gui elements (which i wantNotZed2000-02-191-48/+338
| | | | | | | | | | to change), and uh, other stuff i forget right now. 2000-02-18 NotZed <NotZed@HelixCode.com> * Uh, more changes, lots, its still work in progress. svn path=/trunk/; revision=1851
* Initial revisionMichael Zucci2000-02-161-0/+176
svn path=/trunk/; revision=1786