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-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-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-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-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-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-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-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-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-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 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-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-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-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-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-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-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 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-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-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-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-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-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-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
* 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-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-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-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-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-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-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