Commit Graph

189 Commits

Author SHA1 Message Date
929f00f067 Removed, now lives in camel-filter-search.*
2001-01-22  Not Zed  <NotZed@Ximian.com>

        * filter-message-search.[ch]: Removed, now lives in
        camel-filter-search.*

        * Makefile.am (libfilter_la_SOURCES): Removed filter-driver.[ch]
        and filter-message-search.[ch].

        * filter-driver.[ch]: Removed.  now lives in camel-filter-driver.*

svn path=/trunk/; revision=7703
2001-01-22 11:45:59 +00:00
cbbf537929 Set the delete bit *before* copying to the default folder.
2001-01-19  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-driver.c (filter_driver_filter_message): Set the delete
	bit *before* copying to the default folder.

svn path=/trunk/; revision=7656
2001-01-19 21:24:37 +00:00
04656c360e Er, don't set the button insensitive if there is *1* action, set it
2001-01-18  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-filter.c (less_parts): Er, don't set the button
	insensitive if there is *1* action, set it insensitive if there
	are less than or equal to *1* actions. Doh!
	(more_parts): Only set the remove button sensitive if there is
	more than 1 action.
	(get_widget): Here too.

svn path=/trunk/; revision=7616
2001-01-18 06:34:27 +00:00
fba80ed5d8 Remove these files.
svn path=/trunk/; revision=7537
2001-01-16 17:51:41 +00:00
7878a71545 Moved ESearchBar from filter/ to widgets/misc/, a more appropriate home.
Moved ESearchBar from filter/ to widgets/misc/, a more appropriate
 home.  Bug #1060.

svn path=/trunk/; revision=7536
2001-01-16 17:50:44 +00:00
55b639a2c4 Moved p->copied to the inner part of the loop so that in the case of a
2001-01-13  Jeffrey Stedfast  <fejj@ximian.com>

	* filter-driver.c (do_copy): Moved p->copied to the inner part of
	the loop so that in the case of a folder not existing, it doesn't
	think that the message was already copied to some place and thus
	not save it to the Inbox.
	(do_move): Same.

svn path=/trunk/; revision=7478
2001-01-13 07:44:17 +00:00
a33cf67ac0 Changed Priority to Score.
2001-01-10  Jeffrey Stedfast  <fejj@helixcode.com>

	* filtertypes.xml: Changed Priority to Score.

svn path=/trunk/; revision=7357
2001-01-10 06:09:54 +00:00
f54327b748 Attach to the "activate" signal - this should now make it so that a
2001-01-10  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-option.c (get_widget): Attach to the "activate" signal -
	this should now make it so that a filter-option will "remember"
	what a user changed.

	* filter-system-flag.c (get_widget): Don't reset fsf->value to the
	first system flag, this should already be defaulted to the
	appropriate flag. This should fix the problem of always defaulting
	to the first menu option and thus "forgetting" the user's settings.

svn path=/trunk/; revision=7356
2001-01-10 05:44:23 +00:00
66b0d503f5 comment out some of the system flags as we don't want to use them.
2001-01-04  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-system-flag.c: comment out some of the system flags as we
	don't want to use them.
	(xml_encode): Update the printf
	(get_widget): Use strcmp instead of g_strcasecmp.

svn path=/trunk/; revision=7244
2001-01-04 06:52:22 +00:00
2934ba8dca Little utf8 safe encoding/decoding into libxml1 brokenness
svn path=/trunk/; revision=7226
2001-01-03 03:12:18 +00:00
71bf4380a1 Set the 'dirty' flag - this should fix the problem of flags not being set
2001-01-02  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (do_flag): Set the 'dirty' flag - this should
	fix the problem of flags not being set (or, more precisely,
	synced).
	(filter_driver_filter_message): Here too.

svn path=/trunk/; revision=7224
2001-01-03 01:48:59 +00:00
b3e4ed6da6 Unconditionally remove the client from the alarm notification system.
2001-01-01  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.c (gnome_calendar_destroy): Unconditionally remove
	the client from the alarm notification system.
	Removed all the obsolete alarm code.

	* gui/event-editor.c: Removed some crufty externs left over from
	Gnomecal.

	* gui/calendar-commands.c: #include "goto.h"
	Removed crufty variables left over from Gnomecal.
	(new_calendar): Do not take a full_name parameter.
	(init_username): Removed function.
	(init_calendar): Wheeeeeeee!  Removed crufty function.
	(quit_cmd): Removed function.

	* gui/print.c (WEEK_STARTS_ON_MONDAY): Made it unconditionally
	FALSE because we do not use the configuration setting anyways.
	Sigh, all the printing code needs to be revamped.

svn path=/trunk/; revision=7209
2001-01-02 16:35:57 +00:00
f561a84cde Use e_utf8_strstrcase() instead of just strstr(). (header_starts_with):
2000-12-21  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-message-search.c (header_contains): Use
	e_utf8_strstrcase() instead of just strstr().
	(header_starts_with): Make sure that the header contents are
	longer than the starts-with string.

	* vfoldertypes.xml: Don't send \"Subject\" to body-contains.
	Also added matches, starts-with, and ends-with xml stuff.

svn path=/trunk/; revision=7204
2001-01-01 23:05:35 +00:00
22876b6aa8 Use CamelContentType rather than GMimeContentField.
* filter-message-search.c (handle_multipart, body_contains,
	body_regex): Use CamelContentType rather than GMimeContentField.

svn path=/trunk/; revision=7187
2000-12-28 19:28:53 +00:00
5674966eeb Merge from camel-mt-branch.
2000-12-24  Not Zed  <NotZed@HelixCode.com>

        * Merge from camel-mt-branch.

svn path=/trunk/; revision=7152
2000-12-24 00:58:02 +00:00
ea3c12a894 And here too.
2000-12-21  Not Zed  <NotZed@HelixCode.com>

        * filter-message-search.c (filter_message_search): And here too.

        * filter-driver.c (filter_driver_finalise): Kind of revert an
        accidentally commited patch for e_sexp_unref.

svn path=/trunk/; revision=7108
2000-12-20 22:45:44 +00:00
53e5cb89a5 God-damned friggin' WinCvs shit is so damn annoying. Why can't I just paste my ChangeLog entry? Ugh...
Anyways, this checkin fixes bug #1007

svn path=/trunk/; revision=7107
2000-12-20 21:58:16 +00:00
5f0ad1fc11 Oops, missed a gtk unref of the now-no-longer gtk e_sexp.
2000-12-20  Not Zed  <NotZed@HelixCode.com>

        * filter-message-search.c (filter_message_search): Oops, missed a
        gtk unref of the now-no-longer gtk e_sexp.

        * filter-driver.c: Remove mail_tool_lock stuff.
        (filter_driver_finalise): unref e_sexp properly.

svn path=/trunk/; revision=7095
2000-12-20 01:33:47 +00:00
7f1a408cd3 Fixed some warnings.
2000-12-12  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.c (esb_pack_menubar): Fixed some warnings.

svn path=/trunk/; revision=6940
2000-12-12 07:38:26 +00:00
96cf97e4de Added a kludge, 'is_active' which is a static variable that holds whether
2000-12-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-folder.c (button_clicked): Added a kludge, 'is_active'
	which is a static variable that holds whether or not there is an
	active shell folder dialog up or not.

	* vfolder-editor.c (rule_delete): Autoselect the rule that ends up
	in the same position (or the one above it if the list is shorter
	than the position).

svn path=/trunk/; revision=6927
2000-12-12 00:17:11 +00:00
6287bb1af4 Autoselect the rule that ends up in the same position (or the one above it
2000-12-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* vfolder-editor.c (rule_delete): Autoselect the rule that ends up
	in the same position (or the one above it if the list is shorter
	than the position).

svn path=/trunk/; revision=6926
2000-12-11 23:55:26 +00:00
164defcd7d Don't highlight the title if it's "Untitled" because switching widget
2000-12-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-rule.c (get_widget): Don't highlight the title if it's
	"Untitled" because switching widget focus doesn't cause this
	selection to go away.

svn path=/trunk/; revision=6870
2000-12-08 21:18:46 +00:00
8fc0d9aacb Mark some strings for translation.
2000-12-06  Kjartan Maraas  <kmaraas@gnome.org>

	* filter-editor.c: Mark some strings for translation.

svn path=/trunk/; revision=6821
2000-12-06 19:54:56 +00:00
75b4622b71 Forgot to commit this with my last set of changes to the filter code
svn path=/trunk/; revision=6805
2000-12-05 23:54:48 +00:00
e7c8c694a7 Added support for the system-flag type.
2000-12-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-element.c (filter_element_new_type_name): Added support
	for the system-flag type.

	* Makefile.am: Added filter-system-flag.[c,h].

	* filter-system-flag.[c,h]: New type for system flags.

	* filtertypes.xml: Oops, looks like we were still using integers
	as arguments to set-flag. Change over to using strings which are
	safer and also change the name to set-system-flag.

	* filter-driver.c (do_flag): Use strings instead of integers.
	Instead of set-flag, the callback is now set-system-flag for less
	confusion. Sorry Ettore, but you'll have to change your filters.

	* filtertypes.xml: Added system-flags stuff.

	* vfoldertypes.xml: And here too.

	* filter-message-search.c (system_flag): New ESExp callback for
	filtering on system flags.

svn path=/trunk/; revision=6764
2000-12-02 04:01:53 +00:00
b715bf7b83 Use camel_message_info_free() instead of freeing everything by hand - is
2000-11-30  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_message): Use
	camel_message_info_free() instead of freeing everything by hand -
	is this a new function? I don't ever recall seeing this
	before. Also use my new function,
	camel_message_info_new_from_header - ahhh... this code is now so
	beatiful. Okay, I'm done.

svn path=/trunk/; revision=6750
2000-12-01 00:39:11 +00:00
5c542983e4 Update to use EStrv in appropriate places (wrapped with #ifdef DOESTRV for
2000-11-30  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_message): Update to use
	EStrv in appropriate places (wrapped with #ifdef DOESTRV for the
	moment).

svn path=/trunk/; revision=6739
2000-11-30 18:57:19 +00:00
dce674fa1a Moved the regex filter rule around - we've changed the format a bit.
2000-11-27  Jeffrey Stedfast  <fejj@helixcode.com>

	* filtertypes.xml: Moved the regex filter rule around - we've
	changed the format a bit.

	* filter-option.c (option_activate): Removed.
	(get_widget): Don't connect the activate signal.

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

	* filter-datespec.c (validate): Updated.

	* filter-part.c (filter_part_validate): Updated.

	* filter-input.c (validate): Check the filter-input type - if it's
	of type "regex", then check for regex validity.

	* filter-element.c (filter_element_validate): No longer takes a
	gpointer argument.
	(filter_element_new_type_name): Allow type "regex" and create a
	new filter-input with type "regex".

2000-11-24  Michael Meeks  <michael@helixcode.com>

	* filter-message-search.c (get_full_header): impl.
	(header_full_regex): use it.

2000-11-23  Michael Meeks  <michael@helixcode.com>

	* filter-message-search.c (header_full_regex): impl.

svn path=/trunk/; revision=6685
2000-11-27 22:23:33 +00:00
446b481820 took out some no longer needed printfs.
2000-11-21  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-message-search.c: took out some no longer needed
	printfs.

svn path=/trunk/; revision=6632
2000-11-21 18:26:16 +00:00
bf23582039 Sync here instead. (filter_driver_filter_mbox): And here too.
2000-11-15  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_folder): Sync here
	instead.
	(filter_driver_filter_mbox): And here too.
	(filter_driver_finalise): Don't sync here afterall - it's more
	preferable to sync right after processing.

svn path=/trunk/; revision=6588
2000-11-16 02:40:58 +00:00
408e3a3bbb Sync the defaultfolder.
2000-11-15  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_finalise): Sync the
	defaultfolder.

svn path=/trunk/; revision=6587
2000-11-16 02:27:28 +00:00
ba34e2908d Neglect any leading whitespace in the header contents.
2000-11-13  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-message-search.c (header_matches): Neglect any leading
	whitespace in the header contents.
	(header_starts_with): Same.
	(header_ends_with): Same.
	(header_soundex): Same.

svn path=/trunk/; revision=6562
2000-11-13 19:25:11 +00:00
9b7c72b0dd If there is a default folder and the message hasn't been deleted then...
2000-11-12  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_message): If there is a
	default folder and the message hasn't been deleted then... should
	be: If there is a default folder and the message hasn't been
	copied to another folder and the message hasn't been deleted...
	(filter_driver_filter_message): Make it so that the FILTER_LOG_END
	is only called if filtered were applied to the message so we don't
	get huge gaps of whitespace in the log file.
	(filter_driver_filter_message):

svn path=/trunk/; revision=6555
2000-11-12 22:05:29 +00:00
badea0eb12 If there is a default folder and the message hasn't been deleted then...
2000-11-12  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_message): If there is a
	default folder and the message hasn't been deleted then... should
	be: If there is a default folder and the message hasn't been
	copied to another folder...
	(filter_driver_filter_message): Make it so that the FILTER_LOG_END
	is only called if filtered were applied to the message so we don't
	get huge gaps of whitespace in the log file.

svn path=/trunk/; revision=6554
2000-11-12 21:59:35 +00:00
c479d064a2 If there is a default folder and the message hasn't been deleted then...
2000-11-12  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_message): If there is a
	default folder and the message hasn't been deleted then... should
	be: If there is a default folder and the message hasn't been
	copied to another folder...

svn path=/trunk/; revision=6551
2000-11-12 20:31:36 +00:00
ddae78720c Clear the rdate and exrule lists from the component if we are setting a
2000-11-12  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor.c (recur_to_comp_object): Clear the rdate and
	exrule lists from the component if we are setting a simple
	recurrence.
	(recur_to_comp_object): Set the exdate list here instead of in
	dialog_to_comp_object().
	(preview_recur): New function to tag the recurrence preview
	calendar based on the information from the dialog box.
	(fill_exception_widgets): Fill the exception widgets here; moved
	over from fill_widgets().
	(fill_recurrence_widgets): Call preview_recur().  Also, call
	fill_exception_widgets() first of all.
	(recurrence_type_toggled_cb): Call preview_recur().
	(recur_interval_selection_done_cb): Likewise.
	(recur_ending_selection_done_cb): Likewise.
	(recurrence_exception_add_cb): Likewise.
	(recurrence_exception_modify_cb): Likewise.
	(recurrence_exception_delete_cb): Likewise.
	(date_changed_cb): Likewise.
	(recur_interval_value_changed_cb): Likewise, new function.

	* gui/tag-calendar.[ch]: New files with utilities for tagging
	calendars.  mark.[ch] should go away some day.

	* gui/tag-calendar.c (tag_calendar): Moved over from
	gnome_calendar_tag_calendar().  Take in a CalClient instead of a
	GnomeCalendar.  Added API docs.
	(tag_calendar_by_comp): New function to tag a calendar based on a
	single calendar component instead of a whole client.

	* gui/gnome-cal.c (initial_load): Use tag_calendar_by_client().
	(obj_updated_cb): Likewise.
	(obj_removed_cb): Likewise.
	(gnome_calendar_on_date_navigator_date_range_changed): Likewise.
	(editor_closed_cb): Free the closure.
	(destroy_editor_cb): Renamed from free_uid().  Do not free the
	UID; just unref the event editor.  Our destroy handler to it will
	free things properly.  This will also cause the corresponding
	calendar client to be unrefed.
	(editor_closed_cb): Use a flag on the GnomeCalendar to decide
	whether to remove the editor from the hash table.  This is sort of
	icky.

	* gui/calendar-model.c (obj_updated_cb): If the object is new, we
	have to use e_table_model_row_inserted(), not row_changed().
	Thanks to JP Rosevear for reporting this.

	* gui/Makefile.am (evolution_calendar_SOURCES): Added
	tag-calendar.[ch] to the list of sources.

svn path=/trunk/; revision=6547
2000-11-12 18:53:08 +00:00
54ebbd37f3 Made the underline show up properly in the main menu bar.
2000-11-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.c: Made the underline show up properly in the main
	menu bar.

svn path=/trunk/; revision=6532
2000-11-10 16:26:36 +00:00
2ff6fc1219 Switched from using gtk_menu_item_new_with_label for the menu header to
2000-11-10  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.c: Switched from using gtk_menu_item_new_with_label
	for the menu header to using gnome_stock_menu_item.

svn path=/trunk/; revision=6530
2000-11-10 10:13:00 +00:00
b4927628cf Fixed two spacing problems: first, changed the spacing around the end of
2000-11-08  Anna Marie Dirks  <anna@helixcode.com>
	* e-search-bar.c: Fixed two spacing problems: first, changed
	the spacing around the end of the text-entry widget so that
	the text entry is always aligned with the beginning of the scrollbar;
	second, trimmed down the space between the widgets in the search bar.

svn path=/trunk/; revision=6522
2000-11-09 22:21:07 +00:00
e797be0558 you shouldn't use an integer to set the flag. You should use a string, and
2000-11-06  Not Zed  <NotZed@HelixCode.com>

        * filter-driver.c (do_flag): you shouldn't use an integer to
        set the flag.  You should use a string, and look it up, because
        the flag bits might change.
        (filter_driver_filter_message): Can som e one PLEASE STOP
        INDENTING THE CODE.  Even if i have to come over the and
        beat it into you.  YOU DONT INDENT CODE ONCE ITS BEEN CHECKED IN
        TO CVS, otherwise you SCREW UP THE DIFF's.  Can't you please
        please learn this?
        (filter_driver_log): Fixes for api changes to mime_message.

2000-11-05  Not Zed  <NotZed@HelixCode.com>

        * filter-message-search.c (get_sent_date): Fix for date change
        api.  No longer need to encode/decode the date, after its been
        encoded/ecoded already.
        (get_received_date): Likewise.

svn path=/trunk/; revision=6477
2000-11-07 12:36:24 +00:00
f2178aee93 Fixed the argument comment. Removed an old enum that's not used here.
2000-11-06  Christopher James Lahey  <clahey@helixcode.com>

	* e-search-bar.h: Fixed the argument comment.  Removed an old enum
	that's not used here.

svn path=/trunk/; revision=6457
2000-11-06 22:07:48 +00:00
a2dda6941a Added e-search-bar.c and e-search-bar.h.
2000-11-06  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added e-search-bar.c and e-search-bar.h.

	* e-search-bar.c, e-search-bar.h: Moved this from
	e-addressbook-search.

svn path=/trunk/; revision=6454
2000-11-06 21:52:09 +00:00
71ccf52166 Fix for when 'desc' is NULL. (filter_driver_filter_message): Use a more
2000-11-02  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_log): Fix for when 'desc' is
	NULL.
	(filter_driver_filter_message): Use a more user-friendly filter
	name in the log file.

svn path=/trunk/; revision=6359
2000-11-02 21:14:57 +00:00
3b06e302e3 Fix for when 'desc' is NULL. (filter_driver_filter_message): Use a more
2000-11-02  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_log): Fix for when 'desc' is
	NULL.
	(filter_driver_filter_message): Use a more user-friendly filter
	name in the log file.

svn path=/trunk/; revision=6347
2000-11-02 07:16:47 +00:00
3b60a39855 Fix for when 'desc' is NULL.
2000-11-02  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_log): Fix for when 'desc' is
	NULL.

svn path=/trunk/; revision=6345
2000-11-02 05:07:13 +00:00
ed8a08ed1a Use filter_driver_log() where appropriate. (do_copy): Use the service url
2000-11-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_filter_message): Use
	filter_driver_log() where appropriate.
	(do_copy): Use the service url for the path rather than the
	folder->full_name because that'll only get you a "/mbox" which is
	entirely useless. Replace occurences of report_status with
	filter_driver_log.
	(do_move): Same.
	(report_status): Don't use this for logging anymore, use only for
	reporting the status back to the caller.
	(filter_driver_log): Renamed from filter_driver_status_log. Now
	ONLY handles file logging and is for INTERNAL USE ONLY.
	(do_flag): Replace occurences of report_status with
	filter_driver_log.
	(do_score): Same.
	(do_colour): Same.
	(do_stop): Same.

svn path=/trunk/; revision=6340
2000-11-02 03:52:05 +00:00
57f02847d8 Check to make sure the user has entered a valid date.
2000-11-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-datespec.c (validate): Check to make sure the user has
	entered a valid date.

svn path=/trunk/; revision=6324
2000-11-01 22:11:23 +00:00
1d60c5cc02 Updated to allow the user to select "sounds like" or "does not sound like"
2000-10-31  Jeffrey Stedfast  <fejj@helixcode.com>

	* filtertypes.xml: Updated to allow the user to select "sounds
	like" or "does not sound like" (uses header-soundex).

	* filter-message-search.c (header_matches): Oops. Should be using
	!g_strncasecmp. This should fix it so this filter match works
	right.
	(header_starts_with): Same.
	(header_ends_with): Same.
	(header_soundex): New filter callback for soundex matching (yes,
	it's probably a bloated feature but hey, it was fun to code)

svn path=/trunk/; revision=6302
2000-10-31 23:38:22 +00:00
70ae377bb6 Override the default validate function to only return TRUE if a folder has
2000-10-31  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-folder.c (validate): Override the default validate
	function to only return TRUE if a folder has been selected.

	* filter-editor.c (rule_add): Validate that all the rule parts and
	action parts are correctly filled in.
	(rule_edit): Same.

svn path=/trunk/; revision=6300
2000-10-31 21:49:52 +00:00
8466433837 Updated to add an action to set message flags.
2000-10-31  Jeffrey Stedfast  <fejj@helixcode.com>

	* filtertypes.xml: Updated to add an action to set message flags.

	* filter-driver.c (do_flag): New callback to set message info
	flags.

	* filter-element.c (filter_element_set_data): New convenience
	function to set the data on a FilterElement.

	* filter-url.c (get_widget): Set the sources list to point to the
	FilterElement data.

svn path=/trunk/; revision=6298
2000-10-31 19:39:02 +00:00