Commit Graph

301 Commits

Author SHA1 Message Date
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
7c6257f9a9 Keep track of the current editor dialog window so that on exit, we can
2001-10-25  Jeffrey Stedfast  <fejj@ximian.com>

	* rule-editor.c: Keep track of the current editor dialog window so
	that on exit, we can close it too.
	(rule_edit): Don't make the dialog modal and set it's parent
	window as well as don't allow more than a single editor window to
	be popped up.
	(rule_add): Same.

svn path=/trunk/; revision=14122
2001-10-26 03:44:35 +00:00
f8b3f5bb88 added a missing close paren
svn path=/trunk/; revision=14120
2001-10-26 01:58:05 +00:00
4
edc1f870d4 Add a changed signal. Emits if the order changes or if you add or remove a
2001-10-24    <NotZed@Ximian.com>

        * rule-context.c (rule_context_class_init): Add a changed signal.
        Emits if the order changes or if you add or remove a rule.
        (rule_context_rank_rule): Fix rank rule to properly rank based on
        source, not merely on list position.
        (rule_context_add_rule): Also emit changed signal.
        (rule_context_remove_rule): Same.
        (rule_context_rank_rule): Emit changed signal.

svn path=/trunk/; revision=13978
2001-10-24 04:20:14 +00:00
752dafc390 Translate the rule names. (Bug #13082)
2001-10-20  Jon Trowbridge  <trow@ximian.com>

	* rule-editor.c (set_source): Translate the rule names. (Bug
	#13082)

svn path=/trunk/; revision=13827
2001-10-20 20:57:51 +00:00
cb0ed21028 Fix the WM problems related to the folder selection dialog being
out-of-proc.  Now it can be set to be a transient window correctly,
and fakes its WindowGroup hint appropriately.

svn path=/trunk/; revision=13765
2001-10-18 19:58:22 +00:00
ea2f6819c0 Kludge to raise the filter dialog when the folder-selection window is
2001-10-15  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-folder.c (button_clicked): Kludge to raise the filter
	dialog when the folder-selection window is closed.

svn path=/trunk/; revision=13688
2001-10-15 22:30:41 +00:00
5
fec196ee90 If we have no node content, dont append any value or try to decode it.
2001-10-15    <NotZed@Ximian.com>

        * filter-input.c (xml_decode): If we have no node content, dont
        append any value or try to decode it.  Gets rid of a bunch of
        annoying warnings.

svn path=/trunk/; revision=13677
2001-10-15 17:49:52 +00:00
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