Commit Graph

99 Commits

Author SHA1 Message Date
2bdcfe5c47 Make CamelServices connect only when told to (old behavior). Make CamelRemoteStore do its stuff in service::connect, not ::post_connect.
svn path=/trunk/; revision=5116
2000-08-30 17:09:42 +00:00
0b9b384a2b Fix GDK_THREADS_entering and leaving, hopefully once and for all. Genericify the recursive-store-loading. Load stores when they're added to the config page.
svn path=/trunk/; revision=5005
2000-08-24 17:22:12 +00:00
53337e992f Get the mail component to use the new Evolution::ShellView interface.
This implementation is so ugly and evil and needs to be replaced.
Don't look at it.  Go away.

svn path=/trunk/; revision=4797
2000-08-13 05:20:54 +00:00
c1f24d07e4 Updated to reflect changes to mail_do_scan_subfolders
2000-08-13  Jeffrey Stedfast  <fejj@helixcode.com>

	* component-factory.c (create_news_storage): Updated to reflect
	changes to mail_do_scan_subfolders
	(create_imap_storage): Same.

	* mail-ops.c (mail_do_scan_subfolders): No longer takes an
	add_INBOX argument

svn path=/trunk/; revision=4795
2000-08-13 04:23:42 +00:00
d1245d7e6b Take the source as a command-line argument rather than fetching it from
* component-factory.c (create_imap_storage): Take the source as a
	command-line argument rather than fetching it from mail-config.
	(owner_set_cb): Call create_imap_storage on each configured IMAP
	store.

svn path=/trunk/; revision=4793
2000-08-13 03:52:31 +00:00
64c6a63cf2 Check nrow, not srow.
2000-08-11  JP Rosevear  <jpr@helixcode.com>

	* mail-config-gui.c (news_edit_clicked): Check nrow, not srow.

svn path=/trunk/; revision=4738
2000-08-11 16:13:15 +00:00
6db1c7d22a Don't call e_setup_base_dir. It was wrong and it doesn't exist any more.
* session.c (session_init): Don't call e_setup_base_dir. It was
        wrong and it doesn't exist any more.

        * component-factory.c (owner_set_cb): Update for changed
        prototype, and record the evolution_homedir. Move call to
        mail_config_init here from session.c so it happens after
        evolution_dir is initialized.

        * mail.h: define "extern char *evolution_dir;" (formerly in
        e-util/e-setup.h)

        * component-factory.c, mail-callbacks.c, mail-config-gui.c,
        mail-config.c, mail-display.c, mail-format.c, mail-ops.c,
        mail-tools.c, session.c: Remove "e-util/e-setup.h" include.

svn path=/trunk/; revision=4712
2000-08-11 00:02:25 +00:00
8cb514d6dd Merge with camel-async.
svn path=/trunk/; revision=4687
2000-08-10 17:30:50 +00:00
3d4dc806bf New function to replace real_create_imap_storage and
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* component-factory.c (real_create_generic_storage): New function
	to replace real_create_imap_storage and real_create_news_storage
	(create_imap_storage): Updated.
	(create_news_storage): Updated.

svn path=/trunk/; revision=4584
2000-08-07 21:16:09 +00:00
0a9fdd8842 s/strncasecmp/g_strncasecmp
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-display.c:
	* component-factory.c: s/strncasecmp/g_strncasecmp

	* mail-format.c (write_headers): Get rid of kludge around subject
	beginning with spaces.
	(mail_generate_reply): Get rid of kludge around subject beginning
	with spaces and also use g_strncasecmp instead of strncasecmp for
	portability

	* mail-ops.c (forward_msg): Get rid of kludges around subject
	beginning with spaces.

svn path=/trunk/; revision=4575
2000-08-07 18:32:55 +00:00
dcc0eea8aa Create a global reference to the Drafts mbox folder for the Composer to
2000-08-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* component-factory.c (owner_set_cb): Create a global reference to
	the Drafts mbox folder for the Composer to use

svn path=/trunk/; revision=4561
2000-08-07 06:16:55 +00:00
8ec2a002e8 only whack the sig in if the file exists.
2000-08-03  Michael Meeks  <michael@helixcode.com>

	* mail-config.c (identity_page_new): only whack the sig in if the
	file exists.

	* component-factory.c (factory_fn): count running instances,
	attach destroy signal (factory_destroy): add.

	* main.c (main): pass orb around.

svn path=/trunk/; revision=4523
2000-08-04 02:00:02 +00:00
3892c5df4d Fixed some warnings.
2000-07-31  Christopher James Lahey  <clahey@helixcode.com>

	* component-factory.c, folder-browser.c: Fixed some warnings.

	* message-list.c: Made the icon column non sortable.

svn path=/trunk/; revision=4440
2000-07-31 22:32:52 +00:00
4f1ecbb64b Remove hack to pass the storage around.
2000-07-29  Not Zed  <NotZed@HelixCode.com>

        * component-factory.c (create_view): Remove hack to pass the
        storage around.

        * folder-browser-factory.c (control_activate): Changed to call
        renamed vfolder editor.

        * mail-ops.c (vfolder_edit_vfolders): renamed from vfolder_edit,
        call new edit function.
        (vfolder_editor_clicked): Removed.
        (filter_druid_clicked):
        (filter_edit): Updated for api change.
        (real_fetch_mail): Fixed up for api change and fucked up indent.
        (filter_get_folder): callback for filter driver.

        * mail-vfolder.c: New file to manage virtual folders.

svn path=/trunk/; revision=4417
2000-07-30 03:21:16 +00:00
121d056d45 New function to create composer with sig file set.
2000-07-28  JP Rosevear  <jpr@arcavia.com>

	* e-msg-composer.c (e_msg_composer_new_with_sig_file): New
	function to create composer with sig file set.
	(e_msg_composer_get_sig_file): New function to get sig file
	(e_msg_composer_set_sig_file): New function to set sig file

2000-07-29  JP Rosevear  <jpr@arcavia.com>

	* mail-format.c (mail_generate_reply): Use new mail config stuff

	* component-factory.c (create_imap_storage): Use new mail config
	stuff
	(create_news_storage): ditto

	* evolution-mail.schemas: Gconf schema for evolution mail

	* mail-config-druid.glade: Gladification of config druid

	* mail-config.h: New header with config structs.

	* mail-config.c: Rewrite of GUI configuration tools to use
	new config structs.  Stores multiple identities and sources now.
	Still only uses the first one found.
	(mail_config_fetch): Returns MailConfig struct to caller
	for configuration queries.
	(mail_config): Renamed function to show mail config dialog.
	(mail_config_druid): Renamed function to show mail config druid.

	* mail-ops.c (create_msg_composer): Use
	e_msg_composer_new_with_sig_file and new config stuff
	(check_configured): Use new config stuff
	(fetch_mail): ditto
	(composer_send_cb): ditto

svn path=/trunk/; revision=4413
2000-07-29 06:04:24 +00:00
e1ecbdf489 Update for CamelFolder API changes. (Certain functions no longer take a
* message-list.c (mark_msg_seen, ml_tree_set_value_at,
	message_list_regenerate): Update for CamelFolder API changes.
	(Certain functions no longer take a CamelException.)

	* mail-ops.c (real_fetch_mail, real_send_mail, real_delete_msg):
	ditto

	* component-factory.c (real_create_imap_storage,
	real_create_news_storage): ditto

svn path=/trunk/; revision=4305
2000-07-25 02:47:18 +00:00
9a6b1689a7 Remove GOAD support.
* component-factory.c, folder-browser-factory.c, test-mail.c:
	Remove GOAD support.

	* main.c: Remove GOAD support.
	(main): More "guess the build mistake" fun, this time for the
	failure to initialize Bonobo case.

svn path=/trunk/; revision=4301
2000-07-25 01:38:08 +00:00
782d8a198c Update the components to match the changes in the libeshell API.
svn path=/trunk/; revision=4242
2000-07-20 17:26:19 +00:00
237f2dc92b Initial code to support IMAP folders that don't use "/" as a directory
2000-07-16  Jeffrey Stedfast <fejj@helixcode.com>

	* folder-browser.c, component-factory.c: Initial code to support
	IMAP folders that don't use "/" as a directory separator.

svn path=/trunk/; revision=4185
2000-07-17 03:46:26 +00:00
04073f3c49 kill more debugging messages
* kill more debugging messages

svn path=/trunk/; revision=4050
2000-07-10 20:48:10 +00:00
76bfeb54e4 Fix syncing of the mailbox on exit so that it's done on destruction of
the corresponding FolderBrowser instead of using the "owner_unset"
signel (the latter was broken, because the FolderBrowser is destroyed
before "owner_unset" is emitted, so we have no chance to sync at that
point).

svn path=/trunk/; revision=4038
2000-07-10 16:37:55 +00:00
e21b797d83 Get rid of a compiler warning.
svn path=/trunk/; revision=3881
2000-07-04 02:33:15 +00:00
033a1cd5a7 Fix filter_driver_new invocation.
* component-factory.c (create_vfolder_storage): Fix
	filter_driver_new invocation.

svn path=/trunk/; revision=3862
2000-07-03 00:39:35 +00:00
480cd7ee76 Pass mail_uri_to_folder and rules to filter_driver_new.
* mail-ops.c (real_fetch_mail):
	(vfolder_editor_clicked):
	* component-factory.c (create_vfolder_storage):
	Pass mail_uri_to_folder and rules to filter_driver_new.

svn path=/trunk/; revision=3860
2000-07-02 23:18:17 +00:00
effe256583 Fix to work with new EvolutionShellClient
svn path=/trunk/; revision=3830
2000-06-30 18:07:46 +00:00
4e359621b1 Fix stupid typos and add a missing prototype.
svn path=/trunk/; revision=3823
2000-06-30 08:28:44 +00:00
55499e0ce4 EvolutionShellClient.
svn path=/trunk/; revision=3820
2000-06-30 05:36:32 +00:00
01166c4fa2 remove some code incorrectly copied and pasted from create_vfolder_storage
* component-factory.c (create_imap_storage, create_news_storage):
	remove some code incorrectly copied and pasted from
	create_vfolder_storage which caused vfolder creation to stop
	working.

svn path=/trunk/; revision=3804
2000-06-29 20:31:40 +00:00
7fe829bb52 Refuse to create folders not of type "mail", and correctly create an empty
* component-factory.c (create_folder): Refuse to create folders
	not of type "mail", and correctly create an empty "mbox" folder
	for new folders in /local.

svn path=/trunk/; revision=3781
2000-06-28 23:12:50 +00:00
54f748a343 Put in a gross hack to export the shell reference elsewhere.
2000-06-27  Michael Zucchi  <zucchi@zedzone.mmc.com.au>

	* component-factory.c (owner_set_cb): Put in a gross hack to
	export the shell reference elsewhere.

svn path=/trunk/; revision=3748
2000-06-27 03:45:36 +00:00
e923d2eea9 Make the broken threads optional
svn path=/trunk/; revision=3740
2000-06-26 18:21:45 +00:00
aa68bd85f1 Land most of the stuff to move fetch_mail, send_mail, expunge_folder, init_imap, and init_news to async operation.
svn path=/trunk/; revision=3711
2000-06-23 19:07:01 +00:00
45cca0f241 Little prototype fixes
svn path=/trunk/; revision=3708
2000-06-23 15:58:22 +00:00
d12be02179 add handling for loading "news:" folders.
2000-06-22  Chris Toshok  <toshok@helixcode.com>

	* folder-browser.c (folder_browser_load_folder): add handling for
	loading "news:" folders.

	* component-factory.c (create_news_storage): add a root for news
	source.
	(owner_set_cb): call create_news_storage.

svn path=/trunk/; revision=3703
2000-06-23 02:11:38 +00:00
afa7176eab Updated to prepend url-> path if it exists for that imap store.
2000-06-22  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser.c (folder_browser_load_folder): Updated to
	prepend url-> path if it exists for that imap store.

	* component-factory.c (create_imap_storage): Modified to not
	prepend a hard-coded namespace.

svn path=/trunk/; revision=3701
2000-06-22 21:55:14 +00:00
ed11b82023 oops, should have checked for a NULL sources in component-factory.c
(create_imap_storage)

svn path=/trunk/; revision=3657
2000-06-21 01:36:34 +00:00
9272361bba Only fetch the summary if the folder summary doesn't already exist. When
2000-06-20  Jeffrey Stedfast  <fejj@helixcode.com>

	* providers/imap/camel-imap-folder.c (imap_get_summary): Only
	fetch the summary if the folder summary doesn't already exist.
	When the summary *does* exist, start fetching from 1, not 0.
	(imap_free_summary): Don't do anything here.
	(imap_finalize): Free the summary here instead of in
	imap_free_summary().

	* camel-url.c (check_equal): No need to check s1 if s2 is NULL
	(camel_url_equal): Don't check the passwd component of the url.

and in mail/component-factory.c (create_imap_storage): removal of
debug statements
mail/folder-browser.c (folder_browser_load_folder): improved imap
service parser

svn path=/trunk/; revision=3649
2000-06-20 21:11:07 +00:00
8f881bd9d5 working on getting IMAP folder selection working
svn path=/trunk/; revision=3648
2000-06-20 18:04:10 +00:00
1ede35fcdd basically got IMAP into the tree view
svn path=/trunk/; revision=3643
2000-06-20 04:57:39 +00:00
11c0b04807 started to add code to load an IMAP folder.
2000-06-18  Jeffrey Stedfast  <fejj@helixcode.com>

	* folder-browser.c (folder_browser_load_folder): started to add
	code to load an IMAP folder.

	* component-factory.c: Started to add a create_imap_storage
	method so that we can eventually have our IMAP store displayed
	in the tree view.
	(create_vfolder_storage): Renamed from
	create_test_storage().
	(owner_set_cb): Updated.

svn path=/trunk/; revision=3627
2000-06-19 02:55:09 +00:00
0f13b8f0bc Update for CamelFolder changes.
* mail-ops.c (fetch_mail):
	* component-factory.c (owner_unset_cb):
	* message-list.c (message_list_set_folder): Update for CamelFolder
	changes.

svn path=/trunk/; revision=3583
2000-06-15 22:22:20 +00:00
860fb187ff Return the result of folder_browser_load_folder. (get_prop, set_prop,
* folder-browser.c (folder_browser_set_uri): Return the result of
	folder_browser_load_folder.
	(get_prop, set_prop, folder_browser_properties_init): Remove. No
	longer needed.

	* folder-browser-factory.c (folder_browser_factory_new_control):
	Add a "uri" argument, return NULL if setting it fails.
	(folder_browser_factory_new_control): Remove property bag stuff.
	(folder_browser_factory_init, folder_browser_factory): Remove
	this, since we're using the component factory now.

	* component-factory.c (create_view): Update for
	folder_browser_factory_new_control change and return NOTFOUND as
	appropriate.

	* main.c (main): Don't call folder_browser_factory_init.

svn path=/trunk/; revision=3532
2000-06-12 19:29:17 +00:00
bbb6a6942f Implemented folder creation dialog (File -> New -> Folder). To make
it really work though, the components should implement creation
functionality by passing an appropriate function pointer in
`e_shell_component_new()' for @create_folder_fn.

svn path=/trunk/; revision=3504
2000-06-10 17:56:46 +00:00
7f36752a67 Initial support for creating/removing folders. This implies some new
IDL methods and new functions to implement on the component side.  I
have also added a simple folder creation dialog in the shell.  It's
quite unfinished and untested.

svn path=/trunk/; revision=3491
2000-06-09 19:19:36 +00:00
a1c7c6ef0e keep a GList of folder browsers created (owner_unset_cb): Go through the
* component-factory.c (create_view): keep a GList of folder
	browsers created
	(owner_unset_cb): Go through the list and close each folder before
	exiting so they sync their summary state, etc to disk.

svn path=/trunk/; revision=3393
2000-06-02 18:46:50 +00:00
185727ca81 Quit when the shell exits. This is a kludge, but a pretty necessary one
* component-factory.c (owner_unset_cb): Quit when the shell exits.
	This is a kludge, but a pretty necessary one until the refcounting
	bugs that keep the component from exiting properly are fixed.

svn path=/trunk/; revision=3323
2000-06-01 04:09:01 +00:00
bebbdbbbcb Hardcode the vfolder source to just the inbox (so at least it returns
2000-05-29  Not Zed  <NotZed@HelixCode.com>

        * folder-browser.c (folder_browser_load_folder): Hardcode the
        vfolder source to just the inbox (so at least it returns
        something).

        * component-factory.c (create_test_storage): Create a vfolder dir
        first, and put the folders in that.
        (create_test_storage): Create the storage as VFolders, not
        "storage_name" :)

svn path=/trunk/; revision=3269
2000-05-29 20:39:19 +00:00
5b887fe6dc vfolder gui! So you can define them,k they show up in the list (well,
after a restart), but they always come up empty - doesn't search any
folders yet.

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

        * Makefile.am (SHELL_OBJS): Include mail storage so we can
        initialise folders.

        * component-factory.c (create_test_storage): Parses vfolder
        defintions and adds them to the storage.  Definetly needs more
        work.

        * folder-browser-factory.c (control_activate): Add the VFolder
        druid menu item.
        (control_deactivate): And remove it.

        * mail-ops.c (vfolder_editor_clicked): For editing vfolder
        definitions (rather like filters, oddly enough :).  Tries to
        update the shell but it doesn't seem to work properly - requires a
        mail component restart to take effect.

        * folder-browser.c (folder_browser_load_folder): Handle vfolder:
        urls' appropriately and map to camel.  Still needs a way to tell
        the vfolder what folders to search! (all vfolders come up empty!).

svn path=/trunk/; revision=3241
2000-05-28 06:18:11 +00:00
bb241192eb Reorganized the shell to allow dynamic registration of storages and
folder types, and changed all the components to work with the new
setup.

svn path=/trunk/; revision=3199
2000-05-25 05:55:59 +00:00