Commit Graph

71 Commits

Author SHA1 Message Date
b0ee069191 "use_ssl" can now be 3 options, modify the code to handle this.
2002-03-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (save_service): "use_ssl" can now be 3
	options, modify the code to handle this.
	(setup_service): Toggle the correct ssl option.
	(source_type_changed): Show/hide the ssl hbox container widget.
	(transport_type_changed): Same.

svn path=/trunk/; revision=15933
2002-03-05 22:56:14 +00:00
63fb014af9 Ack, strip off the leading '/' char and also only translate if it is a
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Ack, strip off the
	leading '/' char and also only translate if it is a local uri,
	imap folders and other external folders will be named by the user
	so no need to translate those.

svn path=/trunk/; revision=15751
2002-02-16 01:10:56 +00:00
4801096f61 Ack, strip off the leading '/' char and also only translate if it is a
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Ack, strip off the
	leading '/' char and also only translate if it is a file: uri,
	imap folders and other external folders will be named by the user
	so no need to translate those.

svn path=/trunk/; revision=15750
2002-02-16 00:58:22 +00:00
40fc52b322 Ack, strip off the leading '/' char.
2002-02-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Ack, strip off the
	leading '/' char.

svn path=/trunk/; revision=15749
2002-02-16 00:47:55 +00:00
02976f86ea Replacement for using g_basename and also translates the basename string
2002-02-14  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (basename_from_uri): Replacement for using
	g_basename and also translates the basename string to fix bug
	#7160.
	(mail_account_gui_save): Use basename_from_uri().
	(folder_picker_clicked): Here too.

svn path=/trunk/; revision=15733
2002-02-15 00:15:29 +00:00
bfd54850fa Rearranged the #if checks so that we don't ever try to access any smime
2002-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): Rearranged the #if
	checks so that we don't ever try to access any smime widgets
	(since they are now being destroyed) if smime isn't enabled.
	(mail_account_gui_save): Same here.

svn path=/trunk/; revision=15587
2002-02-07 01:58:50 +00:00
bd3b4f5462 Destroy the S/MIME frame if not available, instead of just graying it out.
* mail-account-gui.c (mail_account_gui_new): Destroy the S/MIME
frame if not available, instead of just graying it out.  [I would
just hide it, but it looks like there is a show_all somewhere so
that doesn't work.]

svn path=/trunk/; revision=15554
2002-02-02 17:14:53 +00:00
207303df9e Pass the parent window to mail_account_editor_new().
2002-01-30  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-accounts.c (mail_edit): Pass the parent window to
	mail_account_editor_new().

	* mail-account-editor.c (mail_account_editor_new): Set the parent
	window here because construct() inadvertantly
	gtk_widget_show_all's the editor.

	* mail-account-gui.c (mail_account_gui_save): Use g_basename()
	rather than strrchr for '/' especially since the strrchr code
	wasn't doing any NULL checks.

svn path=/trunk/; revision=15533
2002-01-30 23:46:32 +00:00
4158f7bd05 We need to return a value here. I think FALSE is fine (I hope).
2002-01-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (delete_event_cb): We need to return a value
	here. I think FALSE is fine (I hope).

svn path=/trunk/; revision=15476
2002-01-25 21:38:32 +00:00
5302fdbacd Don't bother trying to see if the domain looks like a FQDN.
2002-01-24  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (is_email): Don't bother trying to see if the
	domain looks like a FQDN.

svn path=/trunk/; revision=15457
2002-01-24 20:14:36 +00:00
9d39da64dc When connecting to the transport username changed event, pass the
2002-01-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): When connecting to
	the transport username changed event, pass the gui->transport not
	the gui->source.

svn path=/trunk/; revision=15266
2002-01-08 20:32:54 +00:00
34ea30a0d8 Add the auto-cc/bcc recipients here. The problem with setting them in the
2001-12-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (composer_get_message): Add the auto-cc/bcc
	recipients here. The problem with setting them in the composer is
	that what if the user changes which account he wants to use? We'd
	either have to clear the cc/bcc lists *or* we'd have to leave them
	alone. Either way is bad. We can't just clear the entries because
	the user may have added addresses since the composer was
	opened. We don't want to leave any old auto-cc/bcc addresses there
	because that isn't desirable either. So we give up and add them
	here after the user has already hit the send button.

	* mail-config.c (account_copy): Update to copy the always-[b]cc
	options.
	(account_destroy): Update to destroy the above options.
	(config_read): Update to read in those values.
	(mail_config_write): Save those options.

	* mail-account-gui.c (mail_account_gui_new): Setup Always Cc/Bcc
	widgets.
	(mail_account_gui_save): Get the user-entered values for the
	always-cc/bcc stuff.

svn path=/trunk/; revision=15189
2001-12-20 00:35:40 +00:00
28d014efff If the provider is NULL, don't do anything.
2001-12-19  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (setup_service): If the provider is NULL,
	don't do anything.

	* mail-accounts.c (construct): Oops, no wonder the exec command
	thing never stuck around... I wasn't getting the right widget from
	libglade. Also connect to the GtkEntry's changed event since a
	GnomeFileEntry doesn't have that signal in its ancestry.

svn path=/trunk/; revision=15188
2001-12-19 22:26:23 +00:00
cdd8a5be80 Don't make the account editor modal either.
2001-11-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Don't make the account editor
	modal either.

	* mail-accounts.c (mail_add): Use the new global account druid
	variable so that we can avoid having more than a single druid at a
	time. If a druid already exists, bring it to the top.
	(mail_edit): Same idea only for the account editor this time.
	(mail_editor_destroyed): Set the global editor to NULL.
	(mail_add_finished): Set the global druid to NULL.
	(mail_delete): Don't allow any deletes if an account editor is
	opened (we don't want to be able to delete the account we are
	editing...)
	(news_edit): Same thing for the news editor.
	(news_editor_destroyed): Set the news editor to NULL.
	(news_add): And again for the news add.

	* mail-account-gui.c (service_check_supported): Updated to pass a
	GtkWindow argument to mail_config_check_service().

	* mail-config.c (mail_config_check_service): Now takes a GtkWindow
	argument so we can set our parent window. Also, don't make this
	dialog modal either.

	* mail-config-druid.c (construct): Don't make this druid modal.

svn path=/trunk/; revision=14598
2001-11-05 23:10:12 +00:00
495a7e6a3c add delete_event_handler. (menu_file_save_close_cb): add save and close
2001-10-30  Larry Ewing  <lewing@ximian.com>

	* mail-account-gui.c (delete_event_cb): add delete_event_handler.
	(menu_file_save_close_cb): add save and close command.
	(launch_signature_editor): initial the editor as having changed
	and attach the delete event handler.

svn path=/trunk/; revision=14499
2001-10-30 23:17:48 +00:00
7ffad86d87 Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account()
2001-10-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Call
	mail_autoreceive_setup() instead of
	mail_autoreceive_setup_account() since that code was completely
	broken anyway.

	* mail-send-recv.c (mail_autoreceive_setup_account): Removed.

svn path=/trunk/; revision=14318
2001-10-29 03:11:56 +00:00
4ca07463a0 More fixing of the license texts.
svn path=/trunk/; revision=14217
2001-10-27 18:21:05 +00:00
65c33efb1b Don't allow an auth-type to be set when saving the service.
2001-10-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (service_check_supported): Don't allow an
	auth-type to be set when saving the service.
	(mail_account_gui_new): Initialize the source and transport
	provider_type's here so we don't forget to do it when it matters.
	(mail_account_gui_setup): Don't bother setting the provider_type's
	here, they are already set in mail_account_gui_new() now.

svn path=/trunk/; revision=13968
2001-10-23 23:39:07 +00:00
9
69ab21999c Dont translate camel strings. (mail_account_gui_setup): "
2001-10-19    <NotZed@Ximian.com>

        * mail-account-gui.c (build_auth_menu): Dont translate camel strings.
        (mail_account_gui_setup): "

svn path=/trunk/; revision=13810
2001-10-19 22:26:26 +00:00
cb0ed21028 Fix the WM problems related to the folder selection dialog being
out-of-proc.  Now it can be set to be a transient window correctly,
and fakes its WindowGroup hint appropriately.

svn path=/trunk/; revision=13765
2001-10-18 19:58:22 +00:00
fcca68399e Added some more NULL checks.
2001-10-04  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Added some more NULL checks.

svn path=/trunk/; revision=13418
2001-10-04 19:45:02 +00:00
11c665c925 Use bonobo_ui_component_new_default()', not bonobo_ui_component_new()'.
* e-shell-view.c (e_shell_view_construct): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

* mail-account-gui.c (launch_signature_editor): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

* e-msg-composer.c (setup_ui): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

* gui/dialogs/comp-editor.c (setup_widgets): Use
`bonobo_ui_component_new_default()', not
`bonobo_ui_component_new()'.

svn path=/trunk/; revision=13306
2001-10-02 18:33:34 +00:00
df8634ddc8 Setup the url_hash and url_equal functions for the local provider.
2001-09-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-local.c (mail_local_provider_init): Setup the url_hash and
	url_equal functions for the local provider.

	* mail-account-gui.c (mail_account_gui_save): Add code here to
	check to make sure that the Drafts and Sent folders are pointing
	to valid urls. This is kinda nasty and only really solves the case
	where the user changes, say, his imap server or
	something. Unfortunately we still have the problem where if
	account A's sent/drafts folders point to account B's store and the
	user changes the url for account B.

	* mail-config.c (mail_config_get_account_by_source_url): Use Camel
	to compare the urls rather than using e_url_equal which does all
	sorts of funky shit that may not work in every case.

svn path=/trunk/; revision=13238
2001-09-28 22:38:53 +00:00
f21fc37e3c Only add the account if it doesn't already exist in the config db.
2001-09-20  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Only add the account
	if it doesn't already exist in the config db.

	* mail-config.c (mail_config_find_account): New convenience
	function.

svn path=/trunk/; revision=13039
2001-09-21 02:21:12 +00:00
24364797ef Do not add the account here as this is taken care of in
2001-09-20  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (wizard_finish_cb): Do not add the account
	here as this is taken care of in mail_account_gui_save() since it
	has to be able to set the default account.

	* mail-config.c (mail_config_set_default_account): Don't allow the
	index to become invalid.

	* mail-account-gui.c (mail_account_gui_save): Add the account
	before setting it as the default.

svn path=/trunk/; revision=13037
2001-09-21 00:58:28 +00:00
d79a40783c Set the sensitivity of the buttons correctly
svn path=/trunk/; revision=13029
2001-09-20 23:36:22 +00:00
44968e072f call menu_file_save_error when there is an exception while saving.
2001-09-11  Larry Ewing  <lewing@ximian.com>

	* mail-account-gui.c (menu_file_save_cb): call menu_file_save_error
	when there is an exception while saving.
	(menu_file_save_error): pop up a dialog telling the user the file
	has not been saved.

svn path=/trunk/; revision=12765
2001-09-11 06:02:43 +00:00
1bb96b143e Hide the S/MIME frame if we don't support S/MIME.
2001-09-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): Hide the S/MIME frame
	if we don't support S/MIME.

svn path=/trunk/; revision=12743
2001-09-10 20:08:15 +00:00
3aeaca9fa9 Don't save the authmech if the username doesn't exist. Fixes bug #9474.
2001-09-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (save_service): Don't save the authmech if
	the username doesn't exist. Fixes bug #9474.

svn path=/trunk/; revision=12735
2001-09-10 17:17:43 +00:00
4cf66ac5c7 Set the source and transport description labels. (transport_type_changed):
2001-08-27  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): Set the source and
	transport description labels.
	(transport_type_changed): Set the transport description label.
	(source_type_changed): Set the source description label.

	* mail-tools.c (mail_tool_make_message_attachment): Remove
	X-Evolution* headers.
	(mail_tool_remove_xevolution_headers): New function to convenience
	removing the X-Evolution headers.
	(mail_tool_restore_xevolution_headers): New convenience function
	to restore the X-Evolution headers.
	(mail_tool_destroy_xevolution): New function to cleanup the
	structure.
	(mail_tool_forward_message): Remove and restore the X-Evolution
	headers here too.

svn path=/trunk/; revision=12487
2001-08-27 19:28:05 +00:00
56b58a3b64 Eek, let the user create new accounts if old_account == NULL.
2001-08-23  Peter Williams  <peterw@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Eek, let the user create
	new accounts if old_account == NULL.

svn path=/trunk/; revision=12425
2001-08-23 21:42:45 +00:00
e84ebd2e0a Prevent the user from creating two accounts with the same name.
2001-08-22  Peter Williams  <peterw@ximian.com>

	Prevent the user from creating two accounts with the same name.

	* mail-config.c (impl_GNOME_Evolution_MailConfig_addAccount): Abort
	if the account has the same name as another account.

	* mail-account-gui.c (mail_account_gui_save): Don't let the user
	save if the account has the same name as another account.

	* mail-config-druid.c (management_check): Disable the next button
	if the account name is the same as a preexisting account.
	(construct): The only part of 'pages' that was being used was the
	name. 'wizard_pages' now has the callbacks, while 'pages' is just
	an array of char *'s.
	(wizard_finish_cb): Save the account first because that's the
	right way, and try to honor mail_account_gui_save's return value.

	* mail-config.glade: Add a label noting that you're not allowed
	to create two accounts with the same name.

svn path=/trunk/; revision=12384
2001-08-22 15:50:42 +00:00
ecda947f67 Fix the wording on some labels.
Stop hiding the source and transport pages.

svn path=/trunk/; revision=12324
2001-08-20 20:21:46 +00:00
4e60b7d947 Startup assistant stuff
svn path=/trunk/; revision=12145
2001-08-17 04:29:11 +00:00
e86531cbd1 Break most of the functionality into a separate function.
2001-08-13  Peter Williams  <peterw@ximian.com>

	* mail-send-recv.c (mail_autoreceive_setup): Break most of the
	functionality into a separate function.
	(autoreceive_setup_list): Rename of mail_autoreceive_setup that is
	passed a list of accounts.
	(mail_autoreceive_setup_account): New function. Set up a single
	account using autoreceive_setup_account.

	* mail-send-receive.h: Prototype mail_autoreceive_setup_account.

	* mail-account-gui.c (mail_account_gui_save): Instead of setting
	up all accounts, set up only this source with the new
	mail_autoreceive_setup_account.

	* mail-config-druid.c (druid_finish): ... which means we can call
	mail_config_add_account() after the MailConfigAccount has been
	created by mail_account_gui_save() because we no longer need the
	account to be in the list for mail_autoreceive_setup()

	* mail-config.c (mail_config_add_account): ... which means we can
	possibly add a shortcut to the account's sources's Inbox here.
	(maybe_add_shortcut): New function. If the store is a storage, add
	a shortcut to its inbox. Hope that /INBOX exists.
	(add_shortcut_entry): New function. Creates a shortcut if it doesn't
	yet exist.

2001-08-13  Peter Williams  <peterw@ximian.com>

	* mail-account-gui.c (service_complete): Take account of the fact that
	service->path may be NULL (if service is a transport.)

	* mail-config-druid.c (druid_finish): Bleah, bugfix in case the
	account has no source.

svn path=/trunk/; revision=11961
2001-08-13 21:23:04 +00:00
30a405f7dc Fix bug #4523 for good. (save_service): If service->authitem is NULL, then
2001-08-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (build_auth_menu): Fix bug #4523 for good.
	(save_service): If service->authitem is NULL, then the user tried
	to enable authentication but the provider doesn't actually support
	it.

svn path=/trunk/; revision=11905
2001-08-11 00:03:54 +00:00
bfa7f88ced Save the pgp and smime always-sign options.
2001-08-09  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Save the pgp and
	smime always-sign options.

	* mail-config.c (account_copy): Copy the always-sign options over
	too.

svn path=/trunk/; revision=11841
2001-08-09 19:24:06 +00:00
4baef8309f Try to restore the choice the user had chosen before hitting the "Check
2001-08-03  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (build_auth_menu): Try to restore the choice
	the user had chosen before hitting the "Check Supported Types"
	button.

	* mail-format.c (write_headers): Removed a no-longer-needed
	g_warning.

svn path=/trunk/; revision=11625
2001-08-03 21:37:00 +00:00
59abc01693 Restore old security settings from the saved configuration. Fixes bug
2001-07-30  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_new): Restore old security
	settings from the saved configuration. Fixes bug #5710.

svn path=/trunk/; revision=11479
2001-07-30 17:34:33 +00:00
32e9b0c202 Now takes a check_supported gboolean argument saying whether or not to
2001-07-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (build_auth_menu): Now takes a
	check_supported gboolean argument saying whether or not to disable
	non-supported authtypes.
	(source_type_changed): Update for build_auth_menu.
	(transport_type_changed): Same.
	(service_check_supported): Pass in TRUE for the disable
	non-supported authtypes to build_auth_menu and also disable
	check-supported button and the authtype menu if we get a NULL
	supported auth list.

svn path=/trunk/; revision=11404
2001-07-25 18:27:47 +00:00
7604a13073 Add new label widgets with a message that SSL isn't supported.
2001-07-24  Peter Williams  <peterw@ximian.com>

	* mail-config.glade: Add new label widgets with a message that SSL
	isn't supported.

	* mail-account-gui.h: Add a new member to the Transport GUI struct
	for the 'SSL is not supported' message.

	* mail-account-gui.c (source_type_changed): Change logic to display
	a message stating that SSL isn't supported if SSL isn't supported.
	(transport_type_changed): Same.
	(mail_account_gui_new): Also load the labels for the the no-SSL
	message.

	* mail-accounts.c (construct): Fix typo.

svn path=/trunk/; revision=11340
2001-07-24 15:33:17 +00:00
c87ef1f0a3 [Simplifying how default account is stored and used internally, fixes
2001-07-18  Jason Leach  <jleach@ximian.com>

	[Simplifying how default account is stored and used internally,
	fixes possabilities of having multiple default accounts and things
	like deleting the current default account]

	* mail-account-gui.c (mail_account_gui_new): Update for new way of
	finding out the default account.
	(mail_account_gui_save): Ditto.

	* mail-accounts.c (load_accounts): Ditto.

	* mail-config-druid.c (make_default_account): Ditto.

	* mail-config.c: Added an int MailConfig::default_account, to be
	used instead of a 'default_account' boolean on each mail account.
	(mail_config_set_default_account_num): New function, facilitates
	things.

	* Mail.idl: removed the Account::default_account boolean.

svn path=/trunk/; revision=11218
2001-07-19 01:25:09 +00:00
82e5cef219 Fix for last change: hide the entire widget, not just the entry.
2001-07-17  Jason Leach  <jleach@ximian.com>

	* mail-account-gui.c (source_type_changed): Fix for last change:
	hide the entire widget, not just the entry.

svn path=/trunk/; revision=11178
2001-07-17 21:25:59 +00:00
91c5bd9e64 Call mail_autoreceive_setup() so that any changes to the list of accounts
2001-07-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (mail_account_gui_save): Call
	mail_autoreceive_setup() so that any changes to the list of
	accounts will be respected the next time mail is checked.

svn path=/trunk/; revision=11127
2001-07-16 14:24:05 +00:00
4c0874912c fix typo so it compiles
2001-07-09  JP Rosevear  <jpr@ximian.com>

	* mail-account-gui.c (get_focused_widget): fix typo so it compiles

svn path=/trunk/; revision=10946
2001-07-10 03:07:18 +00:00
01b400424b Handle application/pgp using the text/plain handler.
2001-07-09  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (setup_mime_tables): Handle application/pgp using
	the text/plain handler.

	* mail-account-gui.c (get_focused_widget): New function to
	determine which widget is focused.

svn path=/trunk/; revision=10940
2001-07-09 23:56:52 +00:00
439bc7a3ec Handle application/pgp using the text/plain handler.
2001-07-09  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-format.c (setup_mime_tables): Handle application/pgp using
	the text/plain handler.

	* mail-account-gui.c (get_sensitive_widget): New function to determine
	which widget is focused.

	* mail-account-editor.c (apply_changes): Not only flip to the
	notebook page that wasn't finished, but also grab the focus of the
	incomplete widget.

	* mail-config-druid.c (source_changed): Grab the focus of the
	incomplete widget.
	(transport_prepare): And here.
	(identity_changed): Here too.

	* mail-account-gui.c (mail_account_gui_identity_complete): Take an
	incomplete argument so we can set which widget is incomplete and
	then the caller can focus it or whatever.
	(service_complete): Same.
	(mail_account_gui_transport_complete): And again here.
	(mail_account_gui_management_complete): And here too.

svn path=/trunk/; revision=10939
2001-07-09 23:55:02 +00:00
88996d839b Take two authtypes lists, "all", and "supported", and make the unsupported
* mail-account-gui.c (build_auth_menu): Take two authtypes lists,
	"all", and "supported", and make the unsupported authtypes grayed
	out in the menu rather than missing.
	(source_type_changed, transport_type_changed,
	service_check_supported): Update build_auth_menu calls.

svn path=/trunk/; revision=10600
2001-06-29 14:49:12 +00:00
a64e5726cd implemented plain saving
2001-06-29  Radek Doulik  <rodo@ximian.com>

	* mail-account-gui.c (menu_file_save_cb): implemented plain saving

2001-06-28  Radek Doulik  <rodo@ximian.com>

	* mail-account-gui.c (load_signature): implemented plain load
	(load_signature): use e_msg_composer_get_signature_html

svn path=/trunk/; revision=10580
2001-06-28 22:01:10 +00:00
22b7bde0f5 signature editor
svn path=/trunk/; revision=10578
2001-06-28 20:37:39 +00:00