Commit Graph

92 Commits

Author SHA1 Message Date
81f994a359 More UTF-8 handling
svn path=/trunk/; revision=5032
2000-08-25 04:31:13 +00:00
703511b4a8 Set seltime.tm_isdst to -1, not daylight, because the current dst value is
* filter-datespec.c (cal_day_selected): Set seltime.tm_isdst to
	-1, not daylight, because the current dst value is not relevant to
	the selected date.

svn path=/trunk/; revision=4991
2000-08-23 22:32:17 +00:00
130bb0e571 Automatically connect services when given a valid URL (should hopefully disconnect, too); remove the old movemail folder correctly.
svn path=/trunk/; revision=4965
2000-08-22 20:09:11 +00:00
44d8831822 many fixes to make it compile with strange prefixes...
neither mail nor the calendar components work though...
evil stuff.

svn path=/trunk/; revision=4892
2000-08-20 19:32:56 +00:00
5ee91c7383 A bunch of small GUI fixes for the filter editor.
svn path=/trunk/; revision=4866
2000-08-17 17:51:49 +00:00
7cf30eb792 Filtering on demand! booyeah!
svn path=/trunk/; revision=4864
2000-08-17 17:42:21 +00:00
8e32b41a50 and the ChangeLog entries to go with it
svn path=/trunk/; revision=4844
2000-08-15 18:24:06 +00:00
7a12fa1fe2 Allow filtering / vfoldering based on time or date
svn path=/trunk/; revision=4843
2000-08-15 18:16:39 +00:00
c6d2fa9232 Add filter.glade to EXTRA_DIST
svn path=/trunk/; revision=4812
2000-08-13 21:55:58 +00:00
c09e51955e remove blank.xpm and check.xpm which no longer exist
* Makefile.am (EXTRA_DIST): remove blank.xpm and check.xpm which
	no longer exist

svn path=/trunk/; revision=4807
2000-08-13 21:15:38 +00:00
85184f711c Use mail_tool_get_folder_name here too. (Hm... this directory really
* filter-driver.c (describe_filter_mail): Use
	mail_tool_get_folder_name here too. (Hm... this directory really
	shouldn't depend on stuff in mail/, but it already did. We'll have
	to sort this out later.)

svn path=/trunk/; revision=4788
2000-08-12 23:10:13 +00:00
2a7ffa8cf1 Remove an '#if 0' that must have been left in accidentally, so that
* filter-driver.c (do_filter_mail): Remove an '#if 0' that must
	have been left in accidentally, so that messages which are copied
	to other folders will not also be copied into the Inbox. Also,
	#ifdef out the line that printfs the rule, because the rules are
	often very large.

svn path=/trunk/; revision=4735
2000-08-11 15:44:33 +00:00
f0b6de3f0f Use proper accessor function instead of poking the structure.
2000-08-11  Not Zed  <NotZed@HelixCode.com>

        * filter-driver.c (do_colour): Use proper accessor function
        instead of poking the structure.

svn path=/trunk/; revision=4730
2000-08-11 07:47:47 +00:00
bef4579009 ChangeLog mistake.
svn path=/trunk/; revision=4721
2000-08-11 03:38:38 +00:00
e55f9a0e49 Fixed some warnings.
2000-08-10  Christopher James Lahey  <clahey@helixcode.com>

	* filter-driver.c, filter-driver.h, filter-folder.c,
	rule-context.c, vfolder-editor.c: Fixed some warnings.

svn path=/trunk/; revision=4720
2000-08-11 03:37:50 +00:00
1ecabb0dc4 Fix the infinite movemail
svn path=/trunk/; revision=4696
2000-08-10 18:46:39 +00:00
8cb514d6dd Merge with camel-async.
svn path=/trunk/; revision=4687
2000-08-10 17:30:50 +00:00
0c8f290865 Save the results of searches till we're done. So we dont have to go
2000-08-10  Not Zed  <NotZed@HelixCode.com>

        * filter-driver.c (filter_driver_run): Save the results of
        searches till we're done.  So we dont have to go strduping strings
        agian and again and again and again ...  Remove all the unecessary
        strdups.
        (do_colour): Implement.
        (filter_driver_run): Change for append api change.
        (free_key): Removed.

svn path=/trunk/; revision=4684
2000-08-10 16:36:25 +00:00
2f6003c9ed (rule_context_add_rule_gui): Keep track of context so it isn't freed under us.
svn path=/trunk/; revision=4645
2000-08-09 06:48:39 +00:00
b83eccac16 Make the filter dialog display only the name of the folder, not the
whole URI.

svn path=/trunk/; revision=4516
2000-08-03 20:53:14 +00:00
7286f1484f Oops, create a vfolder_rule when we add a new one.
2000-08-01  Not Zed  <NotZed@HelixCode.com>

        * vfolder-editor.c (rule_add): Oops, create a vfolder_rule when we
        add a new one.

svn path=/trunk/; revision=4425
2000-07-31 15:40:40 +00:00
dc63c5e222 If there are no user rules, dont bomb out.
2000-08-01  Not Zed  <NotZed@HelixCode.com>

	* rule-context.c (load): If there are no user rules, dont bomb
	out.

svn path=/trunk/; revision=4424
2000-07-31 15:38:13 +00:00
9ddabfee03 Set value of a simple type to a new string.
2000-07-31  Not Zed  <NotZed@HelixCode.com>

        * filter-input.c (filter_input_set_value): Set value of a simple
        type to a new string.

        * filter-option.c (filter_option_set_current): New function to set
        the current value of an option.

        * filter-rule.c (filter_rule_find_list): New function to find a
        rule in a list, by name.
        (filter_rule_set_name): Let you set the name of a rule.

        * rule-context.c (rule_context_find_rule): Find a rule by name.
        (rule_context_create_part): Helper to find and clone a part by
        name.

        * filter-folder.c (button_clicked): Fix warning.

        * filter.glade: Add new widgets for vfolder rule editor.

        * vfolder-context.c (vfolder_context_init): Changed to use vfolder
        rule as the rule type.

        * vfolder-rule.c: New class to encode extra information required
        for vfolder rules.

svn path=/trunk/; revision=4421
2000-07-31 15:03:23 +00:00
a44d1c188b ** Almost a total rewrite of every file, except for filter-driver which
2000-07-30  Not Zed  <NotZed@HelixCode.com>

        **  Almost a total rewrite of every file, except for filter-driver
        which just had minor updates.

        The rule format has changed.

svn path=/trunk/; revision=4418
2000-07-30 03:23:41 +00:00
8c845a7e32 Update for CamelFolder API changes. (delete_message and get_uids don't
* filter-driver.c (do_delete, filter_driver_run): Update for
	CamelFolder API changes. (delete_message and get_uids don't take
	exceptions any more.)

svn path=/trunk/; revision=4304
2000-07-25 02:43:23 +00:00
08b0dbea5a Updated to reflect changes to camel_folder_append_message ()
2000-07-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c (filter_driver_run): Updated to reflect changes to
	camel_folder_append_message ()

svn path=/trunk/; revision=4104
2000-07-12 03:09:27 +00:00
7ffeca2735 add a "string" type
* filter-xml.[ch]: add a "string" type

	* filtertype.xml, vfoldertypes.xml: Use type="string" rather than
	"folder" for subject/body matching.

	* filter-arg-types.c: Update some strings for "text" input. Fix
	some warnings (including one that pointed out a real bug).

	* filter-arg.c, filter-druid.c, filter-format.c: fix warnings

svn path=/trunk/; revision=4025
2000-07-09 23:24:02 +00:00
4d9bc165b2 Update for camel_folder_search_by_expression change (GList -> GPtrArray).
* filter-driver.c: Update for camel_folder_search_by_expression
	change (GList -> GPtrArray).

svn path=/trunk/; revision=3959
2000-07-07 21:13:58 +00:00
d6fdf08d68 sync this to filtertypes.xml (to/cc thing)
* vfoldertypes.xml: sync this to filtertypes.xml (to/cc thing)

svn path=/trunk/; revision=3945
2000-07-07 16:08:34 +00:00
9f381f8245 remove some non-error case debugging messages.
* remove some non-error case debugging messages.

svn path=/trunk/; revision=3904
2000-07-06 01:52:51 +00:00
6cfd18ee1c Fix typos and update the "to-address" rule to match To or Cc. Fix typos.
* filtertypes.xml: Fix typos and update the "to-address" rule to
	match To or Cc.
	* vfoldertypes.xml: Fix typos.

svn path=/trunk/; revision=3889
2000-07-05 18:01:00 +00:00
54376bf2c7 Add uids to the "processed" list only after succesfully doing something
* filter-driver.c (do_delete, do_copy, do_stop,
	filter_driver_run): Add uids to the "processed" list only after
	succesfully doing something with them. Fixes the problem where
	copying a message to a folder that didn't exist would result in it
	disapearing.

svn path=/trunk/; revision=3887
2000-07-05 17:00:59 +00:00
38ec332283 Get filters to work by not freeing the XML document nor the ruleset.
This probably makes us leak, but I don't understand how the code is
supposed to work so I cannot do the correct fix.  At least filters
(seem to) work now.

svn path=/trunk/; revision=3867
2000-07-03 02:10:23 +00:00
5158267d36 freeze the folder to avoid multiple folder_changed's (close_folder): and
* filter-driver.c (open_folder): freeze the folder to avoid
	multiple folder_changed's
	(close_folder): and thaw it.

svn path=/trunk/; revision=3864
2000-07-03 01:20:28 +00:00
f1701f224d kill filter_driver_set_session and filter_driver_set_rules and instead
* filter-driver.c (filter_driver_new): kill
	filter_driver_set_session and filter_driver_set_rules and instead
	make filter_driver_new take the rules and a callback function it
	can use to turn URIs into folders.
	(open_folder): Use the callback function rather than calling camel
	directly: some URIs need special handling to turn them into stores
	and folders correctly, so let the mailer do that.

svn path=/trunk/; revision=3859
2000-07-02 23:18:06 +00:00
fbc6a557a6 Added an extra @allowed_types parameter to the shell's folder
selection dialog, and update the code that uses it accordingly.

svn path=/trunk/; revision=3854
2000-07-02 04:46:36 +00:00
57abc7f895 Updated to reflect changes made to camel-folder.
2000-07-01  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-driver.c: Updated to reflect changes made to
	camel-folder.

svn path=/trunk/; revision=3846
2000-07-01 17:48:50 +00:00
ac6baa408e Add some checks for bad/nonexistant XML docs.
svn path=/trunk/; revision=3828
2000-06-30 16:37:55 +00:00
55499e0ce4 EvolutionShellClient.
svn path=/trunk/; revision=3820
2000-06-30 05:36:32 +00:00
f5fa17c2d0 changed Cc to CC to be the same as the other CC rule
svn path=/trunk/; revision=3819
2000-06-30 00:41:33 +00:00
57ecb76f62 added a Cc rule to vfolders
svn path=/trunk/; revision=3812
2000-06-29 22:03:51 +00:00
7a35ab4d84 Changed "Filter name" to "Option value" as "Filter name" made no sense in
2000-06-28  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-arg-types.c (arg_string_edit_value): Changed "Filter name"
	to "Option value" as "Filter name" made no sense in the dialog
	(arg_address_edit_value): Same
	(arg_folder_edit_value): What do we want to return??

svn path=/trunk/; revision=3777
2000-06-28 18:43:12 +00:00
1b6ebb2f7d When loading the description, strdup() the string in the XML tree so
that we don't crash when freeing the XML tree.

svn path=/trunk/; revision=3761
2000-06-27 16:28:31 +00:00
752db1683d Fix builddir != srcdir.
svn path=/trunk/; revision=3759
2000-06-27 16:00:19 +00:00
6febc8b3a7 Add the shell dir for includes (for corba interfaces).
2000-06-27  Michael Zucchi  <zucchi@zedzone.mmc.com.au>

        * Makefile.am (INCLUDES): Add the shell dir for includes (for
        corba interfaces).

        * filter-arg-types.c (impl_FolderSelectionListener_selected):
        Listener for folder query.  Sigh.
        (create_listener): Create the listener object for the folder
        dialogue query.  Uses a global for linkage to the shell object,
        via the mail component.
        (arg_folder_edit_value): Call the folder selection dialogue to
        edit the value, rather than a simple text widget.

svn path=/trunk/; revision=3746
2000-06-27 03:42:34 +00:00
45dbd798ea Added a #include <gnome-xml/parser.h> as this was needed (since we used
2000-06-26  Jeffrey Stedfast  <fejj@helixcode.com>

	* filter-editor.c: Added a #include <gnome-xml/parser.h> as this
	was needed (since we used the xml parser...)
	(druid_dialogue_clicked): Do we want to use struct filter_option
	or do we instead want to use struct filter_optionrule as we had before?
	Since the function we pass the data to expects filter_option, I suspect
	that that is what we want.

	* filter-format.h (filter_description_html_write): Renamed from
	description_html_write in order to match function name in
	filter-format.c

	* filter-druid.c (option_name_changed): Fixed a memory leak (Free'd
	a filter description list).

	* filter-arg-types.c (arg_folder_edit_values): Free'd GList data in
	argin->values.

	* filter-driver.c (filter_driver_set_rules): Added code to free an
	xmlDoc and some other data.

	* filter-arg.h: Add prototypes for filter_arg_write_html() and
	filter_arg_write_text();

	* filter-arg-types.c: Lets see if we can't get rid of some of these
	warnings... (use some casts to make warnings go away)
	(arg_address_edit_value): Lets make sure that ad exists before looking
	at member data.

svn path=/trunk/; revision=3741
2000-06-26 19:01:39 +00:00
3069f4c5d1 Update for Camel flag handling changes.
* filter-driver.c (do_delete, filter_driver_run): Update for Camel
	flag handling changes.

svn path=/trunk/; revision=3599
2000-06-16 23:10:12 +00:00
09cf0a78c4 Update for CamelFolder changes.
* filter-driver.c (open_folder, close_folder): Update for
	CamelFolder changes.

svn path=/trunk/; revision=3582
2000-06-15 22:20:58 +00:00
cd84bd7580 use stock pixmap buttons
2000-06-09  Jacob Berkman  <jacob@helixcode.com>

	* filter-editor.c (add_or_edit): use stock pixmap buttons

	* filter-druid.c (build_druid): remove the border on the notebook,
	put the html widget in a scroll frame, and add some padding

svn path=/trunk/; revision=3495
2000-06-09 21:48:29 +00:00
012cc2eecb Update for folder existence/creation changes.
* filter-driver.c (open_folder): Update for folder
	existence/creation changes.

svn path=/trunk/; revision=3454
2000-06-07 00:06:43 +00:00