Commit Graph

346 Commits

Author SHA1 Message Date
d6d2ed38f2 add empty statement after label to make it ANSI.
* filter-context.c (filter_delete_uri): add empty statement after
        label to make it ANSI.

svn path=/trunk/; revision=18158
2002-09-22 23:53:55 +00:00
c1e57e32d9 Changed source account, use header-source rather than (= (get-source) ...)
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
2002-09-19 13:28:00 +00:00
f34f1b7ca5 Add a Run Once action to run a command only once rather than for each
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
2002-09-13 20:20:40 +00:00
f6b959c9ec Dont allow duplicate names. (edit_editor_clicked): Same here. For #24803.
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
2002-08-08 02:49:56 +00:00
f5b0266037 Don't need to save temp/backup files anymore, e_xml_save_file() now
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
2002-08-07 03:58:56 +00:00
b91558e435 Use e_xml_save_file(). (xml_doc_save): Removed this code and added it to
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
2002-08-06 21:00:16 +00:00
4e8deb5e4c New internal function to replace xmlSaveFile. Does proper error checking
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
2002-08-05 23:37:08 +00:00
a683952c13 Added a datespec editor window.
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
2002-08-02 04:00:22 +00:00
0598c3fb26 If the value was unset, initialize it to now.
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
2002-08-01 17:08:55 +00:00
57ced76e37 (xml_create): Remove unused variable.
svn path=/trunk/; revision=17662
2002-07-31 21:23:34 +00:00
c7f08ebc3d Translate the rule name when filling in the name entry.
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
2002-07-30 23:02:05 +00:00
1ad1815c8f Add xml to unset system flags.
2002-07-29  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Add xml to unset system flags.

svn path=/trunk/; revision=17626
2002-07-29 05:25:52 +00:00
e205c79474 Use fs->type in xmlGetProp since we already free'd 'type'. Fixes bug
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
2002-07-26 21:38:28 +00:00
00a8f5e2ec Use GtkType (I only changed this one because I turned on debugging for a
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
2002-07-25 08:49:56 +00:00
6147ca54a4 Do some minimalistic validation of command-lines (ie, make sure it isn't
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
2002-07-25 07:45:01 +00:00
6485e5fcf7 Use the U_() macro to get the UTF-8 translation.
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
2002-07-17 18:31:19 +00:00
09a5b6b00a cvs remove.
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
2002-07-16 02:36:20 +00:00
da109858da Changelog is pending some other patch approval so i'm not commiting.
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
2002-07-15 14:19:55 +00:00
68ec840bca ** fixes for #10781
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
2002-07-15 01:46:17 +00:00
b749cf0772 Make the sound type for (play-sound ) a "file" type rather than "string"
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
2002-07-08 20:30:39 +00:00
b6373dfed8 fixed a spelling mistake
svn path=/trunk/; revision=17009
2002-05-24 18:40:49 +00:00
2da4da2fa8 *** empty log message ***
svn path=/trunk/; revision=17007
2002-05-24 17:41:18 +00:00
7b109c7c3f Add libfilter-i18n.h.
svn path=/trunk/; revision=17006
2002-05-24 17:39:28 +00:00
657bf012aa Fix English grammar.
* filter-rule.c (get_widget): Fix English grammar.

svn path=/trunk/; revision=17005
2002-05-24 17:38:44 +00:00
7cd27bf6a4 Added a label definition.
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
2002-05-16 20:01:51 +00:00
593b9aec6c Set the path in the entry widget.
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
2002-05-10 00:06:52 +00:00
a23d192991 Add filter-file.[c,h] to the build.
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
2002-05-09 23:14:33 +00:00
61ad53bfa9 New filter widgets for choosing files and/or command-line's (?). Not yet
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
2002-05-09 19:49:10 +00:00
d616d97a3e Changed to return a GList *, a list of the names of the rules affected by
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
2002-05-08 06:36:28 +00:00
419bf1d020 Get rid of ibex stuff, we no longer use it.
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
2002-04-27 00:35:41 +00:00
eb1f04235a The score "is" rule should have a value of "is" and not "less-than".
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
2002-04-18 20:08:17 +00:00
883cf4d180 Fixed a grammer mistake, or so according to bug #23376. Whatever.
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
2002-04-12 20:44:59 +00:00
a00fe6ed72 Fix "Follow Up" searches by comparing to the empty string, rather than just
looking at the string value (which isn't a boolean) (Bug #233340

svn path=/trunk/; revision=16444
2002-04-12 01:37:34 +00:00
c5ac2a9e51 Check that there is a value to setup. Fixes #15470.
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
2002-04-10 10:27:39 +00:00
0ed2607807 This needs to return a gboolean (TRUE). (rule_edit): Using
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
2002-04-09 21:51:07 +00:00
ef108f7218 Added closing ) for "not starts with" subject rule. Added closing ) for
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
2002-04-09 16:36:49 +00:00
fb12a78742 Added closing ) for "not starts with" subject rule.
2002-04-10  Not Zed  <NotZed@Ximian.com>

        * filtertypes.xml: Added closing ) for "not starts with" subject
        rule.

svn path=/trunk/; revision=16406
2002-04-09 16:26:49 +00:00
f99f9d9488 Remove the #ifndef SHELL part. Use an EvolutionFolderSelectorButton.
* 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
2002-04-04 20:03:02 +00:00
9b63de40b6 Set 're' as the parent window rather than as the parent widget.
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
2002-04-01 23:47:51 +00:00
007a437688 Free account_name so we don't leak. Also after getting the source uri, use
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
2002-03-18 20:11:05 +00:00
ae4be8efcc updated i18n header
svn path=/trunk/; revision=15951
2002-03-06 21:19:47 +00:00
0465444d8c Added beep and play-sound actions.
2002-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Added beep and play-sound actions.

svn path=/trunk/; revision=15950
2002-03-06 21:19:15 +00:00
1b00ce5ca9 Copy values across to new part.
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
2002-02-26 02:27:22 +00:00
b493c854ea Re-added contains and not-contains. Also added filter/vfolder rules for
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
2002-02-12 22:08:05 +00:00
54fca5162a Re-added contains and not-contains.
2002-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Re-added contains and not-contains.

svn path=/trunk/; revision=15687
2002-02-12 20:14:11 +00:00
787b8a2f0c NeedsReply no longer exists
svn path=/trunk/; revision=15600
2002-02-07 21:21:25 +00:00
f4f407373f Same here.
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
2002-02-04 22:03:36 +00:00
79a377ddf2 Final cleanup for the CFLAGS and LIBS in the Makefiles.
svn path=/trunk/; revision=15486
2002-01-27 17:21:36 +00:00
09f9d4896e check if re->edit != NULL before trying to unref it. Fixes a segfault when
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
2002-01-26 22:17:35 +00:00
d636d53bc9 If we write "" to an xml file, we read back NULL. So if we read back NULL,
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
2002-01-15 02:26:10 +00:00