aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-xml.c
Commit message (Collapse)AuthorAgeFilesLines
* ** Almost a total rewrite of every file, except for filter-driver whichNot Zed2000-07-301-591/+0
| | | | | | | | | | | 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
* add a "string" typeDan Winship2000-07-101-1/+8
| | | | | | | | | | | | | | * filter-xml.[ch]: add a "string" type * filtertype.xml, vfoldertypes.xml: Use type="string" rather than "folder" for subject/body matching. * filter-arg-types.c: Update some strings for "text" input. Fix some warnings (including one that pointed out a real bug). * filter-arg.c, filter-druid.c, filter-format.c: fix warnings svn path=/trunk/; revision=4025
* Add some checks for bad/nonexistant XML docs.Peter Williams2000-07-011-0/+4
| | | | svn path=/trunk/; revision=3828
* When loading the description, strdup() the string in the XML tree soEttore Perazzoli2000-06-281-2/+2
| | | | | | that we don't crash when freeing the XML tree. svn path=/trunk/; revision=3761
* Fix some html formatting.NotZed2000-05-171-2/+1
| | | | | | | | | | | | | | | 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
* Initial filter rules.Michael Zucci2000-05-171-0/+20
| | | | | | | | | | | | | | * filtertypes.xml: Initial filter rules. * filter-xml.c (filter_write_optionset): Save the description also. (write_description): Routine to save description - only saves 1 node of description. * filter-arg.c (filter_arg_edit_clicked): Dont free edata here, let the destroy do it(?) svn path=/trunk/; revision=3098
* Bunch of cleanup.NotZed2000-05-161-51/+35
| | | | | | | | | | | 2000-05-15 NotZed <NotZed@HelixCode.com> * filter-xml.[ch]: Bunch of cleanup. * filter-xml.c (filter_*_file): New interfaces to read/write files directly, rather than messing with xmldoc crap. svn path=/trunk/; revision=3051
* Plug some minor memleaks.NotZed2000-03-281-6/+24
| | | | | | | | | | | | | | | | | 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
* Actually implement filtering, at least, from Inbox. Copy messages toNotZed2000-03-051-30/+33
| | | | | | | | | | | | | | | 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
* Disconnect the list signal, so we dont get spurious emits during destroy.NotZed2000-03-031-0/+3
| | | | | | | | | | | | | | 2000-03-02 NotZed <NotZed@HelixCode.com> * filter-druid.c (object_destroy): Disconnect the list signal, so we dont get spurious emits during destroy. (arg_changed): Callback to update filter arg asynchronously. (arg_link_clicked): Edit the value non-modally. * filter-arg.c (filter_arg_edit_values_1): Changed to use non-modal interface. svn path=/trunk/; revision=2015
* Functions for memory management.NotZed2000-02-251-1/+71
| | | | | | | | | | | | | | | | | 2000-02-24 NotZed <NotZed@HelixCode.com> * filter-xml.c (filter_description_free): (filter_load_ruleset_free): (filter_load_optionset_free): Functions for memory management. * filter-arg.c (filter_arg_copy): Copy the values of one arg into another. * filter-druid.c: (option_name_changed): Update the option's description as the user enters it in. svn path=/trunk/; revision=1929
* New utility functions for working with the internal rule format.NotZed2000-02-221-0/+66
| | | | | | | | | | | | | | | | | | | | | | 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-251/+10
| | | | | | | | | | 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/+658
svn path=/trunk/; revision=1786