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