Commit Graph

16 Commits

Author SHA1 Message Date
a8acf02a64 Modify to be able to handle a NULL source_url. (source_auth_init): Allow
2001-01-16  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (apply_changes): Modify to be able to
	handle a NULL source_url.
	(source_auth_init): Allow for a NULL source url.
	(source_check): Same.

	* mail-config.c (mail_config_write): Allow for NULL source
	URLs. And while we're at it, NULL transport URLs as well. Might as
	well save the use_ssl variable too.
	(config_read): Same.

	* mail-config-druid.c (druid_finish): Modify to allow a NULL
	source url.
	(incoming_next): Modify to check for a NULL source and jump to the
	transport page if one is encountered (this means the user decided
	not to config a source).
	(incoming_type_changed): Modify to set all widgets insensitive if
	the user selected the "None" source menu item (aka NULL provider).
	(incoming_check): Modify to allow the user to go to the next page
	when he/she has chosen "None" for their source type.
	(mail_config_druid_get_source_url): Return NULL if the provider is
	NULL.
	(mail_config_druid_get_transport_url): Same.

svn path=/trunk/; revision=7561
2001-01-17 01:34:22 +00:00
b24cb94e37 If the preferred authmech isn't found, default to the first one in the
2001-01-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (source_auth_init): If the preferred
	authmech isn't found, default to the first one in the list.
	(transport_construct_authmenu): This function already did the
	above but I made it simpler.
	(apply_changes): A number of cleanups.

svn path=/trunk/; revision=7479
2001-01-13 21:50:42 +00:00
c650d5467d Anna's dialogs.
2001-01-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.glade: Anna's dialogs.

	* mail-config.c (mail_config_get_account_by_address):
	Removed. Danw and I decided on setting a X-Evolution-Transport
	header on messages going to the Outbox so we can later guess which
	transport to use when sending it.

	* mail-account-editor.c (apply_changes): Update to some day be
	able to support SSL.
	(construct): Update for Anna's dialogs...

	* subscribe-dialog.c (populate_store_list): Updated to reflect
	past changes to the mail-config API.

svn path=/trunk/; revision=7461
2001-01-12 21:59:42 +00:00
f7e2da3380 Eek! Don't destroy the account if the connection fails, duh. This is what
2001-01-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-account-editor.c (apply_changes): Eek! Don't destroy the
	account if the connection fails, duh. This is what is causing the
	segfaults.

svn path=/trunk/; revision=7421
2001-01-12 00:18:07 +00:00
ee65e2a732 Set the sensitivity of the Password label too.
2001-01-10  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-account-editor.c (source_auth_type_changed): Set the
	sensitivity of the Password label too.

svn path=/trunk/; revision=7376
2001-01-10 23:08:34 +00:00
8592ae36ae Clear the password entry if it's not allowed. (transport_type_changed):
2001-01-10  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config-druid.c (auth_type_changed): Clear the password
	entry if it's not allowed.
	(transport_type_changed): Clear the hostname if it is not allowed
	by the provider type.

	* mail-account-editor.c (transport_type_changed): If the hostname
	is allowed, clear it.

	* mail-config-druid.c (incoming_type_changed): Clear the contents
	of the entry boxes that are not to be used.
	(mail_config_druid_get_source_url): If the text in the entry is
	emptry string, don't set it' contents in the url.

svn path=/trunk/; revision=7369
2001-01-10 20:30:07 +00:00
2f0ce375aa Moved to mail-config.glade
2001-01-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config-druid.glade: Moved to mail-config.glade

	* mail-accounts.c (construct): Updated to use mail-config.glade.

	* mail-account-editor.c (construct): Updated to use
	mail-config.glade.

	* mail-config-druid.c (construct): Updated to use
	mail-config.glade.

	* mail.h: Added the new mail config headers.

svn path=/trunk/; revision=7351
2001-01-10 03:52:40 +00:00
f39b89c39a Gray out the appropriate labels too. (auth_type_changed): And here.
2001-01-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config-druid.c (incoming_type_changed): Gray out the
	appropriate labels too.
	(auth_type_changed): And here.
	(transport_type_changed): Here too...

	* mail-account-editor.c (source_check): Gray out the appropriate
	labels too.
	(transport_type_changed): And here too.

svn path=/trunk/; revision=7340
2001-01-09 21:44:40 +00:00
18c8bea951 For all optionmenu's, set the appropriate 'history'. (keep_mail_check):
2001-01-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-account-editor.c: For all optionmenu's, set the appropriate
	'history'.
	(keep_mail_check): Set the keep-on-server checkbutton sensitivity
	based on whether or not the store is a storage or not.
	(construct): Call keep_mail_check().

	* mail-config-druid.c (incoming_type_changed): Set the
	keep-on-server checkbutton sensitivity based on whether or not the
	store is a storage or not.

	* mail-accounts.c (construct): Make sure the dialog isn't a
	scrunched little thingy.

svn path=/trunk/; revision=7328
2001-01-09 19:29:18 +00:00
2b1d1fdc36 New function to set the password for a given url.
2001-01-09  Jeffrey Stedfast  <fejj@helixcode.com>

	* session.c (mail_session_set_password): New function to set the
	password for a given url.

	* mail-config-druid.c (druid_finish): Don't save the password in
	the source url, instead insert it into the save-password hash.
	(mail_config_druid_get_source_url): Check to make sure the
	authmech isn't "", if it is then don't set the authmech.

	* mail-account-editor.c (apply_changes): Don't save the password
	in the source url, instead insert it into the save-password
	hash. Also check to make sure we don't set an empty string as the
	authmech for the source or transport.

	* mail-accounts.c (mail_default): After reloading the accounts,
	reselect the previously selected account.
	(mail_delete): Same.

	* mail-config-druid.c (druid_cancel): Fixed segfault bug.

svn path=/trunk/; revision=7319
2001-01-09 17:21:34 +00:00
a2d998fe13 Brand spankin' new config druid, editor, and manager.
2001-01-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* Makefile.am:
	* component-factory.c:
	* folder-browser-factory.c:
	* folder-browser.c:
	* mail-accounts.[c,h]:
	* mail-account-editor.[c,h]:
	* mail-callbacks.c:
	* mail-config.[c,h]:
	* mail-config-druid.[c,h]:
	* mail-config-druid.glade:
	* mail-display.c:
	* mail-format.c:
	* mail-tools.c: Brand spankin' new config druid, editor,
	and manager.

svn path=/trunk/; revision=7313
2001-01-09 03:31:31 +00:00
51bd9ba1bb A bunch of fixes.
2001-01-08  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config-druid.c: A bunch of fixes.

	* mail-accounts.c: More fixes...

	* mail-account-editor.c (construct): Reparent the notebook to the
	editor->vbox and set the resize policy.

svn path=/trunk/; revision=7301
2001-01-08 20:05:56 +00:00
d53b9af629 Updated to reflect changes to the mail-config API. (create_msg_composer):
2001-01-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-callbacks.c (check_send_configuration): Updated to reflect
	changes to the mail-config API.
	(create_msg_composer): Same.
	(forward_get_composer): Same.
	(send_queued_mail): Same.
	(composer_send_cb): Same.

	* mail-account-editor.c: Updated to build cleanly.  *
	mail-config-druid.c: Same.  * mail-accounts.c: Same.

	* folder-browser-factory.c (control_activate): Updated for API
	changes in mail-config.

	* folder-browser.c (done_message_selected): Updated for API
	changed in mail-config.
	(folder_browser_gui_init): Same.
	(got_folder): Same.

	* component-factory.c (owner_set_cb): After using the sources
	list, free it as it is no longer a const GSList as with the older
	mail-config code.

	* mail-config.c: Totally rewritten.

svn path=/trunk/; revision=7294
2001-01-07 23:12:11 +00:00
b1bfee4db1 Implemented. (ok_clicked): Implemented. (cancel_clicked): Implemented.
2001-01-07  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-account-editor.c (apply_clicked): Implemented.
	(ok_clicked): Implemented.
	(cancel_clicked): Implemented.
	(source_auth_type_changed): Implemented.
	(source_auth_init): Implemented.
	(transport_construct_authmenu): Implemented.
	(transport_type_changed): Updated to change regenerate the auth
	option menu.
	(construct): Attached callbacks to OK, Apply and Cancel buttons.

	* mail-account-editor.c (source_auth_init): Use the new
	mail_config_check_service().

	* mail-config-druid.c: Remove check_service() as it will be moved
	into mail-config.

svn path=/trunk/; revision=7289
2001-01-07 05:33:54 +00:00
670a2b34ff Coded a bunch of the methods.
2001-01-06  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-account-editor.c: Coded a bunch of the methods.

svn path=/trunk/; revision=7287
2001-01-07 01:02:05 +00:00
3d0a81c354 New source files to provide an account editor widget.
2001-01-05  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-account-editor.[c,h]: New source files to provide an
	account editor widget.

	* mail-config-druid.c (auth_type_changed): Set the authproto on
	the druid so we can look it up later.

svn path=/trunk/; revision=7280
2001-01-06 04:05:51 +00:00