aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-editor.c
Commit message (Collapse)AuthorAgeFilesLines
* Cleaned up #includes. Remove unneccesary includes of <gnome.h>,Kjartan Maraas2001-03-301-2/+9
| | | | | | | | | | | 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
* Fix this so the "Receiving Options" page gets filled in again.Dan Winship2001-03-301-1/+1
| | | | | | | * mail-account-editor.c (switch_page): Fix this so the "Receiving Options" page gets filled in again. svn path=/trunk/; revision=9022
* Lets do some NULL checking here. First, make sure the gsrc isn't NULL andJeffrey Stedfast2001-03-281-6/+4
| | | | | | | | | | | | | 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
* Probably the very last new config dialog ever. (Ha ha). From Anna, basedDan Winship2001-03-271-765/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Allow the authtype to be NULL. (transport_auth_init): If the providerJeffrey Stedfast2001-03-251-2/+22
| | | | | | | | | | | | | 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
* Use the new URL part macrosDan Winship2001-03-221-9/+9
| | | | | | | | | | | | * 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
* We don't care about SSL, yea baby... (apply_changes): Don't care aboutJeffrey Stedfast2001-03-161-11/+21
| | | | | | | | | | | | | | | | | | | | 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
* Move the signal emittion to after the set_menu call so that it actuallyJeffrey Stedfast2001-03-071-21/+78
| | | | | | | | | | | | | | | 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
* Don't access the `active` data member of a GtkToggleButton directly - badJeffrey Stedfast2001-03-061-7/+7
| | | | | | | | | | | | | | | | | | | | 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
* Fixed memory corruption bug.Jeffrey Stedfast2001-02-231-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Strip the leading "/" from the Namespace/Path entry if the providerJeffrey Stedfast2001-02-131-1/+32
| | | | | | | | | | 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
* Updated to checkfor "(none)".Jeffrey Stedfast2001-02-071-1/+21
| | | | | | | | | | | | | | | | | 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
* Updated to not connect when getting a list of authtypes. (transport_next):Jeffrey Stedfast2001-02-061-4/+4
| | | | | | | | | | | | | | | | | | | | | 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
* Use UTF-8. (set_defaults): Use UTF-8 and also fixed a memory leak byJeffrey Stedfast2001-01-291-10/+11
| | | | | | | | | | | | | | | | | | | 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
* Save the source and transport changes whether the user can connect to theJeffrey Stedfast2001-01-241-19/+10
| | | | | | | | | 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
* get rid of some gtk warnings.Jeffrey Stedfast2001-01-181-6/+10
| | | | | | ugh svn path=/trunk/; revision=7602
* Anna's dialog now supports SSL so we can get rid of the ssl-supportJeffrey Stedfast2001-01-181-18/+45
| | | | | | | | | | | | | | | | | 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
* Handle NULL source and, while we're at it, transport URLs. ApparentlyJeffrey Stedfast2001-01-181-4/+14
| | | | | | | | | | | | 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
* Oops. "url && url->host" doesn't do much without the '?' and ':' ;-)Jeffrey Stedfast2001-01-181-3/+1
| | | | | | | | | 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
* Modify to be able to handle a NULL source_url. (source_auth_init): AllowJeffrey Stedfast2001-01-171-65/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* If the preferred authmech isn't found, default to the first one in theJeffrey Stedfast2001-01-141-63/+68
| | | | | | | | | | | | 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
* Anna's dialogs.Jeffrey Stedfast2001-01-131-14/+37
| | | | | | | | | | | | | | | | | | | | 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
* Eek! Don't destroy the account if the connection fails, duh. This is whatJeffrey Stedfast2001-01-121-11/+5
| | | | | | | | | | 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
* Set the sensitivity of the Password label too.Jeffrey Stedfast2001-01-111-0/+3
| | | | | | | | | 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
* Clear the password entry if it's not allowed. (transport_type_changed):Jeffrey Stedfast2001-01-111-0/+1
| | | | | | | | | | | | | | | | | | | 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
* Moved to mail-config.gladeJeffrey Stedfast2001-01-101-1/+1
| | | | | | | | | | | | | | | | | | 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
* Gray out the appropriate labels too. (auth_type_changed): And here.Jeffrey Stedfast2001-01-101-15/+84
| | | | | | | | | | | | | | | 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
* For all optionmenu's, set the appropriate 'history'. (keep_mail_check):Jeffrey Stedfast2001-01-101-11/+65
| | | | | | | | | | | | | | | | | | | 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
* New function to set the password for a given url.Jeffrey Stedfast2001-01-101-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Brand spankin' new config druid, editor, and manager.Jeffrey Stedfast2001-01-091-10/+75
| | | | | | | | | | | | | | | | | | | | | 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
* A bunch of fixes.Jeffrey Stedfast2001-01-091-3/+5
| | | | | | | | | | | | | 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
* Updated to reflect changes to the mail-config API. (create_msg_composer):Jeffrey Stedfast2001-01-081-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Implemented. (ok_clicked): Implemented. (cancel_clicked): Implemented.Jeffrey Stedfast2001-01-071-14/+183
| | | | | | | | | | | | | | | | | | | | | | 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
* Coded a bunch of the methods.Jeffrey Stedfast2001-01-071-0/+290
| | | | | | | | 2001-01-06 Jeffrey Stedfast <fejj@helixcode.com> * mail-account-editor.c: Coded a bunch of the methods. svn path=/trunk/; revision=7287
* New source files to provide an account editor widget.Jeffrey Stedfast2001-01-061-0/+24
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