Commit Graph

326 Commits

Author SHA1 Message Date
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
de51c2f598 Get the account name because that is the string we'd like to use for
2002-01-03  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-source.c (filter_source_get_sources): Get the account
	name because that is the string we'd like to use for display.
	(get_widget): Generate the account label the same as we do for the
	composer's From optionmenu.
	(filter_source_finalize): Free the account_name.
	(clone): Pass along the account_name member to filter_add_source

svn path=/trunk/; revision=15241
2002-01-03 22:03:13 +00:00
c3cc401ac8 Make the date comparisons read the same as the ones in filtertypes.xml
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
2002-01-03 00:29:31 +00:00
6977afee94 Add new action to execute a shell command.
2001-12-17  Jeffrey Stedfast  <fejj@ximian.com>

	* filtertypes.xml: Add new action to execute a shell command.

svn path=/trunk/; revision=15138
2001-12-17 20:12:56 +00:00
78e97ea838 Oops... this didn't get committed before.
svn path=/trunk/; revision=14947
2001-12-10 03:55:08 +00:00
b5e7713c8e Implements marking messages as "Need Reply".
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
2001-12-10 03:50:36 +00:00
7660ee4120 Removed U_. Fixes #15415.
2001-11-15  Zbigniew Chyla  <cyba@gnome.pl>

        * rule-editor.c (set_source): Removed U_.  Fixes #15415.

svn path=/trunk/; revision=14797
2001-11-27 21:46:22 +00:00
8b80096cad Hook onto destroy event. (edit_editor_destroyed): IF we get destroyed,
2001-11-21  Not Zed  <NotZed@Ximian.com>

        * rule-editor.c (rule_edit): Hook onto destroy event.
        (edit_editor_destroyed): IF we get destroyed, fake a -1 click
        event to clean up.
        (rule_add): hook onto destroy of dialogue.
        (add_editor_destroyed): Simulate -1 click event to clean up.  Fix
        for #15745.

2001-11-20  Not Zed  <NotZed@Ximian.com>

        * vfolder-rule.c (source_add): Desensitise button while we're
        running, and if we are destroyed, exit and do nothing when we're
        done.  Fixes crash in #15498.

        * filter-folder.c (button_clicked): Ref 'ff' around dialogue
        showing incase we go away before it returns.  Also desensitise
        button that invoked us while its being processed & remove
        'is_active' hack.  Fixes similar problems to those in #15498.

svn path=/trunk/; revision=14794
2001-11-27 21:32:04 +00:00
8d4f7dd527 Force the user to name the filter.
2001-11-12  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-rule.c (validate): Force the user to name the filter.

	* vfolder-rule.c (validate): Force the user to name the vfolder.

svn path=/trunk/; revision=14679
2001-11-13 00:57:10 +00:00
d6d55273d4 Require gal 0.15.99.8
2001-10-29  Joe Shaw  <joe@ximian.com>

	* configure.in: Require gal 0.15.99.8

	* addressbook/backend/ebook/e-card-simple.c,
	addressbook/gui/component/addressbook-storage.c,
	addressbook/gui/widgets/e-addressbook-view.c,
	calendar/gui/e-calendar-table.c,
	calendar/gui/e-itip-control.c,
	calendar/gui/e-meeting-model.c,
	calendar/gui/itip-utils.c,
	calendar/gui/print.c,
	calendar/gui/alarm-notify/alarm-notify-dialog.c,
	filter/rule-editor.c,
	mail/mail-config.c,
	mail/mail-folder-cache.c,
	mail/mail-format.c,
	mail/mail-local.c,
	mail/mail-ops.c,
	mail/mail-vfolder.c,
	shell/e-local-storage.c,
	shell/e-summary-storage.c: Change includes of
	e-util/e-unicode-i18n.h to gal/util/e-unicode-i18n.h

svn path=/trunk/; revision=14427
2001-10-30 05:02:49 +00:00
9
777dc4018a Need to ref rule since add doesn't. This doesn't crash anymore but doesn't
2001-10-29    <NotZed@Ximian.com>

        * rule-editor.c:
        (rule_editor_play_undo): Need to ref rule since add doesn't.  This
        doesn't crash anymore but doesn't seem to do everything right either.

svn path=/trunk/; revision=14312
2001-10-29 01:40:59 +00:00
7b02e2e055 Fixed previous fix.
svn path=/trunk/; revision=14311
2001-10-29 01:31:59 +00:00
9
71191904a3 Some debug printf fixes for printf's that dont like null %s's.
2001-10-29    <NotZed@Ximian.com>

	* rule-editor.c: Some debug printf fixes for printf's that dont
	like null %s's.

svn path=/trunk/; revision=14309
2001-10-29 01:29:44 +00:00
96df1d4138 Fix enable undo logic.
* rule-editor.c
        (rule_editor_add_undo): Fix enable undo logic.

svn path=/trunk/; revision=14308
2001-10-29 00:51:42 +00:00
8
15ada734a7 Implement, change any folder uri's that have been renamed, to the new one.
2001-10-28    <NotZed@Ximian.com>

        * filter-context.c (filter_rename_uri): Implement, change any
        folder uri's that have been renamed, to the new one.
        (filter_delete_uri): Dont actually do any work (yet).

        We could probably put rename_uri on every rule context/filter
        part/filter element, and let their methods handle it, but for now
        its easy enough just to handle the few cases that we have to
        handle manually.

        * rule-context.c (rule_context_delete_uri): Update a filter
        context for a deleted uri, e.g. folder removed.
        (rule_context_rename_uri): Update a filter context for a renamed
        uri, e.g.

        * filter-folder.c (filter_folder_set_value): New function to set
        the uri of a folder filter.

        * rule-editor.c (rule_move): Add undo for move.
        (rule_editor_add_undo): Add extra rank item.
        (rule_editor_play_undo): handle rank case.
        (rule_editor_finalise): Clean up any hanging over undo log.
        (editor_clicked): Only enable 'undo' if we have
        EVOLUTION_RULE_UNDO enabled.  Code still a bit flakey.
        (rule_editor_construct): Only enable a cancel button if
        EVOLUTION_RULE_UNDO is set.
        (rule_editor_add_undo): Only add if undo enabled.

        * filter-rule.c (filter_rule_set_name): Emit a changed event if it
        changes.
        (filter_rule_set_source): Same.

svn path=/trunk/; revision=14289
2001-10-28 09:39:04 +00:00
8
3a3fa91ac3 Add undo for move. (rule_editor_add_undo): Add extra rank item.
2001-10-28    <NotZed@Ximian.com>

        * rule-editor.c (rule_move): Add undo for move.
        (rule_editor_add_undo): Add extra rank item.
        (rule_editor_play_undo): handle rank case.
        (rule_editor_finalise): Clean up any hanging over undo log.
        (editor_clicked): Only enable 'undo' if we have
        EVOLUTION_RULE_UNDO enabled.  Code still a bit flakey.
        (rule_editor_construct): Only enable a cancel button if
        EVOLUTION_RULE_UNDO is set.

        * filter-rule.c (filter_rule_set_name): Emit a changed event if it
        changes.
        (filter_rule_set_source): Same.

2001-10-26    <NotZed@Ximian.com>

        * rule-context.c (rule_context_find_rank_rule): Find a rule at a
        specific rank/source.

        * rule-editor.c (add_editor_clicked): Log the added object.
        (rule_editor_add_undo): New function to add an undo record to the
        rule editor.
        (edit_editor_clicked): Log the changed object.
        (rule_delete): Add undo object.
        (rule_editor_play_undo): Play an undo log back.

svn path=/trunk/; revision=14281
2001-10-28 06:20:33 +00:00
da4b2a5d9f Fix the address of the FSF in the licensing comments.
svn path=/trunk/; revision=14243
2001-10-27 23:48:19 +00:00
f84e94ae7f Fixing the license text.
svn path=/trunk/; revision=14215
2001-10-27 17:59:02 +00:00
08fb7329cb Fixing the license text.
svn path=/trunk/; revision=14212
2001-10-27 16:59:46 +00:00
02dcd0aadf Update the licensing information to require version 2 of the GPL
(instead of version 2 or any later version).

svn path=/trunk/; revision=14190
2001-10-27 00:25:49 +00:00
ccdcf468c8 Desensitize the parent dialog. (rule_edit): Same. (add_editor_clicked):
2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c (rule_add): Desensitize the parent dialog.
	(rule_edit): Same.
	(add_editor_clicked): Re-sensitize it.
	(edit_editor_clicked): Same.

svn path=/trunk/; revision=14123
2001-10-26 04:06:42 +00:00