Commit Graph

269 Commits

Author SHA1 Message Date
be961e4716 And again here.
2001-10-04  Jeffrey Stedfast  <fejj@ximian.com>

	* vfolder-rule.c (validate): And again here.

	* filter-folder.c (validate): Same.

	* filter-datespec.c (validate): Take out the "Oops" part of the
	warning.

svn path=/trunk/; revision=13426
2001-10-04 22:50:00 +00:00
4
840bb7f136 "safe" save code, first save to .#name, then rename to name if it worked,
2001-10-04    <NotZed@Ximian.com>

        * rule-context.c (save): "safe" save code, first save to .#name,
        then rename to name if it worked, also create backups to name~.
        Means filters/etc wont get reset/lost if disk fills up, although
        relies on libxml failing properly.
        (new_rule_clicked): Removed warning, we do now have changed
        signals!

svn path=/trunk/; revision=13422
2001-10-04 20:25:18 +00:00
8
f1eb4aa8cf Emit changed events when we change it. (vfolder_rule_remove_source): "
2001-09-28    <NotZed@Ximian.com>

        * vfolder-rule.c (vfolder_rule_add_source): Emit changed events
        when we change it.
        (vfolder_rule_remove_source): "

svn path=/trunk/; revision=13241
2001-09-28 23:51:03 +00:00
a18e25967a Set the item label to the new rule name, not the old rule name. Fixes bug
2001-09-28  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (edit_editor_clicked): Set the item label to the
	new rule name, not the old rule name. Fixes bug #11168.

svn path=/trunk/; revision=13224
2001-09-28 19:47:44 +00:00
7
220fba647b Use g_strdup for the uri, not the xml memory.
2001-09-27    <NotZed@Ximian.com>

        * vfolder-rule.c (xml_decode): Use g_strdup for the uri, not the
        xml memory.

        * filter-driver.c, filter-message-search.c: Removed, again, how
        did they come back???

svn path=/trunk/; revision=13208
2001-09-28 00:12:24 +00:00
3
07a40707a3 Emit changed events.
2001-09-13    <NotZed@Ximian.com>

        * filter-filter.c (filter_filter_add_action):
        (filter_filter_remove_action):
        (filter_filter_replace_action): Emit changed events.

        * filter-rule.c (filter_rule_xml_decode): Emiot a rule changed event.
        (filter_rule_copy): Emit a changed event.
        (filter_rule_replace_part): "
        (filter_rule_add_part): "
        (filter_rule_remove_part): "
        (filter_rule_xml_decode): Freeze around decoding, so we only emit changed when done.
        (filter_rule_emit_changed): New function to emit changed events if not frozen.

2001-09-13    <NotZed@Ximian.com>

        * rule-context.c (rule_context_class_init): Added a 'rule_added'
        and 'rule_removed' signal.
        (rule_context_load): Set a (private) frozen flag while we're loading.
        (rule_context_add_rule): Emit a rule_added signal if we're not
        frozen.
        (rule_context_remove_rule): Emit a rule_removed signal if we're
        not frozen.

svn path=/trunk/; revision=12855
2001-09-15 08:13:19 +00:00
e01b1d7c25 Clone the current rule before editing it so that changes can be undone.
2001-09-12  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_edit): Clone the current rule before editing
	it so that changes can be undone.
	(edit_editor_clicked): If the user hit OK, replace the original
	rule with the new one.

	* vfolder-rule.c (vfolder_rule_finalise): Free the sources list.
	(rule_copy): Implemented.

	* filter-filter.c (rule_copy): Implemented.

	* filter-rule.c (filter_rule_copy): New convenience function to
	copy one rule "into" another.
	(rule_copy): Default implementation.
	(filter_rule_clone): Use filter_rule_copy() internally to get rid
	of the nastiness/slowness of xml encoding and then decoding.

svn path=/trunk/; revision=12787
2001-09-12 22:06:46 +00:00
2
2241b7b81d Remove the match-all from the not body-contains, so we can use the new
2001-09-12    <NotZed@Ximian.com>

        * vfoldertypes.xml: Remove the match-all from the not
        body-contains, so we can use the new vector not function.

svn path=/trunk/; revision=12780
2001-09-12 20:53:14 +00:00
0
fbd6d6907c Encode the score as an integer string, not as a string of integers. #5098.
2001-09-10    <NotZed@Ximian.com>

        * filter-score.c (format_sexp): Encode the score as an integer
        string, not as a string of integers.  #5098.

svn path=/trunk/; revision=12761
2001-09-11 02:20:18 +00:00
d2b81b2d4e Allow the dialog's title to be translated.
2001-09-10  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-datespec.c (button_clicked): Allow the dialog's title to
	be translated.

svn path=/trunk/; revision=12748
2001-09-10 22:57:04 +00:00
0f148c2125 #include <sys/types.h> for regex_t on freebsd.
2001-08-19  Chris Toshok  <toshok@ximian.com>

	* filter-input.c: #include <sys/types.h> for regex_t on freebsd.

svn path=/trunk/; revision=12229
2001-08-19 21:31:46 +00:00
387ff45e5e Added key accelerators.
2001-08-15  Jeffrey Stedfast  <fejj@ximian.com>

	* filter.glade: Added key accelerators.

svn path=/trunk/; revision=12157
2001-08-17 16:35:55 +00:00
dd2e6e5c22 in default_user:
2001-08-14  Peter Williams  <peterw@ximian.com>

	* searches.xml: Rename <title> to <_title> so that these fields can
	be translated.

in filter:

2001-08-14  Peter Williams  <peterw@ximian.com>

	* filter-rule.c (xml_decode): Match either "title" or "_title" to allow
	for translations of the title (provided in the default files)

svn path=/trunk/; revision=12034
2001-08-14 20:25:34 +00:00
aa689325b2 New function. Convert a time_t to a gchar * (with i18n) (describe_button):
2001-08-13  Peter Williams  <peterw@ximian.com>

	* filter-datespec.c
	(format_time): New function. Convert a time_t to a gchar * (with i18n)
	(describe_button): Use format_time instead of ctime.

svn path=/trunk/; revision=11942
2001-08-13 16:29:39 +00:00
04402f61d2 Add a gettext around our static strings.
2001-08-13  Peter Williams  <peterw@ximian.com>

	* filter-datespec.c (make_span_editor): Add a gettext around our static
	strings.

svn path=/trunk/; revision=11939
2001-08-13 14:45:02 +00:00
78544223ad Removed comment about the need to resolve nicknames properly, because we
2001-08-10  Jon Trowbridge  <trow@ximian.com>

	* e-msg-composer-hdrs.c (set_recipients): Removed comment about
	the need to resolve nicknames properly, because we now do that.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * e-filter-bar.h: Set the subitems to NULL in the pre-defined
        ESearchBarItems.

        * e-filter-bar.c (rule_editor_clicked): Set the ESearchBarItem's
        subitems to NULL.
        (build_items): Set the ESearchBarItem's subitems to NULL.
        (e_filter_bar_new): Set the ESearchBarItem's subitems to NULL.

        * e-search-bar.c: Added support for subitems, so that a search
        option can key off of another option menu rather than just an
        entry.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/component/addressbook.c: Set the ESearchBarItem
        subitems explicitly to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * gui/cal-search-bar.c: Where we have ESearchBarItems, set their
        subitems to NULL.

2001-08-10  Jon Trowbridge  <trow@ximian.com>

        * folder-browser.c: Set our ESearchBarItems subitems to NULL.

svn path=/trunk/; revision=11904
2001-08-10 22:36:41 +00:00
7313300204 Make this compile again.
2001-08-10  Peter Williams  <peterw@ximian.com>

	* rule-context.c (rule_context_add_rule_gui): Make this compile again.

svn path=/trunk/; revision=11877
2001-08-10 13:52:11 +00:00
268c9ae3e8 No need to gtk_widget_show() the gnome dialog widget twice...
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (rule_context_add_rule_gui): No need to
	gtk_widget_show() the gnome dialog widget twice...

	* vfolder-rule.c (get_widget): Unref the glade_xml gui object
	before returning.

svn path=/trunk/; revision=11870
2001-08-10 04:41:56 +00:00
02048d1c08 don't mix g_free and xmlAlloc (xml_decode): don't mix g_free and xmlAlloc
2001-08-08  Radek Doulik  <rodo@ximian.com>

	* filter-folder.c (button_clicked): don't mix g_free and xmlAlloc
	(xml_decode): don't mix g_free and xmlAlloc

	* filter-code.c (filter_code_init): use xmlStrdup instead of
	g_strdup

	* filter-input.c (filter_input_new_type_name): use xmlStrdup
	instead of g_strdup
	(filter_input_finalise): don't mix g_free and xmlAlloc

	* filter-option.c (clone): use xmlStrdup instead of g_strdup
	(free_option): don't mix g_free and xmlAlloc

svn path=/trunk/; revision=11795
2001-08-08 16:32:42 +00:00
96c6dc7524 use xmlStrdup rather than g_strdup
2001-08-08  Radek Doulik  <rodo@ximian.com>

	* filter-source.c (clone): use xmlStrdup rather than g_strdup

	* filter-element.c (filter_element_finalise): don't mix g_free and
	xmlAlloc

svn path=/trunk/; revision=11788
2001-08-08 15:04:20 +00:00
bbfda4227e Properly free the list of parts, and the private data.
2001-08-07  Not Zed  <NotZed@Ximian.com>

        * filter-rule.c (filter_rule_finalise): Properly free the list of
        parts, and the private data.
        (FilterRulePrivate): Remove unused 'parts' member.

        * filter-option.c (free_option): For freeing options.
        (filter_option_finalise): Free options list.

        * filter-element.c (filter_element_finalise): free name.

        * filter-input.c (filter_input_finalise): Free type and values
        list.

        * filter-context.c (filter_context_finalise): Free the actions.

        * rule-context.c (rule_context_finalise): Remove the totally weird
        arsed *_set_list free code.
        (free_part_set):
        (free_rule_set): Use this to free stuff using g_list_foreach.
        (rule_context_finalise): Free the error string.
        (rule_context_finalise): Free the rules and parts.

svn path=/trunk/; revision=11774
2001-08-08 09:39:56 +00:00
38870d9d5d Reverted my previous change, I fixed the filter code to handle this the
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
2001-08-07 19:57:53 +00:00
299f6f642e Removed the "is" and "is not" rules from the xml file for address matching
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
2001-08-07 19:30:17 +00:00
bc4d011ab1 Do an evil kludgy hack so that the Rule Name entry widget gets focused
2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c (get_widget): Do an evil kludgy hack so that the
	Rule Name entry widget gets focused when the filter editor is
	shown.

svn path=/trunk/; revision=11626
2001-08-03 21:52:41 +00:00
8b9b15e2ad Wrap some debug printf's with d().
2001-08-02  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c: Wrap some debug printf's with d().

	* rule-context.h: Removed prototype for rule_context_delete_rule()
	since the function doesn't exist.

svn path=/trunk/; revision=11600
2001-08-02 22:24:58 +00:00
d74bff323f Sync for the release.
svn path=/trunk/; revision=11530
2001-07-31 19:28:49 +00:00
19988e2555 Added a validate function that checks to make sure that vfolders that have
2001-07-23  Jon Trowbridge  <trow@ximian.com>

	* vfolder-rule.c (validate): Added a validate function
	that checks to make sure that vfolders that have "specific
	folders" as their source actually have a non-empty list of
	source folders selected.  (Bug #4937)
	(get_widget): If fr->source is NULL for some reason, bring
	it into sync with the default in the option menu.

svn path=/trunk/; revision=11336
2001-07-24 02:48:24 +00:00
71717b8577 Change the butt-ugly UI to a saner (and just as flexible) one. Instead of
2001-07-23  Peter Williams  <peterw@ximian.com>

	* filter-datespec.c (make_span_editor): Change the butt-ugly
	UI to a saner (and just as flexible) one. Instead of all those
	spinbuttons, just have one and let the user select the time unit.
	(omenu_item_activated): New function. When the user changes the
	time unit, convert it from the old number. Pretty.
	(adj_value_changed): This function is now simpler.
	(set_adjustments): Also modified for new UI model.
	(button_clicked): Set the selected_type before calling the callback.
	(FilterDatespecPrivate): Members change a bit.
	(filter_datespec_init): No longer need to allocation spinbuttons
	(filter_datespec_finalise): No longer need to free spinbuttons.

svn path=/trunk/; revision=11312
2001-07-23 18:56:01 +00:00
ebed1c3e17 Removed the "Forward To" filter action.
2001-07-20  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Removed the "Forward To" filter action.

svn path=/trunk/; revision=11278
2001-07-20 21:22:31 +00:00
3a489414b6 Return -1 if we don't find it? This is what most of the code expected but
2001-07-18  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-context.c (rule_context_get_rank_rule): Return -1 if we
	don't find it? This is what most of the code expected but not what
	we were returning on fail.

svn path=/trunk/; revision=11206
2001-07-18 19:15:08 +00:00
160eb8c6e9 Marked string for translation.
* filter-datespec.c (stringify_agoness): Marked string for translation.

svn path=/trunk/; revision=11060
2001-07-12 20:40:29 +00:00
b0dabea18b Users should not be able to filter on "Status is Deleted" since we don't
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
2001-07-12 17:43:54 +00:00
0dd6f19775 Copied the "Attachments" rule part over from filtertypes.xml, would be a
2001-07-11  Jason Leach  <jleach@ximian.com>

	* vfoldertypes.xml: Copied the "Attachments" rule part over from
	filtertypes.xml, would be a powerful feature for vfolders (see all
	the patches across all folders, or all the attachments you've sent,
	without having to duplicate potentially big files, blah blah, bug
	#1155).

svn path=/trunk/; revision=10996
2001-07-11 12:22:31 +00:00
e037631553 Put a match-all around the not-body-contains to make it work per-message.
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
2001-07-10 18:46:40 +00:00
d6286b4cba Set the focus on the title of the filter rule.
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c (get_widget): Set the focus on the title of the
	filter rule.

svn path=/trunk/; revision=10921
2001-07-09 18:15:49 +00:00
3adc63f509 2001-07-09 Anna Marie Dirks
*rule-context.c (rule_context_add_rule_gui): Increased the size
	of the "Add Filter Rule" dialog to 600 x 400, so that no resizing
	is necessary to use the dialog.

svn path=/trunk/; revision=10914
2001-07-09 16:28:54 +00:00
ae4d9b95a1 Bonobo-conf-ified. Removed /home/trow hard-wiring. :) (xml_encode): Encode
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
2001-07-09 05:06:04 +00:00
03ec245d4e Select the most appropriate filter rule.
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_delete): Select the most appropriate filter
	rule.

svn path=/trunk/; revision=10836
2001-07-06 00:14:36 +00:00
f09882063f oops, forgot to commit ChangeLog
svn path=/trunk/; revision=10833
2001-07-05 22:41:38 +00:00
e18a28a56c Fix bug #4043: s/colour/color
2001-07-05  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Fix bug #4043: s/colour/color

svn path=/trunk/; revision=10832
2001-07-05 22:39:39 +00:00
401d5cd43d Prevent crashing while we work this out.
001-07-03  Peter Williams  <peterw@ximian.com>

	* filter-source.c (get_widget): Prevent crashing while we work this out.

	* filter-rule.c (get_widget): Don't try to gtk_widget_grab_default
	with a widget that can't be the default. Altough it should be able
	to....

svn path=/trunk/; revision=10771
2001-07-03 22:24:37 +00:00
793f0a6b86 Added an integer type for filtering values. used for size.
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
2001-07-03 02:54:48 +00:00
9550352fc5 Changed "Add criterion" button to have normal button relief in response to
2001-07-02  Anna Marie Dirks <anna@ximian.com>

	* filter-rule.c (get_widget): Changed "Add criterion" button to have
	normal button relief in response to complaints of it not appearing
	clickable.

	* filter-filter.c: Changed "Add action" button to have normal button
	relief in response to complaints of it not appearing clickable.

svn path=/trunk/; revision=10705
2001-07-02 21:18:08 +00:00
c386fa4ea6 Set the filter-rule dialog to be user-resizable.
2001-06-29  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_editor_construct): Set the filter-rule
	dialog to be user-resizable.

svn path=/trunk/; revision=10607
2001-06-29 21:00:24 +00:00
b195445a97 Make "Move" the default action.
2001-06-27  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Make "Move" the default action.

svn path=/trunk/; revision=10533
2001-06-27 16:43:16 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
c1a0dc0e04 Deleted Gediminas patch.
2001-05-08  Not Zed  <NotZed@Ximian.com>

	* filter-rule.c: Deleted Gediminas patch.

svn path=/trunk/; revision=9709
2001-05-08 01:08:52 +00:00
0a9bafb949 Fix for #2253 (search names not translated), mail-search i18n fixes.
2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* searches.xml: replace title> with _title>. Part of fix to #2253.

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-search.c: convert search entry to utf8.

	* mail-local.c: d() debugging message.

	* mail-send-recv.c: replace " ..." with "..."

	* Makefile.am: removed EVOLUTION_VERSION.

2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* POTFILES.in: add mail/mail-search.c

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* misc/e-search-bar.c (add_dropdown), (set_option): first try to
	translate, then if not suceeded -- convert from utf8. This handles
	cases when menuitem needs to be translated (it is passed as N_()), or is
	utf8 search title. However you cannot have a search like "Folders" -- it
	is translated. Part of fix for #2253.

	* misc/e-filter-bar.c: d() debugging strings. Use E_FILTERBAR_ADVANCED
	macro instead of own "Advanced ..." for consistency.

2001-05-08  Gediminas Paulauskas <menesis@delfi.lt>

	* filter-rule.c (xml_decode): allow "_title" in user rules. translate
	them and encode to utf8.
	(get_rule_part_widget): do not call gettext on part->title. It is always
	translated already.

svn path=/trunk/; revision=9706
2001-05-08 00:26:58 +00:00
6738df5abd Set the default size of the dialog to 600x400, which seems to be a nice
2001-04-26  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_edit): Set the default size of the dialog to
	600x400, which seems to be a nice size that fits all the widgets
	into it.
	(rule_add): Same.

svn path=/trunk/; revision=9604
2001-04-26 23:21:39 +00:00
8af4ab06a2 Remove UNICODE_CFLAGS
* Makefile.am (INCLUDES): Remove UNICODE_CFLAGS

svn path=/trunk/; revision=9582
2001-04-26 15:13:40 +00:00