Commit Graph

57 Commits

Author SHA1 Message Date
fea6083abf Update for e_notice move (apply_changes): Pass a parent_window to e_notice
* mail-account-editor.c: Update for e_notice move
	(apply_changes): Pass a parent_window to e_notice

	* mail-account-gui.c: Update for e_notice move.
	(mail_account_gui_save): Pass a parent_window to e_notice

	* mail-callbacks.c: Update for e_notice move
	* mail-local.c: Likewise
	* mail-signature-editor.c: Likewise
	* mail-vfolder.c: Likewise

svn path=/trunk/; revision=20502
2003-03-25 15:49:19 +00:00
3fa465c9d7 Use gtk_window_set_resizable() instead of gtk_window_set_policy().
2003-02-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Use
	gtk_window_set_resizable() instead of gtk_window_set_policy().

	* mail-config.c: Fix a bunch of warnings.
	(mail_config_signature_write): Removed.

	* mail-callbacks.c: Removed unused variables.

svn path=/trunk/; revision=19885
2003-02-11 22:14:49 +00:00
e0053bce8e Updated. (request_password): Same.
2003-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-session.c (do_get_pass): Updated.
	(request_password): Same.

	* mail-send-recv.c (mail_send): Fixed to use EAccountService.

	* mail-config-druid.c (make_account): Updated to use EAccount and
	friends.

	* mail-account-gui.c (service_check_supported): Updated to use
	EAccountService.
	(mail_account_gui_new): Ref the account passed in and also update
	to use EAccount objects.
	(save_service): Updated to use an EAccountService.
	(add_new_store): Updated to use an EAccount.
	(mail_account_gui_save): Updated to use EAccounts.
	(setup_signatures): Updated because the new account->id->def_sig
	is now an int and not a structure pointer.

	* mail-account-editor.c (construct): Updated.
	(mail_account_editor_new): Now takes an EAccount object as an
	argument instead of a MailConfigAccount.

	* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
	use EAccounts.

	* subscribe-dialog.c (populate_store_foreach): Removed.
	(populate_store_list): Can't use populate_store_foreach here
	because of the change to EAccountList so do it manually.

	* mail-vfolder.c (uri_is_ignore): Rewrote to use EAccountList and
	EIterator and all that fun.

	* mail-send-recv.c (build_dialogue): Updated to use EAccountList
	and EAccount object stuff. *ugh*
	(mail_send_receive): Here too.
	(mail_autoreceive_setup): Same.

	* mail-callbacks.c (check_send_configuration): Updated.
	(composer_get_message): Updated.
	(compose_msg): "
	(list_add_addresses): "
	(guess_me): "
	(guess_me_from_accounts): Same.
	(forward_get_composer): Here too.
	(mail_generate_reply): Same.
	(redirect_get_composer): "
	(empty_trash): And finally here.

	* mail-accounts.c (account_edit_clicked): Updated.
	(account_delete_clicked): Same.
	(account_default_clicked): Here too.
	(account_able_clicked): "
	(account_cursor_change): "
	(mail_accounts_load): Again here.

	* folder-browser.c (folder_browser_is_drafts): Updated to use
	EAccountList and EAccount stuff.
	(folder_browser_is_sent): Same.

	* component-factory.c (mail_load_storages): Updated to use
	EAccount and EAccountList stuff.
	(owner_set_cb): Same.
	(send_receive_cb): Here too.

	* mail-config.c: Rewritten to use EAccount and EAccountList
	objects.

svn path=/trunk/; revision=19509
2003-01-17 23:31:27 +00:00
3a7ecedd60 Make dialog Cancel/OK to match HIG.
* message-tag-editor.c (message_tag_editor_init): Make dialog
Cancel/OK to match HIG.

* mail-signature-editor.c (do_exit): Make confirmation dialog
Discard/Cancel/Save to match the HIG.

* mail-composer-prefs.c (mail_composer_prefs_construct): Make
dialog Cancel/OK to match HIG.

* mail-account-editor.c (construct): Make the dialog
Apply/Close/OK to match HIG.

svn path=/trunk/; revision=19469
2003-01-14 22:45:32 +00:00
84c85d8eb7 fixed to build with -DG_DISABLE_DEPRECATED
svn path=/trunk/; revision=19209
2003-01-02 20:52:15 +00:00
df22fc1623 gnome_pixmap -> gtkimage. (construct): gtk_clist -> gtk_tree_view, setup
2002-11-27  Not Zed  <NotZed@Ximian.com>

        * message-tag-followup.c (construct): gnome_pixmap -> gtkimage.
        (construct): gtk_clist -> gtk_tree_view, setup columns.  They dont
        size well :-/
        (message_tag_followup_append_message): Append using model, remove
        clist stuff.
        (construct): Show date edit (glade bugs?)

        * folder-browser.c (folder_browser_class_init): gtk_marshal -> g_cclosure_marshal
        (setup_popup_icons): gnome_pixmap -> gtk_image.
        (on_right_click): gtk_pixmap -> gtk_image.

        * mail-accounts.c (account_delete_clicked): removed #if 0'd out code.

        * mail-send-recv.c (receive_done): remove FIXME and extra unref.

        * mail-session.c (request_password): Removed #if 0'd out stuff.

        * mail-vfolder.c (new_rule_clicked): proper cast for g_object_get_data.

        * mail-local.c (reconfigure_response): cast for g_object_get_data.

        * mail-account-editor.c (construct): GNOME_DIALOG -> GTK_DIALOG.

        * *.[ch]: re-ran fix.sh for e_notice change

        * mail-callbacks.c (save_msg_ok): g_object_get_data +
        gtk_object_remove_no_notify -> g_object_steal_data.
        (find_socket): gtk_container_children ->
        gtk_container_get_children
        (edit_msg): gnome_*_dialog -> gtk_message_dialog.
        (resent_msg): "
        (search_msg): "
        (confirm_goto_next_folder): gtkmessagedialogised (even if not
        used).
        (confirm_expunge): gtkmessagedialogised
        (filter_edit): "
        (do_mail_print): e_notice -> gtk_message_dialog.
        (are_you_sure): removed e_gnome_ok_cancel_dialog crap, replaced
        with a gtk dialog.
        (are_you_sure): gtkmessagedialogised.
        (edit_msg_internal): Dont free uids array, are_you_sure() free's
        it.
        (resend_msg): Same.
        (check_send_configuration): Use e_notice for stuff.  Sigh, here we
        go again ...!
        (e_question): A utility function to ask a question, potentially
        with 'dont ask again' as well.
        (configure_mail): use e_question to save code.  Here we go again,
        again ...
        (ask_confirm_for_unwanted_html_mail): "
        (ask_confirm_for_only_bcc): "
        (ask_confirm_for_only_bcc): "
        (composer_get_message): Use e_notice.
        (composer_save_draft_cb): Use e_question
        (edit_msg): use e_notice, & change to an ERROR.
        (resend_msg): same.
        (save_msg_ok): Properly initialise ret to OK, and use e_question,
        and use access() to determine existance/write access rather than
        stat, display an error if we can't write to a file that exists,
        and print the filename in all dialogues.
        (confirm_goto_next_folder): Use e_question.
        (confirm_expunge): use e_question.
        (filter_edit): Use e_notice.
        (do_mail_print): use e_notice.

svn path=/trunk/; revision=18974
2002-12-02 03:16:54 +00:00
989e199638 gtk_widget_set_parent_window -> gtk_window_set_transient_for.
2002-11-26  Not Zed  <NotZed@Ximian.com>

        * mail-account-editor.c (mail_account_editor_new):
        gtk_widget_set_parent_window -> gtk_window_set_transient_for.

        * mail-callbacks.c (composer_send_queued_cb): dont unref composer.

        * message-browser.c (message_browser_destroy): moved back from
        finalise.

2002-11-25  Not Zed  <NotZed@Ximian.com>

        * message-list.c (message_list_dispose): move saving tree state
        here.
        (message_list_finalise): And take it from here.

        * mail-display.c (mail_display_destroy): @#$@# gtk.  changed this
        around a bit.
        (mail_display_init): Fix prototype, its a gobject.
        (mail_display_init): ref/sink the invisible gtkobject.

svn path=/trunk/; revision=18919
2002-11-26 06:43:31 +00:00
9e4f25d532 Added to cvs. Currently contains no configurable stuff, but maybe it will
2002-11-13  Not Zed  <NotZed@Ximian.com>

        * GNOME_Evolution_Mail.server.in.in: Added to cvs.  Currently
        contains no configurable stuff, but maybe it will one day.

        * Makefile.am (server_DATA): change oaf stuff to server stuff for
        bonobo activation.

        * mail-preferences.c (mail_preferences_apply): handle const entry text.

        * mail-composer-prefs.c (url_requested): Fixed typo.
        (mail_composer_prefs_construct): gnomepixmap->gtkimage.

        * mail-callbacks.c (configure_mail): destroy dialogue before dealing
        with response.
        (mail_generate_reply): Fix a typo.
        (popup_listener_cb): fix prototype.
        (tag_editor_response): Handle gtk dialog response.
        (flag_for_followup): Change gnome dialog to gtk dialog stuff.
        (tag_editor_destroy_cb):
        (tag_editor_cancel):
        (tag_editor_ok): Removed, handled in _response().
        (filter_editor_response): renamed from _clicked, handle gtk
        dialogue signal.
        (filter_editor_destroy): Removed.
        (footer_info_new): gnome font api changes.
        (do_mail_print): port to gnome print 2.

        * mail-autofilter.c (mail_filter_delete_uri): message_dialog uses
        a specific button enum, not the stock ones.

        * mail-accounts.c (mail_accounts_tab_get_type): gobjectify.
        (account_delete_clicked): gdkdialogise.

        * mail-account-gui.c (mail_account_gui_setup): Hack around font
        metric determination code.

        * mail-account-editor.c (mail_account_editor_get_type):
        gobjectise.
        (mail_account_editor_new): ""

        * folder-info.c (evolution_folder_info_notify_ready): use pbclient
        interface.

        * folder-browser-factory.c (control_destroy_cb): fix a typo.
        (folder_browser_factory_new_control): More typos.

        * folder-browser.c (on_right_click): cast around const warning.
        (context_menu_position_func): fix for api change.

        * e-searching-tokenizer.c (e_searching_tokenizer_finalise):
        Changed from destroy since it only frees memory.
        (e_searching_tokenizer_get_type): glibify.

        * component-factory.c (request_quit): gtkdialogise.
        (send_receive_cb): "
        (create_component): gdk_pixbuf api.
        (component_factory_init): bonobo activation stuff.
        (warning_response): renamed from warning_clicked.
        (owner_set_cb): gtkdialogise.

svn path=/trunk/; revision=18731
2002-11-13 04:40:07 +00:00
ba61233a0c Ported.
2002-11-11  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c: Ported.

svn path=/trunk/; revision=18700
2002-11-11 18:53:56 +00:00
818312e892 Removed an unused variable.
2002-08-13  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-callbacks.c (forward_message): Removed an unused variable.

	* mail-account-editor.c (construct): Set the focus on the Account
	Name entry widget. Fixes bug #10350.

svn path=/trunk/; revision=17771
2002-08-13 20:10:28 +00:00
3bfd63acd3 Added #include "folder-info.h".
2002-05-14  Christopher James Lahey  <clahey@ximian.com>

	* component-factory.c: Added #include "folder-info.h".

	* folder-browser-window.c (folder_browser_window_new),
	mail-account-editor.c (apply_changes), mail-account-gui.c
	(mail_account_gui_save), message-tag-editor.c: Removed some unused
	variables.

	* folder-info.c: Added #include "folder-info.h".  Removed static
	declaration of evolution_folder_info_get_type.

	* folder-info.c (destroy), mail-callbacks.c
	(confirm_goto_next_folder, find_current_folder,
	find_next_folder_r, find_next_folder,
	do_evil_kludgy_goto_next_folder_hack), mail-composer-prefs.c
	(sig_name_changed): Commented out these unused functions.

	* mail-config.c (add_new_storage): Removed this unused function.

	* mail-local.c (mlf_init): Fix the declaration of this function to
	match the required signature.

svn path=/trunk/; revision=16788
2002-05-14 19:55:21 +00:00
3cdefcba37 Sync with yet-another-mail-config branch.
2002-03-26  Jeffrey Stedfast  <fejj@ximian.com>

	Sync with yet-another-mail-config branch.

	* mail-composer-prefs.c: Updated to get the right widgets and
	whatnot. Also updated to tell the evolution-config-control that
	stuff has changed.

	* mail-preferences.c: Updated to get the right widgets and
	whatnot. Also updated to tell the evolution-config-control that
	stuff has changed.

	* mail-accounts.etspec: New file needed by mail-accounts.c

svn path=/trunk/; revision=16257
2002-03-26 22:51:26 +00:00
a1bb1ba0fe merge new signature handling
svn path=/trunk/; revision=15960
2002-03-07 00:21:59 +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
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
4ca07463a0 More fixing of the license texts.
svn path=/trunk/; revision=14217
2001-10-27 18:21:05 +00:00
09a6132a1a tiny typo
svn path=/trunk/; revision=12371
2001-08-21 22:22:15 +00:00
fc88bebfb3 Honor the return value of mail_account_gui_save.
2001-08-21  Peter Williams  <peterw@ximian.com>

	* mail-account-editor.c (apply_changes): Honor the return value of
	mail_account_gui_save.

svn path=/trunk/; revision=12370
2001-08-21 22:18:04 +00:00
7aeeb5f282 Added key accelerators to a bunch of the config options and moved the Bcc
2001-08-06  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-config.glade: Added key accelerators to a bunch of the
	config options and moved the Bcc and empty-subject checkboxes to
	the composer tab where they belong.

	* mail-callbacks.c (providers_config): Raise the dialog if it
	exists already.
	(manage_subscriptions): Raise the dialog if it already exists.
	(main_select_first_unread): Removed (we haven't needed this code
	in ages).
	(select_first_unread): Same.
	(save_msg_ok): If the path is empty, just return.

	* mail-local.c (mail_local_reconfigure_folder): Raise the dialog
	if it already exists.

svn path=/trunk/; revision=11719
2001-08-07 01:11:48 +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
65a3be6b57 Allow user's to "copy" drag & drop rather than just "move".
2001-06-16  Jeffrey Stedfast  <fejj@ximian.com>

	* folder-browser.c (my_folder_browser_init): Allow user's to
	"copy" drag & drop rather than just "move".

svn path=/trunk/; revision=10258
2001-06-16 22:42:09 +00:00
271fc70bc3 Call build_extra_conf() here too. This is when we REALLY want to call it
2001-06-01  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-gui.c (source_type_changed): Call
	build_extra_conf() here too. This is when we REALLY want to call
	it anyway, not on switch-page because then we'd lose any data on
	the Receive Options page if we never switch to that page before
	applying the changes.

	* mail-account-editor.c (construct): Don't connect to the
	switch-page event, instead just call build_extra_conf() here with
	the source->url.

svn path=/trunk/; revision=10082
2001-06-01 18:32:53 +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
13af785f08 Fix this so the "Receiving Options" page gets filled in again.
* mail-account-editor.c (switch_page): Fix this so the "Receiving
	Options" page gets filled in again.

svn path=/trunk/; revision=9022
2001-03-29 19:32:40 +00:00
de1dd89f6c Lets do some NULL checking here. First, make sure the gsrc isn't NULL and
2001-03-27  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (switch_page): Lets do some NULL checking
	here. First, make sure the gsrc isn't NULL and also make sure that
	account->source isn't NULL either.

	* mail-account-gui.c (mail_account_gui_setup): If there isn't a
	source_proto, make sure we select "None" as the source type.

svn path=/trunk/; revision=8984
2001-03-27 22:41:01 +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
c63489710d Allow the authtype to be NULL. (transport_auth_init): If the provider
2001-03-25  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (transport_auth_type_changed): Allow the
	authtype to be NULL.
	(transport_auth_init): If the provider allows authtypes but
	doesn't *need* one, create a "None" menu item that the user can
	choose. This should fix the bug people have been seeing recently
	since dan removed the no_authtype authmech from the smtp provider.

svn path=/trunk/; revision=8926
2001-03-25 08:55:13 +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
b6a9c05207 We don't care about SSL, yea baby... (apply_changes): Don't care about
2001-03-15  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (apply_changes): We don't care about SSL,
	yea baby...
	(apply_changes): Don't care about SSL, no baby...
	(construct): Yea, I said we don't care 'bout SSL, baby
	(construct): That's exactly what I said, uh huh...
	(transport_auth_type_changed): Set the sensitivity of the
	user/passwd entries.
	(transport_type_changed): If the hostname hasn't been set yet,
	just use "localhost" as it doesn't really matter, since all we
	need is a valid URL object.

	* mail-config.c: We no longer need `use_ssl' for sources and
	transports.

svn path=/trunk/; revision=8741
2001-03-15 20:26:54 +00:00
53af5692df Move the signal emittion to after the set_menu call so that it actually
2001-03-07  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (source_auth_init): Move the signal
	emittion to after the set_menu call so that it actually works.
	(transport_type_changed): Updated to manipulate the user/passwd
	fields for the transport.
	(construct): Updated to init the user/passwd fields for the
	transport.
	(transport_auth_init): Renamed. Also fill in the user/passwd
	fields if available.

svn path=/trunk/; revision=8577
2001-03-07 05:07:32 +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
76bfed61ee Strip the leading "/" from the Namespace/Path entry if the provider
2001-02-12  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Strip the leading "/" from
	the Namespace/Path entry if the provider doesn't require absolute
	pathnames.

svn path=/trunk/; revision=8194
2001-02-13 00:03: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
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
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
d6599e25f2 Save the source and transport changes whether the user can connect to the
2001-01-23  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (apply_changes): Save the source and
	transport changes whether the user can connect to the host or not.

svn path=/trunk/; revision=7772
2001-01-24 02:11:58 +00:00
b8eb8fa0e6 get rid of some gtk warnings.
ugh

svn path=/trunk/; revision=7602
2001-01-17 22:49:31 +00:00
1a2b409d70 Anna's dialog now supports SSL so we can get rid of the ssl-support
2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Anna's dialog now supports
	SSL so we can get rid of the ssl-support checks. Also work around
	the fact that Anna's dialog doesn't have an optionmenu for the
	transport type, it's a label instead.
	(transport_type_init): Cast the transport_type widget to a
	GtkOptionMenu where appropriate as the widget that stores it is
	now generic.
	(apply_changes): Modify code to work with anna's dialog...*sigh*
	(ok_clicked): Alert the user that one or more servers failed to
	validate and allow him to continue anyway.

svn path=/trunk/; revision=7601
2001-01-17 22:38:15 +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
3717076b78 Oops. "url && url->host" doesn't do much without the '?' and ':' ;-)
2001-01-17  Jeffrey Stedfast  <fejj@ximian.com>

	* mail-account-editor.c (construct): Oops. "url && url->host"
	doesn't do much without the '?' and ':' ;-)

svn path=/trunk/; revision=7586
2001-01-17 17:49:17 +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
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