aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-element.c
Commit message (Collapse)AuthorAgeFilesLines
* Make the (previously unused) get-source command actually do the rightJon Trowbridge2001-04-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | 2001-04-13 Jon Trowbridge <trow@gnu.org> * camel-filter-search.c (get_source): Make the (previously unused) get-source command actually do the right thing, properly shrouding any passed-in source and falling back to use the source attached to the mime message. 2001-04-13 Jon Trowbridge <trow@gnu.org> * filtertypes.xml: Add XML specs for source account filtering. * filter-element.c (filter_element_new_type_name): Recognize type "source", construct a FilterSource. * filter-source.c: Added. A FilterElement for the account e-mail comes from. svn path=/trunk/; revision=9304
* Fix headers. Remove unneccesary ones and replace with more finegrainedKjartan Maraas2001-03-301-2/+3
| | | | | | | | | 2001-03-30 Kjartan Maraas <kmaraas@gnome.org> * *.*: Fix headers. Remove unneccesary ones and replace with more finegrained ones where needed. svn path=/trunk/; revision=9028
* If the filter type is a "system-flag", use the optionlist type as typeJeffrey Stedfast2001-03-181-1/+1
| | | | | | | | | | | 2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * filter-element.c (filter_element_new_type_name): If the filter type is a "system-flag", use the optionlist type as type system-flag has been removed. This should allow backward compatability. svn path=/trunk/; revision=8785
* Removed filter-url.[c,h] and filter-system-flag.[c,h]Jeffrey Stedfast2001-03-171-6/+0
| | | | | | | | | | | | | | | | | | | 2001-03-16 Jeffrey Stedfast <fejj@ximian.com> * Makefile.am: Removed filter-url.[c,h] and filter-system-flag.[c,h] * filter-element.c (filter_element_new_type_name): Removed references to the url-type and system-flag types. * filtertypes.xml: Removed "source" type and fixed "status" to use the optionmenu. * filter-url.[c,h]: Removed. * filter-system-flag.[c,h]: Removed (just use optionmenu). svn path=/trunk/; revision=8768
* Add #include <config.h> and mark some strings for translation.Kjartan Maraas2001-02-051-0/+4
| | | | | | | | | | | 2001-02-05 Kjartan Maraas <kmaraas@gnome.org> * filter-code.c, filter-colour.c, filter-context.c, filter-element.c, filter-input.c, filter-score.c, filter-system-flag.c, filter-url.c: Add #include <config.h> and mark some strings for translation. svn path=/trunk/; revision=7967
* Added support for the system-flag type.Jeffrey Stedfast2000-12-021-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-12-01 Jeffrey Stedfast <fejj@helixcode.com> * filter-element.c (filter_element_new_type_name): Added support for the system-flag type. * Makefile.am: Added filter-system-flag.[c,h]. * filter-system-flag.[c,h]: New type for system flags. * filtertypes.xml: Oops, looks like we were still using integers as arguments to set-flag. Change over to using strings which are safer and also change the name to set-system-flag. * filter-driver.c (do_flag): Use strings instead of integers. Instead of set-flag, the callback is now set-system-flag for less confusion. Sorry Ettore, but you'll have to change your filters. * filtertypes.xml: Added system-flags stuff. * vfoldertypes.xml: And here too. * filter-message-search.c (system_flag): New ESExp callback for filtering on system flags. svn path=/trunk/; revision=6764
* Moved the regex filter rule around - we've changed the format a bit.Jeffrey Stedfast2000-11-281-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-11-27 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Moved the regex filter rule around - we've changed the format a bit. * filter-option.c (option_activate): Removed. (get_widget): Don't connect the activate signal. * filter-folder.c (validate): Updated. * filter-datespec.c (validate): Updated. * filter-part.c (filter_part_validate): Updated. * filter-input.c (validate): Check the filter-input type - if it's of type "regex", then check for regex validity. * filter-element.c (filter_element_validate): No longer takes a gpointer argument. (filter_element_new_type_name): Allow type "regex" and create a new filter-input with type "regex". 2000-11-24 Michael Meeks <michael@helixcode.com> * filter-message-search.c (get_full_header): impl. (header_full_regex): use it. 2000-11-23 Michael Meeks <michael@helixcode.com> * filter-message-search.c (header_full_regex): impl. svn path=/trunk/; revision=6685
* Updated to add an action to set message flags.Jeffrey Stedfast2000-11-011-0/+6
| | | | | | | | | | | | | | | | | 2000-10-31 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Updated to add an action to set message flags. * filter-driver.c (do_flag): New callback to set message info flags. * filter-element.c (filter_element_set_data): New convenience function to set the data on a FilterElement. * filter-url.c (get_widget): Set the sources list to point to the FilterElement data. svn path=/trunk/; revision=6298
* If a regex option is selected, change the FilterElement data to TRUE elseJeffrey Stedfast2000-10-311-2/+14
| | | | | | | | | | | | | | | | | | | | | | 2000-10-30 Jeffrey Stedfast <fejj@helixcode.com> * filter-option.c (option_activate): If a regex option is selected, change the FilterElement data to TRUE else set to FALSE. * filter-rule.c (more_parts): Validate the previously entered FilterPart before allowing the user to add a new FilterPart. * filter-part.c (filter_part_validate): New convenience function to validate an entire FilterPart expression. * filter-input.c (validate): Validate the entry text if it contains a regular expression. * filter-element.[c,h]: New virtual function to validate the contents of the FilterElement (useful for regex and sexp). (filter_element_validate): You get the idea... svn path=/trunk/; revision=6285
* Readded Source url stuff.Jeffrey Stedfast2000-10-261-0/+3
| | | | | | | | | | | | | | | 2000-10-26 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Readded Source url stuff. * filter-element.c (filter_element_new_type_name): Added url stuff back in. * filter-url.[c,h]: Back from the dead... * Makefile.am: Re-added filter-url.[c,h]. svn path=/trunk/; revision=6200
* Remove filter-url code.Jeffrey Stedfast2000-10-251-3/+0
| | | | | | | | | | | | | | 2000-10-24 Jeffrey Stedfast <fejj@helixcode.com> * filter-element.c (filter_element_new_type_name): Remove filter-url code. * filter-url.[c,h]: What was I smoking? There's no good reason to filter on source urls as there are other ways to get the same effect. Thanks to both Zucchi and Miguel for helping me see this :-) svn path=/trunk/; revision=6158
* Added filter-url.[c,h].Jeffrey Stedfast2000-10-211-33/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-20 Jeffrey Stedfast <fejj@helixcode.com> * Makefile.am: Added filter-url.[c,h]. * filter-message-search.c (get_source): New callback to get the source url of the message being filtered. (filter_message_search): Now takes a source argument. * filter-element.c (filter_element_new_type_name): Added code to handle URL types. * filter-url.[c,h]: New filter object to handle URLs (ie in the case of filtering on source url). FIXME: find a way to populate the source combo box (including mail-config.h breaks the build in the addressbook - how does including mail-tools.h not break the build???) * filtertypes.xml: Added the source filter type and added the move-to action. * filter-driver.c (do_move): New callback, a "Copy" action should just copy the message to another location while a Move should both copy the message to a new location and delete it from the source location. (do_delete): Set the deleted flag on the message info. (filter_driver_filter_message): Now returns void as we don't care if it was copied or not in the caller functions. Also check the CamelMessageInfo being passed in - if the message has been marked as deleted prior to being filtered, then return immediately as we don't want to apply filter actions to deleted messages. svn path=/trunk/; revision=6094
* Added scoring xml stuffsJeffrey Stedfast2000-09-091-14/+17
| | | | | | | | | | | | | | | | | | | | | | 2000-09-08 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Added scoring xml stuffs * Makefile.am: added filter-score.[c,h] * filter-score.[c,h]: New functions to handle the "score" filter type. * filter-element.c (filter_element_new_type_name): Added support for "score" type. * filter-driver.c (do_score): New ESExp callback for filter actions to set the score on a message. * filter-message-search.c (get_score): New ESExp callback for getting the score tag as an integer value. svn path=/trunk/; revision=5274
* Allow filtering / vfoldering based on time or datePeter Williams2000-08-161-0/+3
| | | | svn path=/trunk/; revision=4843
* ** Almost a total rewrite of every file, except for filter-driver whichNot Zed2000-07-301-0/+264
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