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