aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filtertypes.xml
Commit message (Collapse)AuthorAgeFilesLines
* s/spam/junk, added junk test rule, it must be lost while porting to 1.5Radek Doulik2004-01-151-4/+25
| | | | | | | | | 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
* merged spam filtering branchRadek Doulik2003-11-131-0/+6
| | | | svn path=/trunk/; revision=23302
* Fixes for bugs: #41149, #41150, #41151, #41152, #41153, #41155 and #41156.Jeffrey Stedfast2003-04-121-0/+5
| | | | | | | | | | | | | | | | | | | | | 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
* Removed the Run Once filter action.Jeffrey Stedfast2002-10-111-5/+0
| | | | | | | | 2002-10-10 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Removed the Run Once filter action. svn path=/trunk/; revision=18364
* Changed source account, use header-source rather than (= (get-source) ...)Not Zed2002-09-191-2/+2
| | | | | | | | | 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-141-0/+5
| | | | | | | | | 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
* Add xml to unset system flags.Jeffrey Stedfast2002-07-291-0/+23
| | | | | | | | 2002-07-29 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Add xml to unset system flags. svn path=/trunk/; revision=17626
* Do some minimalistic validation of command-lines (ie, make sure it isn'tJeffrey Stedfast2002-07-251-13/+13
| | | | | | | | | | | | | | 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
* cvs remove.Not Zed2002-07-161-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make the sound type for (play-sound ) a "file" type rather than "string"Jeffrey Stedfast2002-07-091-2/+2
| | | | | | | | | | | | | | | | | 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
* Added a label definition.Jeffrey Stedfast2002-05-171-0/+19
| | | | | | | | | | | | | | | | | 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
* Add filter-file.[c,h] to the build.Jeffrey Stedfast2002-05-101-0/+32
| | | | | | | | | | | | | 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
* The score "is" rule should have a value of "is" and not "less-than".Jeffrey Stedfast2002-04-191-1/+1
| | | | | | | | | 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
* Fix "Follow Up" searches by comparing to the empty string, rather than justRussell Steinthal2002-04-121-2/+7
| | | | | | looking at the string value (which isn't a boolean) (Bug #233340 svn path=/trunk/; revision=16444
* Added closing ) for "not starts with" subject rule. Added closing ) forNot Zed2002-04-101-5/+5
| | | | | | | | | | 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-101-1/+1
| | | | | | | | | 2002-04-10 Not Zed <NotZed@Ximian.com> * filtertypes.xml: Added closing ) for "not starts with" subject rule. svn path=/trunk/; revision=16406
* Set 're' as the parent window rather than as the parent widget.Jeffrey Stedfast2002-04-021-1/+1
| | | | | | | | | | 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
* Added beep and play-sound actions.Jeffrey Stedfast2002-03-071-0/+9
| | | | | | | | 2002-03-06 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Added beep and play-sound actions. svn path=/trunk/; revision=15950
* Re-added contains and not-contains. Also added filter/vfolder rules forJeffrey Stedfast2002-02-131-1/+18
| | | | | | | | | | | 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-131-0/+8
| | | | | | | | 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-081-3/+0
| | | | svn path=/trunk/; revision=15600
* Same here.Jeffrey Stedfast2002-02-051-33/+1
| | | | | | | | | | | 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
* Make the date comparisons read the same as the ones in filtertypes.xmlJeffrey Stedfast2002-01-031-4/+4
| | | | | | | | | 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-181-0/+5
| | | | | | | | 2001-12-17 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Add new action to execute a shell command. svn path=/trunk/; revision=15138
* Implements marking messages as "Need Reply".Jon Trowbridge2001-12-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* added a missing close parenJeffrey Stedfast2001-10-261-1/+1
| | | | svn path=/trunk/; revision=14120
* Reverted my previous change, I fixed the filter code to handle this theJeffrey Stedfast2001-08-081-0/+27
| | | | | | | | | | 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-081-27/+0
| | | | | | | | | 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
* Removed the "Forward To" filter action.Jeffrey Stedfast2001-07-211-5/+0
| | | | | | | | 2001-07-20 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Removed the "Forward To" filter action. svn path=/trunk/; revision=11278
* Users should not be able to filter on "Status is Deleted" since we don'tJeffrey Stedfast2001-07-131-3/+0
| | | | | | | | | 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
* Put a match-all around the not-body-contains to make it work per-message.Peter Williams2001-07-111-1/+1
| | | | | | | | | | | 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
* Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): EncodeJon Trowbridge2001-07-091-3/+3
| | | | | | | | | | | | | 2001-07-09 Jon Trowbridge <trow@ximian.com> * filter-source.c (filter_source_get_sources): Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): Encode things properly. (xml_decode): Decode things properly. (get_widget): Ignore accounts w/o source URLs. (clone): Set the ->name in our copy. svn path=/trunk/; revision=10903
* Fix bug #4043: s/colour/colorJeffrey Stedfast2001-07-061-1/+1
| | | | | | | | 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Fix bug #4043: s/colour/color svn path=/trunk/; revision=10832
* Added an integer type for filtering values. used for size.Sam Creasey2001-07-031-0/+20
| | | | | | | | | | | | 2001-07-02 Sam Creasey <sammy@oh.verio.com> * filter-int.c: Added an integer type for filtering values. used for size. * Makefile.am (SOURCES): added filter-int.c, filter-int.h * filtertypes.xml: added a part entry for size based filters svn path=/trunk/; revision=10717
* Make "Move" the default action.Jeffrey Stedfast2001-06-281-5/+5
| | | | | | | | 2001-06-27 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Make "Move" the default action. svn path=/trunk/; revision=10533
* s/Is/is/ and s/Is Not/is not/ to be more consistant with the rest.Jeffrey Stedfast2001-04-161-2/+2
| | | | | | | | | 2001-04-15 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: s/Is/is/ and s/Is Not/is not/ to be more consistant with the rest. svn path=/trunk/; revision=9331
* Make the (previously unused) get-source command actually do the rightJon Trowbridge2001-04-141-0/+19
| | | | | | | | | | | | | | | | | | | | | | 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
* Remove the menu that is in the glade file because we want to replace itJeffrey Stedfast2001-03-171-2/+20
| | | | | | | | | | | | | | 2001-03-17 Jeffrey Stedfast <fejj@ximian.com> * filter-editor.c (filter_editor_construct): Remove the menu that is in the glade file because we want to replace it with our menu, not append items to that menu. * filtertypes.xml: Oops, missed the system-flag action-set. * vfoldertypes.xml: Update "status" ruleset. svn path=/trunk/; revision=8780
* Removed filter-url.[c,h] and filter-system-flag.[c,h]Jeffrey Stedfast2001-03-171-21/+17
| | | | | | | | | | | | | | | | | | | 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
* Added an "Attachments" filter option where you can filter messages thatJeffrey Stedfast2001-03-131-0/+18
| | | | | | | | | | | 2001-03-12 Jeffrey Stedfast <fejj@ximian.com> * filtertypes.xml: Added an "Attachments" filter option where you can filter messages that have (or do not have) attachments. This does not allow you to filter based on the types of the attachments. svn path=/trunk/; revision=8652
* renamed mailing list options to be more meaningful.Not Zed2001-02-231-10/+10
| | | | | | | | | | | | 2001-02-23 Not Zed <NotZed@Ximian.com> * filtertypes.xml: renamed mailing list options to be more meaningful. * vfoldertypes.xml: renamed mailing list options to be more meaningful. svn path=/trunk/; revision=8357
* Added mailing list matching rules.Not Zed2001-02-231-0/+47
| | | | | | | | | | 2001-02-23 Not Zed <NotZed@Ximian.com> * filtertypes.xml: Added mailing list matching rules. * vfoldertypes.xml: Added mailing list rules. svn path=/trunk/; revision=8356
* Changed Priority to Score.Jeffrey Stedfast2001-01-101-1/+1
| | | | | | | | 2001-01-10 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Changed Priority to Score. svn path=/trunk/; revision=7357
* Attach to the "activate" signal - this should now make it so that aJeffrey Stedfast2001-01-101-1/+1
| | | | | | | | | | | | | | | 2001-01-10 Jeffrey Stedfast <fejj@helixcode.com> * filter-option.c (get_widget): Attach to the "activate" signal - this should now make it so that a filter-option will "remember" what a user changed. * filter-system-flag.c (get_widget): Don't reset fsf->value to the first system flag, this should already be defaulted to the appropriate flag. This should fix the problem of always defaulting to the first menu option and thus "forgetting" the user's settings. svn path=/trunk/; revision=7356
* Added support for the system-flag type.Jeffrey Stedfast2000-12-021-34/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-68/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 allow the user to select "sounds like" or "does not sound like"Jeffrey Stedfast2000-11-011-0/+51
| | | | | | | | | | | | | | | | | 2000-10-31 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Updated to allow the user to select "sounds like" or "does not sound like" (uses header-soundex). * filter-message-search.c (header_matches): Oops. Should be using !g_strncasecmp. This should fix it so this filter match works right. (header_starts_with): Same. (header_ends_with): Same. (header_soundex): New filter callback for soundex matching (yes, it's probably a bloated feature but hey, it was fun to code) svn path=/trunk/; revision=6302
* Updated to add an action to set message flags.Jeffrey Stedfast2000-11-011-0/+35
| | | | | | | | | | | | | | | | | 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/+2
| | | | | | | | | | | | | | | | | | | | | | 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
* Pure formatting changes, no actual code changes. Since I know I'm going toJeffrey Stedfast2000-10-311-3/+2
| | | | | | | | | | | | | | | | 2000-10-30 Jeffrey Stedfast <fejj@helixcode.com> * filter-input.c: * filter-option.c: * filter-part.c: Pure formatting changes, no actual code changes. Since I know I'm going to get flamed for this, I'm sorry but I'll probably have to modify code in these files and it's easier if the code is quickly readable by me. * filter-rule.c (get_widget): Set the "remove" button insensitive for <= 1 instead of == 1. svn path=/trunk/; revision=6283
* Added header-starts-with, header-ends-with, and header-exists menu items.Jeffrey Stedfast2000-10-281-0/+115
| | | | | | | | | | | | | | | | 2000-10-27 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Added header-starts-with, header-ends-with, and header-exists menu items. * filter-message-search.c (header_starts_with): New callback to match the beginnings of headers. (header_ends_with): New callback to match the ends of headers. (header_exists): New callback to determine if a header exists which is useful when filtering out all those pesky bug-buddy emails! svn path=/trunk/; revision=6242
* Add header-matches expressions ("is" / "is not").Jeffrey Stedfast2000-10-281-0/+51
| | | | | | | | | | | 2000-10-27 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Add header-matches expressions ("is" / "is not"). * filter-message-search.c (header_matches): New callback to match headers exactly (aka strcmp rather than strstr). svn path=/trunk/; revision=6240
* Readded Source url stuff.Jeffrey Stedfast2000-10-261-0/+20
| | | | | | | | | | | | | | | 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
* Added option menu items to allow searching based on regular expressions.Jeffrey Stedfast2000-10-261-6/+73
| | | | | | | | | | | | | | | 2000-10-25 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Added option menu items to allow searching based on regular expressions. * filter-message-search.c (body_regex): New callback to match text in the body using regex. (body_contains): Modified to only match using strstr. (header_regex): New callback to match headers using regex. (header_contains): Modified to only match using strstr. svn path=/trunk/; revision=6177
* Take out the reference to "Source".Jeffrey Stedfast2000-10-251-20/+0
| | | | | | | | 2000-10-24 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Take out the reference to "Source". svn path=/trunk/; revision=6159
* Added filter-url.[c,h].Jeffrey Stedfast2000-10-211-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Modified to use more intuitive namingJeffrey Stedfast2000-09-191-39/+42
| | | | | | | | | | | | | | | | | | | | | | 2000-09-18 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Modified to use more intuitive naming * score-rule.c (xml_decode): Make sure the score is within our range (get_widget): Changed range to -3 to +3 * filter-score.c (get_widget): Changed range to -3 to +3 (xml_decode): Make sure the score is within our range * filter-rule.c (get_widget): Rearranged widgets. * filter-filter.c (get_widget): Rearranged widgets. * filter-editor.c (filter_editor_construct): Updated to allow for double-clicking on a rule to edit it. svn path=/trunk/; revision=5492
* Changed "Header" to be "Message header" so it's not quite as confusingJeffrey Stedfast2000-09-121-1/+1
| | | | | | | | | 2000-09-11 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Changed "Header" to be "Message header" so it's not quite as confusing (??) svn path=/trunk/; revision=5335
* just changed the ${subject} variable to ${word} as subject doesn't make a ↵Jeffrey Stedfast2000-09-121-3/+3
| | | | | | whole lot of sense when dealing with arbitrary headers :-) svn path=/trunk/; revision=5332
* Updated to allow the user to specify arbitrary headers.Jeffrey Stedfast2000-09-121-0/+21
| | | | | | | | | 2000-09-11 Jeffrey Stedfast <fejj@helixcode.com> * filtertypes.xml: Updated to allow the user to specify arbitrary headers. svn path=/trunk/; revision=5330
* Added scoring xml stuffsJeffrey Stedfast2000-09-091-0/+37
| | | | | | | | | | | | | | | | | | | | | | 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
* Rewrote - this shouldn't need to be an async functionJeffrey Stedfast2000-09-081-5/+0
| | | | | | | | | | | | | 2000-09-07 Jeffrey Stedfast <fejj@helixcode.com> * filter-driver.c (filter_driver_run): Rewrote - this shouldn't need to be an async function * filter-message-search.c (match_all): Modified to look at the boolean value being fed to it and just to return that instead of always returning TRUE svn path=/trunk/; revision=5241
* Allow filtering / vfoldering based on time or datePeter Williams2000-08-161-0/+72
| | | | svn path=/trunk/; revision=4843
* ** Almost a total rewrite of every file, except for filter-driver whichNot Zed2000-07-301-107/+102
| | | | | | | | | | | 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-3/+3
| | | | | | | | | | | | | | * 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
* Fix typos and update the "to-address" rule to match To or Cc. Fix typos.Dan Winship2000-07-061-3/+4
| | | | | | | | * filtertypes.xml: Fix typos and update the "to-address" rule to match To or Cc. * vfoldertypes.xml: Fix typos. svn path=/trunk/; revision=3889
* And here too.Not Zed2000-05-311-0/+15
| | | | | | | | | | | 2000-05-30 Not Zed <NotZed@HelixCode.com> * filtertypes.xml: And here too. * vfoldertypes.xml: Add body-contains and not-body-contains types. svn path=/trunk/; revision=3306
* Initial filter rules.Michael Zucci2000-05-171-0/+94
* 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