Commit Graph

68 Commits

Author SHA1 Message Date
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
0
f53a0de05a Comment out the Folder: and you've got mail prints.
2001-10-30    <NotZed@Ximian.com>

        * folder-info.c: Comment out the Folder: and you've got mail
        prints.

        * mail-config-druid.c (wizard_next_cb): If we have a next
        function, honour if it tells us its going to set the page, and
        dont set it, otherwise, set it to the next page, unless we're at
        the end of our pages, and let the wizard do it itself.
        (wizard_back_cb): Same for going back.  Rest of fix for #12127,
        see e-shell-startup-wizard for the rest.
        (next_func): If we're not on the last page, tell the druid we're
        gonna handle the next button, so we can sync properly with it,
        needed for above changes.
        (back_func): Similarly for going back past page 0.
        (wizard_listener_event): We want to set the page to the actual one
        asked for not, pagenum-1.

svn path=/trunk/; revision=14449
2001-10-30 11:10:48 +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
beaba25d50 Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyed
* mail-callbacks.c (e_gnome_dialog_set_parent): Use
	gtk_signal_connect_while_alive here so
	e_gnome_dialog_parent_destroyed doesn't get called on an
	already-destroyed dialog.

	* mail-config-druid.c (*_prepare): Record which page we're
	currently in.
	(*_changed): Only update the druid buttons if we're the current
	page. Fixes a problem that could make it impossible to get beyond
	the first page of the setup wizard.

svn path=/trunk/; revision=13522
2001-10-09 18:04:13 +00:00
f41afabb33 Check for errors
svn path=/trunk/; revision=13292
2001-10-01 23:43:29 +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
f431da35f7 Don't use new_with_sig_file, that function no longer exists.
2001-09-10  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (mail_generate_reply): Don't use
	new_with_sig_file, that function no longer exists.
	(forward_get_composer): Same here.

svn path=/trunk/; revision=12754
2001-09-10 23:52:14 +00:00
f5fec6d071 We need to initialize all of the struct fields or else god knows what will
2001-09-09  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (evolution_mail_config_wizard_factory_fn):
	We need to initialize all of the struct fields or else god knows
	what will happen later when we try to use 'em. Also set a destroy
	function for the MailConfigWizard so we don't leak it.

svn path=/trunk/; revision=12719
2001-09-09 23:32:31 +00:00
a6d46c33f3 Destroy lists and hashes when needed, so that old data isn't left behind.
svn path=/trunk/; revision=12488
2001-08-27 20:19:49 +00:00
2fba11c88f Instead of using the length of the shortcuts list as the index for the
2001-08-24  Peter Williams  <peterw@ximian.com>

	* mail-config.c (add_shortcut_entry): Instead of using the length
	of the shortcuts list as the index for the shortcut, use -1, which
	means "last".

	* mail-config-druid.c (druid_finish): Remove the account adding
	stuff since that happens in wizard_finish now.

	* mail-config.c (add_new_storage): New function. Add a
	MailConfigAccount to the shell as a storage.
	(maybe_add_shortcut): Renamed to new_source_created.
	(new_source_created): Call add_new_storage here.

	* component-factory.c (mail_remove_storage_by_uri): Don't warn
	if the storage isn't remote... no point in making the caller
	do extra work.

svn path=/trunk/; revision=12445
2001-08-24 19:01:59 +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
688a8ead7b remove dead structure
2001-08-17  JP Rosevear  <jpr@ximian.com>

	* mail-config-druid.c: remove dead structure

svn path=/trunk/; revision=12159
2001-08-17 17:42:01 +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
a5facd0e78 Changed all instances of "Wizard" and "Druid" to "Assistant".
2001-08-13  Anna Marie Dirks <anna@ximian.com>
	* mail-config.glade: Changed all instances of "Wizard" and "Druid"
	to "Assistant".

	* mail-config-druid.c: Ditto.

svn path=/trunk/; revision=11960
2001-08-13 21:02:59 +00:00
5481c4465b Whoa, fatal typo. Sorry.
2001-08-10  Peter Williams  <peterw@ximian.com>

	* mail-config-druid.c (druid_finish): Whoa, fatal typo. Sorry.

svn path=/trunk/; revision=11945
2001-08-13 18:12:24 +00:00
5ffaca0f8d Don't load the storage if it isn't enabled. (mail_remove_storage_by_uri):
2001-08-08  Peter Williams  <peterw@ximian.com>

	* component-factory.c (mail_load_storages): Don't load the storage
	if it isn't enabled.
	(mail_remove_storage_by_uri): New function. Goes through the
	gymnastics of getting a CamelStore from the URI and calling
	mail_remove_storage. Copied from mail_delete().
	(mail_load_storage_by_uri): Break out the storage-loading part of
	mail_load_storages into a single function.
	(mail_load_storages): Just call mail_load_storage_by_uri several
	times.

	* mail.h: Prototype our new _by_uri functions.

	* mail-accounts.c (news_add_destroyed): Instead of hacking around
	mail_load_storages, call mail_load_storage_by_uri.
	(mail_delete): Move this chunk of code into
	mail_remove_storage_by_uri.
	(mail_able): Add or remove the storage as necessary, with our
	new _by_uri functions.

	* mail-config-druid.c (druid_finish): See news_add_destroyed above.

svn path=/trunk/; revision=11881
2001-08-10 17:28:52 +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
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
a1bed32eb6 Take another argument to ignore a certain address. (mail_generate_reply):
2001-05-29  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (list_add_addresses): Take another argument to
	ignore a certain address.
	(mail_generate_reply): Ignore references to the reply-to address
	when constructing the Cc list.

svn path=/trunk/; revision=10046
2001-05-29 21:12:28 +00:00
c4a26fef3d Convert the result of g_get_real_name() from the locale charset to UTF8.
* mail-config-druid.c (make_default_account): Convert the result
	of g_get_real_name() from the locale charset to UTF8. Noted by
	Petter Sundlöf (NOT "Petter Sundl_" :)

svn path=/trunk/; revision=9481
2001-04-20 23:05:36 +00:00
7296e1c664 set content type to utf8. fix warning. just call on_link_clicked().
2001-04-04  Gediminas Paulauskas <menesis@delfi.lt>

	* mail-config-druid.c (create_html): set content type to utf8.
	* mail-config.c (mail_config_check_service): fix warning.
	* mail-display.c (link_open_in_browser): just call on_link_clicked().
	(link_menu): Open link works.
	(link_copy_location): claim selection.
	(on_selection_get): new function, selection handler.
	(mail_display_new): connect to selection_get. FIXME: does not work.

2001-04-04  Gediminas Paulauskas <menesis@delfi.lt>

	* importer/importer.c (create_html): copied newer and fixed function
	from mail/mail-config-druid.c.
	(html_new, put_html): removed.
	(show_import_wizard): use create_html instead of html_new/put_html pair.
	* importer/importer.glade: a try to set logo. removed source generation
	options.

svn path=/trunk/; revision=9161
2001-04-04 02:14:11 +00:00
57574f0be3 Cleaned up #includes. Remove unneccesary includes of <gnome.h>,
2001-03-29  Kjartan Maraas  <kmaraas@gnome.org>

	* *.*: Cleaned up #includes. Remove unneccesary includes of
	<gnome.h>, <gtk/gtk.h>, <bonobo.h> and replaced with more
	fine grained headers where needed. Also marked a bunch of
	strings for translations and added some missing prototypes.

svn path=/trunk/; revision=9025
2001-03-29 20:53:17 +00:00
5bc0caf53b set the initial druid button state after doing the mail_account_gui_setup,
* mail-config-druid.c (construct): set the initial druid button
	state after doing the mail_account_gui_setup, since that may
	invoke signal handlers that will change it.

svn path=/trunk/; revision=8980
2001-03-27 17:03:48 +00:00
6dd8aabeee Probably the very last new config dialog ever. (Ha ha). From Anna, based
* mail-config.glade: Probably the very last new config dialog
	ever. (Ha ha). From Anna, based on a story by me.

	* mail-account-gui.c: New code for the new mail-config.glade. This
	abstracts out all of the common code between the account editor
	and the druid. It also handles the spiffy new provider-specific
	config stuff.

	FIXME: The code to check if a service is ok or not is no longer
	there... waiting until the online/offline stuff from the shell
	appears.

	* mail-account-editor.c, mail-config-druid.c: These are much
	smaller now, since most of the interesting bits moved to
	mail-account-gui.c

	* mail-accounts.c: Add an enabled/disabled column/button to
	replace the checkbox that used to be in the editor, because it
	really makes more sense to have it out here. This looks ugly.
	Probably ought to ETable it...
	(load_accounts): Fill in the enabled column.
	(mail_select, mail_unselect): toggle the sensitivity and name of
	the Enable/Disable button appropriately
	(mail_able): Handle the enable/disable button.

	* mail-config.c: Remove reply-to from MailConfigIdentity since it
	didn't belong there (and wasn't being saved anyway).
	(mail_config_check_service): Simplify this a bit. This really
	needs to pop up a dialog with a "connecting..." message and a
	cancel button.

svn path=/trunk/; revision=8971
2001-03-27 05:23:27 +00:00
88bfa9d863 Use the new URL part macros
* mail-config-druid.c (incoming_check, incoming_type_changed,
	transport_check, transport_type_changed):
	* mail-account-editor.c (transport_type_changed, source_check):
	Use the new URL part macros

	* mail-config.c (check_service_check): Use provider authtype list
	if not connecting.

svn path=/trunk/; revision=8873
2001-03-21 22:20:56 +00:00
a5f1eab950 Updated to have a transport auth page.
2001-03-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c: Updated to have a transport auth page.

svn path=/trunk/; revision=8574
2001-03-07 01:50:55 +00:00
944083d8b9 Don't access the active data member of a GtkToggleButton directly - bad
2001-03-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c: Don't access the `active` data member of a
	GtkToggleButton directly - bad programming, shame on me.

	* mail-account-editor.c: Same here.

	* mail-accounts.c: And here too.

	* mail-callbacks.c (empty_subject_destroyed): And finally here.

	* mail-crypto.c (pgp_mime_part_sign): Correcty set the mime type
	for the multipart. Hmmm, still doesn't wrap correctly. NotZed?
	Ideas?
	(pgp_mime_part_encrypt): Here too.

svn path=/trunk/; revision=8560
2001-03-05 18:25:51 +00:00
e939da9df4 Fixed memory corruption bug.
2001-02-22  Jeffrey Stedfast  <fejj@ximian.com>

	* openpgp-utils.c (openpgp_verify): Fixed memory corruption bug.

	* mail-format.c (try_inline_pgp_sig): Check to make sure the
	validity isn't NULL.
	(handle_multipart_signed): Check for NULL validities.

2001-02-21  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-tools.c (mail_tool_uri_to_folder): Protect against NULL
	uri's.

	* mail-vtrash.c: Do mutex locking on the global hash table - this
	should clear up some segfaults ;-)

	* mail-config-druid.c (druid_finish): Set the 'enabled' member of
	the source to TRUE if the URL exists else set to FALSE.
	(incoming_type_changed): If the provider chosen is "None" then
	gray-out the auto-check widgets and the check-settings, otherwise
	sensitize them.

	* mail-account-editor.c (construct): Added a few more settings.
	(apply_changes): Save the new settings.

	* mail-config.c (service_copy): Updated.
	(config_read): Read in whether or not the account is enabled.
	(mail_config_write): Save if the account is enabled or not.

svn path=/trunk/; revision=8349
2001-02-22 21:40:26 +00:00
11c5b60d8c Set the sensitivity of the spin button based on the state of the checkbox.
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (construct): Set the sensitivity of the spin
	button based on the state of the checkbox.

svn path=/trunk/; revision=8130
2001-02-09 00:12:52 +00:00
18df0dfdf2 Cast the CamelMedium to a CamelMimePart before performing actions on it as
2001-02-08  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-display.c (on_object_requested): Cast the CamelMedium to a
	CamelMimePart before performing actions on it as if it were a
	CamelMimePart.

	* mail-config-druid.c (druid_finish): Save the auto-check settings.
	(construct): Initialize auto-check widgets.
	(mail_config_druid_get_auto_check): New function
	(mail_config_druid_get_auto_check_minutes): New functions

	* mail-config.c (config_read): Read in whether or not to check
	every x minutes.
	(mail_config_write): Save auto-check config data and SSL.

svn path=/trunk/; revision=8126
2001-02-08 22:57:34 +00:00
c789892dc1 Updated to checkfor "(none)".
2001-02-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (set_defaults): Updated to checkfor
	"(none)".

	* mail-account-editor.c (entry_changed): Make sure the email
	address is valid.

	* mail-config-druid.c (identity_check): Check to make sure we have
	a valid email address.
	(is_email): New function to check a string to see if it's a valid
	email address.

svn path=/trunk/; revision=8034
2001-02-06 23:15:06 +00:00
f5ab714264 Keep track of the CheckSettings check boxes. (transport_next): Connect if
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (construct): Keep track of the CheckSettings
	check boxes.
	(transport_next): Connect if the user says so.
	(incoming_next): Same. Also, don't jump to the next page if
	test-settings fails.

svn path=/trunk/; revision=7984
2001-02-05 21:06:54 +00:00
7301749d71 Updated to not connect when getting a list of authtypes. (transport_next):
2001-02-05  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (incoming_next): Updated to not connect when
	getting a list of authtypes.
	(transport_next): No longer connects - again, this is
	useless. Read the apply_changes argument for the reason why.

	* mail-account-editor.c (apply_changes): Updated. Set the
	'connect' argument to FALSE for now, this basically means that the
	call is worthless tho so it may be best to either get rid of the
	checks altogether or else make it connect.
	(source_auth_init): Don't connect here, it's just plain annoying.
	(transport_construct_authmenu): Same here.

	* mail-config.c (mail_config_check_service): Now takes a connect
	argument.

svn path=/trunk/; revision=7981
2001-02-05 20:13:59 +00:00
6fd48a6f47 Turns out that I was wrong about the g_get_real_name mem leak, god damn
2001-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (set_defaults): Turns out that I was wrong
	about the g_get_real_name mem leak, god damn glib for not
	following the const char* standard.

svn path=/trunk/; revision=7882
2001-01-29 00:46:18 +00:00
8e1a4026c9 Use UTF-8. (set_defaults): Use UTF-8 and also fixed a memory leak by
2001-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (management_prepare): Use UTF-8.
	(set_defaults): Use UTF-8 and also fixed a memory leak by freeing
	the string returned by g_get_real_name().
	(mail_config_druid_get_account_name): Use UTF-8.
	(mail_config_druid_get_full_name): Same.
	(mail_config_druid_get_email_address): Same.
	(mail_config_druid_get_organization): Same.

	* mail-account-editor.c (apply_changes): Save UTF-8 strings rather
	than gtk strings.
	(construct): Use the UTF-8 convenience functions to set the gtk
	entries for the ID fields.

svn path=/trunk/; revision=7881
2001-01-29 00:18:43 +00:00
096f54cfa0 Automagically fill in the user's default transport if he/she has setup
2001-01-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (set_defaults): Automagically fill in the
	user's default transport if he/she has setup previous accounts.

svn path=/trunk/; revision=7736
2001-01-23 02:47:57 +00:00
48d74a5f32 Oops, danw didn't know 'provider' could be NULL :-)
2001-01-22  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (incoming_type_changed): Oops, danw didn't
	know 'provider' could be NULL :-)

svn path=/trunk/; revision=7721
2001-01-22 21:28:24 +00:00
7798009ab7 Change "Path:" label to "Namespace:" for IMAP. Use $MAILDIR rather than
* mail-config-druid.c (incoming_type_changed): Change "Path:"
	label to "Namespace:" for IMAP. Use $MAILDIR rather than $MAIL for
	Maildir. If $MAIL isn't set, guess.

svn path=/trunk/; revision=7714
2001-01-22 19:34:25 +00:00
99a779567b Handle NULL source and, while we're at it, transport URLs. Apparently
2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Handle NULL source and, while
	we're at it, transport URLs. Apparently camel_url_new() and/or
	camel-url_free() don't handle NULL input well.

	* mail-accounts.c (load_accounts): Handle NULL source URLs.

svn path=/trunk/; revision=7595
2001-01-17 20:11:36 +00:00
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
391b625992 Fixed mail_load_storages to make a mini GSList of the account, not the
2001-01-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (druid_finish): Fixed mail_load_storages to
	make a mini GSList of the account, not the account->source. Oops.

	* mail-accounts.c (news_delete): Updated to use the remove_news()
	function.

	* mail-config.c (mail_config_remove_news): New convenience
	function for removing news accounts.
	(mail_config_remove_account): Pretty much the same thing.

	* mail-ops.c (do_send_queue): Get the X-Evolution-Transport URL
	and use that if it exists, else fall back on the default
	transport.

	* mail-callbacks.c (composer_postpone_cb): Set an
	X-Evolution-Transport header.

svn path=/trunk/; revision=7477
2001-01-13 07:27:01 +00:00
911b397808 Now takes a 'is_account_data' variable to specify whether the sources is a
2001-01-12  Jeffrey Stedfast  <fejj@ximian.com>

	* component-factory.c (mail_load_storages): Now takes a
	'is_account_data' variable to specify whether the sources is a
	list of accounts of a list of services. Basically, the only time
	you should pass in FALSE is when you are setting up NNTP storages.
	(add_storage): Now takes a 'name' argument that specifies the name
	to use in the storage.
	(owner_set_cb): Updated to pass TRUE for accounts and FALSE for
	news servers into mail_load_storages.

svn path=/trunk/; revision=7469
2001-01-13 04:23:02 +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
5307a77df1 We don't want to be able to set the reply-to in the config druid.
2001-01-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config-druid.c (construct): We don't want to be able to set
	the reply-to in the config druid.
	(druid_finish): Don't set a reply-to anymore.
	(mail_config_druid_finalise): Don't unref the providers.

	* mail-config.glade: Took out the Reply-To field in the druid.

svn path=/trunk/; revision=7431
2001-01-12 05:07:00 +00:00
b3cda1c4fa Guess the default MAIL value for MBOX and Maildir files.
2001-01-11  Miguel de Icaza  <miguel@gnu.org>

	* mail-config-druid.c (incoming_type_changed): Guess the default
	MAIL value for MBOX and Maildir files.

svn path=/trunk/; revision=7430
2001-01-12 04:45:01 +00:00
7a46e7a66e If the service_check fails, pop-up a warning dialog letting the user know
2001-01-11  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config-druid.c (transport_next): If the service_check
	fails, pop-up a warning dialog letting the user know he or she may
	have problems and then let them continue on with their lives.
	(incoming_next): Same (+ jump them over the auth page to the
	transport page).

svn path=/trunk/; revision=7428
2001-01-12 04:11:51 +00:00
28cb7707de New callback to handle when the user hits the "back" button when on the
2001-01-10  Jeffrey Stedfast  <fejj@helixcode.com>

	* mail-config-druid.c (transport_back): New callback to handle
	when the user hits the "back" button when on the transport
	page. This is needed to handle the case where we don't want to
	show the user the auth page (due to there being no auth choices).
	(incoming_next): If we are going to skip over the auth page, set
	the 'have_auth_page' variable to FALSE.
	(construct): Initialize the have_auth_page to TRUE.

svn path=/trunk/; revision=7375
2001-01-10 22:46:16 +00:00