aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
Commit message (Collapse)AuthorAgeFilesLines
* Only clear the text/html signature menus if they are non-NULL.Jeffrey Stedfast2002-05-221-0/+4
| | | | | | | | | 2002-05-21 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (sig_fill_options): Only clear the text/html signature menus if they are non-NULL. svn path=/trunk/; revision=16973
* Only clear the text/html signature menus if they are non-NULL.Jeffrey Stedfast2002-05-221-2/+6
| | | | | | | | | 2002-05-21 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (sig_fill_options): Only clear the text/html signature menus if they are non-NULL. svn path=/trunk/; revision=16972
* Added #include "folder-info.h".Christopher James Lahey2002-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Make sure that even if the new source url is NULL, that we preserve theJeffrey Stedfast2002-05-101-3/+4
| | | | | | | | | | 2002-05-09 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Make sure that even if the new source url is NULL, that we preserve the enabledness of the source. svn path=/trunk/; revision=16737
* Update the code to actually work. (sig_new_html): Same.Jeffrey Stedfast2002-05-021-6/+3
| | | | | | | | | | | | | 2002-05-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (sig_new_text): Update the code to actually work. (sig_new_html): Same. * mail-composer-prefs.c (mail_composer_prefs_new_signature): Allow 'prefs' to be NULL. svn path=/trunk/; revision=16659
* Strip leading/trailing whitespace from the username because usersJeffrey Stedfast2002-04-301-12/+26
| | | | | | | | | | | | | | 2002-04-29 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (save_service): Strip leading/trailing whitespace from the username because users sometimes accidently add extra spaces here and there. Fixes bug #24009 (along with a number of other "bugs"). (mail_account_gui_auto_detect_extra_conf): Use a CamelURL instead of a GHashTable *settings. Also parse out the port # from the hostname. svn path=/trunk/; revision=16633
* Strip leading/trailing whitespace from the username because usersJeffrey Stedfast2002-04-301-1/+1
| | | | | | | | | | | 2002-04-29 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (save_service): Strip leading/trailing whitespace from the username because users sometimes accidently add extra spaces here and there. Fixes bug #24009 (along with a number of other "bugs"). svn path=/trunk/; revision=16632
* After building the extra config options into a Gtk form, auto-detect anyJeffrey Stedfast2002-04-271-6/+110
| | | | | | | | | | | | | | 2002-04-26 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (extra_prepare): After building the extra config options into a Gtk form, auto-detect any values that we can and populate them by calling mail_account_gui_auto_detect_extra_conf. * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf): New function to auto-detect the extra config options for a source. svn path=/trunk/; revision=16598
* Allow providers to override text entry boxes too. (source_type_changed):Jeffrey Stedfast2002-04-251-31/+50
| | | | | | | | | | | 2002-04-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_build_extra_conf): Allow providers to override text entry boxes too. (source_type_changed): Remove the logic to decide upon default paths, these paths can now be set by the provider. svn path=/trunk/; revision=16581
* Set the default Username label and handle the newJeffrey Stedfast2002-04-251-6/+21
| | | | | | | | | | | 2002-04-24 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_build_extra_conf): Set the default Username label and handle the new CAMEL_PROVIDER_CONF_LABEL enum allowing the provider to setup a label. svn path=/trunk/; revision=16576
* Set the text of the reply-to. (mail_account_gui_save): Get the reply-toJeffrey Stedfast2002-04-121-0/+17
| | | | | | | | | | | | | | | | | | 2002-04-12 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Set the text of the reply-to. (mail_account_gui_save): Get the reply-to text here. (mail_account_gui_identity_complete): If there is text in the reply-to widget make sure it's valid. * mail-config.c (identity_copy): Copy the reply-to. (config_read): Read in the reply-to for all the accounts. (mail_config_write): Save the reply-to. (impl_GNOME_Evolution_MailConfig_addAccount): Get the reply-to. (identity_destroy): Free the reply-to. svn path=/trunk/; revision=16446
* removed an extra printfJeffrey Stedfast2002-04-101-1/+0
| | | | svn path=/trunk/; revision=16418
* Kludge around the brokeness that is GtkOptionMenu just like we kludgeJeffrey Stedfast2002-04-101-76/+81
| | | | | | | | | | 2002-04-09 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (setup_service): Kludge around the brokeness that is GtkOptionMenu just like we kludge around it for the authtype option menu. svn path=/trunk/; revision=16417
* Re-added the config wizard interfaces. Ettore accidently removed themJeffrey Stedfast2002-04-091-3/+3
| | | | | | | | | | | | | | | | 2002-04-08 Jeffrey Stedfast <fejj@ximian.com> * GNOME_Evolution_Mail.oaf.in: Re-added the config wizard interfaces. Ettore accidently removed them thinking they were duplicates of the new mail-config interfaces. * mail-config.glade: Remove the OK, Apply, Cancel buttons from the keyboard shortcut tab in the composer_prefs dialog. * mail-account-gui.c: No need to check gui->source before using gui->source->url, since gui->source *has* to exist. svn path=/trunk/; revision=16391
* Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons.Dan Winship2002-04-051-85/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c (mail_account_gui_new): Make the drafts and sent folder buttons be EvolutionFolderSelectorButtons. Remove the code to deal with drafts_folder_name and sent_folder_name, since they were only used to construct the button and aren't needed now. (mail_account_gui_save): Remove drafts/sent name references. (mail_account_gui_destroy): Likewise (folder_selected): Handle the "selected" signal on the folder selector button by updating the URI in the MailAccountGui. (mail_account_gui_folder_selector_button_new): Glade custom widget constructor. * mail-callbacks.c (transfer_msg): Update for evolution_shell_client_user_select_folder change. * message-browser.c (transfer_msg): Likewise. (Sigh. Why is this cut+pasted?) * mail-config.glade: Make the drafts/sent folder buttons custom widgets. * mail-config.c (account_copy): Remove drafts/sent folder name handling. (account_destroy): Likewise. (config_read): Likewise. (mail_config_write): Likewise. * Mail.idl (MailConfig:Account): remove drafts_folder_name and sent_folder_name. svn path=/trunk/; revision=16353
* Changes to allow combined store/transport providers (like exchange andDan Winship2002-04-041-14/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c: Changes to allow combined store/transport providers (like exchange and nntp). You can only select the transport if the account is also using that provider for the source. (source_type_changed): If changing away from a combined store/transport type, disable that provider on the transport page. If change to a combined store/transport type, enable and select that provider on the transport page. (mail_account_gui_setup): Do some additional bookkeeping here to make the above stuff work. (transport_type_changed): If the provider is a combined store/transport type, pretend it doesn't need any additional URL configuration. (mail_account_gui_transport_complete): if the transport provider is also a store provider, then as long as it matches the source for the account, it's considered complete. (mail_account_gui_save): If the selected transport is a combined store/transport provider, use the source page's information to fill in the transport url. * mail-local.c (mail_local_provider_init): Don't set up service_cache. svn path=/trunk/; revision=16331
* Re-Implemented the signature editor stuff (mostly just copy/paste fromJeffrey Stedfast2002-04-021-4/+4
| | | | | | | | | | | | | 2002-04-01 Jeffrey Stedfast <fejj@ximian.com> * mail-composer-prefs.c (mail_composer_prefs_construct): Re-Implemented the signature editor stuff (mostly just copy/paste from Radeks original code). * mail-signature-editor.c (mail_signature_editor): Use the right oafiid for the html editor control. svn path=/trunk/; revision=16316
* Sync with yet-another-mail-config branch.Jeffrey Stedfast2002-03-271-1/+5
| | | | | | | | | | | | | | | | | | 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
* make edit button sensitive after new signature is created (sig_new_text):Radek Doulik2002-03-081-0/+2
| | | | | | | | | | 2002-03-07 Radek Doulik <rodo@ximian.com> * mail-account-gui.c (sig_new_html): make edit button sensitive after new signature is created (sig_new_text): ditto svn path=/trunk/; revision=15984
* notify accounts dialog about signature content changeRadek Doulik2002-03-081-2/+2
| | | | | | | | | | | | 2002-03-07 Radek Doulik <rodo@ximian.com> * mail-signature-editor.c: notify accounts dialog about signature content change * mail-accounts.c (run_script): run script only if file regular file exists and has x flag svn path=/trunk/; revision=15979
* merge new signature handlingRadek Doulik2002-03-071-289/+334
| | | | svn path=/trunk/; revision=15960
* "use_ssl" can now be 3 options, modify the code to handle this.Jeffrey Stedfast2002-03-061-16/+80
| | | | | | | | | | | | 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
* Ack, strip off the leading '/' char and also only translate if it is aJeffrey Stedfast2002-02-161-1/+1
| | | | | | | | | | | 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
* Ack, strip off the leading '/' char and also only translate if it is aJeffrey Stedfast2002-02-161-1/+4
| | | | | | | | | | | 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
* Ack, strip off the leading '/' char.Jeffrey Stedfast2002-02-161-1/+1
| | | | | | | | | 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
* Replacement for using g_basename and also translates the basename stringJeffrey Stedfast2002-02-151-3/+15
| | | | | | | | | | | | 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
* Rearranged the #if checks so that we don't ever try to access any smimeJeffrey Stedfast2002-02-071-3/+7
| | | | | | | | | | | 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
* Destroy the S/MIME frame if not available, instead of just graying it out.Ettore Perazzoli2002-02-031-1/+1
| | | | | | | | | * 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
* Pass the parent window to mail_account_editor_new().Jeffrey Stedfast2002-01-311-2/+2
| | | | | | | | | | | | | | | | | 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
* We need to return a value here. I think FALSE is fine (I hope).Jeffrey Stedfast2002-01-261-0/+2
| | | | | | | | | 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
* Don't bother trying to see if the domain looks like a FQDN.Jeffrey Stedfast2002-01-251-7/+4
| | | | | | | | | 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
* When connecting to the transport username changed event, pass theJeffrey Stedfast2002-01-091-1/+1
| | | | | | | | | | 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
* Add the auto-cc/bcc recipients here. The problem with setting them in theJeffrey Stedfast2001-12-201-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* If the provider is NULL, don't do anything.Jeffrey Stedfast2001-12-201-1/+1
| | | | | | | | | | | | | | 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
* Don't make the account editor modal either.Jeffrey Stedfast2001-11-061-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* add delete_event_handler. (menu_file_save_close_cb): add save and closeLarry Ewing2001-10-311-5/+27
| | | | | | | | | | | 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
* Call mail_autoreceive_setup() instead of mail_autoreceive_setup_account()Jeffrey Stedfast2001-10-291-1/+1
| | | | | | | | | | | | | 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
* More fixing of the license texts.Ettore Perazzoli2001-10-281-11/+11
| | | | svn path=/trunk/; revision=14217
* Don't allow an auth-type to be set when saving the service.Jeffrey Stedfast2001-10-241-0/+12
| | | | | | | | | | | | | 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
* Dont translate camel strings. (mail_account_gui_setup): "92001-10-201-9/+9
| | | | | | | | | 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
* Fix the WM problems related to the folder selection dialog beingEttore Perazzoli2001-10-191-1/+3
| | | | | | | 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
* Added some more NULL checks.Jeffrey Stedfast2001-10-051-2/+2
| | | | | | | | 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
* Use `bonobo_ui_component_new_default()', not `bonobo_ui_component_new()'.Ettore Perazzoli2001-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | * 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
* Setup the url_hash and url_equal functions for the local provider.Jeffrey Stedfast2001-09-291-22/+63
| | | | | | | | | | | | | | | | | | | | | 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
* Only add the account if it doesn't already exist in the config db.Jeffrey Stedfast2001-09-211-3/+4
| | | | | | | | | | | | 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
* Do not add the account here as this is taken care of inJeffrey Stedfast2001-09-211-3/+4
| | | | | | | | | | | | | | | | 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
* Set the sensitivity of the buttons correctlyIain Holmes2001-09-211-1/+3
| | | | svn path=/trunk/; revision=13029
* call menu_file_save_error when there is an exception while saving.Larry Ewing2001-09-111-7/+19
| | | | | | | | | | | 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
* Hide the S/MIME frame if we don't support S/MIME.Jeffrey Stedfast2001-09-111-1/+1
| | | | | | | | | 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
* Don't save the authmech if the username doesn't exist. Fixes bug #9474.Jeffrey Stedfast2001-09-111-1/+1
| | | | | | | | | 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
* Set the source and transport description labels. (transport_type_changed):Jeffrey Stedfast2001-08-281-12/+24
| | | | | | | | | | | | | | | | | | | | | | 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
* Eek, let the user create new accounts if old_account == NULL.Peter Williams2001-08-241-1/+1
| | | | | | | | | 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
* Prevent the user from creating two accounts with the same name.Peter Williams2001-08-221-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix the wording on some labels.Iain Holmes2001-08-211-16/+0
| | | | | | Stop hiding the source and transport pages. svn path=/trunk/; revision=12324
* Startup assistant stuffIain Holmes2001-08-171-12/+15
| | | | svn path=/trunk/; revision=12145
* Break most of the functionality into a separate function.Peter Williams2001-08-141-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix bug #4523 for good. (save_service): If service->authitem is NULL, thenJeffrey Stedfast2001-08-111-15/+21
| | | | | | | | | | | 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
* Save the pgp and smime always-sign options.Jeffrey Stedfast2001-08-101-1/+7
| | | | | | | | | | | | 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
* Try to restore the choice the user had chosen before hitting the "CheckJeffrey Stedfast2001-08-041-1/+10
| | | | | | | | | | | | | 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
* Restore old security settings from the saved configuration. Fixes bugJeffrey Stedfast2001-07-311-1/+7
| | | | | | | | | 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
* Now takes a check_supported gboolean argument saying whether or not toJeffrey Stedfast2001-07-261-8/+13
| | | | | | | | | | | | | | | | 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
* Add new label widgets with a message that SSL isn't supported.Peter Williams2001-07-241-6/+16
| | | | | | | | | | | | | | | | | | | | 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
* [Simplifying how default account is stored and used internally, fixesJason Leach2001-07-191-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix for last change: hide the entire widget, not just the entry.Jason Leach2001-07-181-3/+4
| | | | | | | | | 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
* Call mail_autoreceive_setup() so that any changes to the list of accountsJeffrey Stedfast2001-07-161-0/+3
| | | | | | | | | | 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
* fix typo so it compilesJP Rosevear2001-07-101-1/+1
| | | | | | | | 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
* Handle application/pgp using the text/plain handler.Jeffrey Stedfast2001-07-101-22/+22
| | | | | | | | | | | | 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
* Handle application/pgp using the text/plain handler.Jeffrey Stedfast2001-07-101-46/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Take two authtypes lists, "all", and "supported", and make the unsupportedDan Winship2001-06-291-10/+18
| | | | | | | | | | * 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
* implemented plain savingRadek Doulik2001-06-291-32/+75
| | | | | | | | | | | | | 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
* signature editorRadek Doulik2001-06-291-4/+234
| | | | svn path=/trunk/; revision=10578
* The e_iterator_get() returns a gconstpointer and we need a non-constJeffrey Stedfast2001-06-291-1/+1
| | | | | | | | | | | | | | 2001-06-28 Jeffrey Stedfast <fejj@ximian.com> * mail-send-recv.c (free_send_data): The e_iterator_get() returns a gconstpointer and we need a non-const BonoboControl so cast it. * mail-account-gui.c (mail_account_gui_new): gui->check_html_signature is GtkToggleButton not a GtkCheckButton. * folder-info.c: Added some #include's to supress warnings. svn path=/trunk/; revision=10574
* simplified(refactored) signature handling + better support for htmlRadek Doulik2001-06-291-1/+12
| | | | | | | | | | | | | signatures 2001-06-28 Radek Doulik <rodo@ximian.com> * mail-config.c: use new fields everywhere * mail-config.h: as below * Mail.idl: added html_signature and has_html_signature svn path=/trunk/; revision=10564
* Allow user's to "copy" drag & drop rather than just "move".Jeffrey Stedfast2001-06-171-145/+153
| | | | | | | | | 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
* Setup default spool location same as for mbox mail retrieval.Not Zed2001-06-121-1/+2
| | | | | | | | | 2001-06-12 Not Zed <NotZed@Ximian.com> * mail-account-gui.c (source_type_changed): Setup default spool location same as for mbox mail retrieval. svn path=/trunk/; revision=10199
* Check that the chain of deferences in gui->account->source->url is safe.Jon Trowbridge2001-06-071-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-06 Jon Trowbridge <trow@ximian.com> * mail-account-gui.c (source_type_changed): Check that the chain of deferences in gui->account->source->url is safe. This was causing a segfault when adding a new account if any of the existing accounts had their sources set to "None". (i.e. gui->account->source == NULL) * mail-accounts.c (load_accounts): Check that account->source != NULL before dereferencing it. (load_accounts): The selection is cleared when the account clist is rebuilt (say after a call to add), but no unselect event is emitted. Yes, the clist is evil. We work around this by explictly calling mail_unselect, our unselect signal handler. (Otherwise, the edit and delete buttons remain sensitive and accounts_row != 0, but the user can't see which row the dialog thinks is selected.) (load_news): Check the account->source != NULL before dereferencing it. (mail_unselect): If an insensitive button in a button box has the focus, and if you hit tab, there is a segfault deep inside of gtk. This is probably a gtk bug. We work around it by having the add button (which is always sensitive) grab the focus on an unselect. svn path=/trunk/; revision=10136
* Save the pgp and smime settings. (mail_account_gui_new): Setup the pgp andJeffrey Stedfast2001-06-021-15/+38
| | | | | | | | | | | | | | | | | | 2001-06-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Save the pgp and smime settings. (mail_account_gui_new): Setup the pgp and s/mime page (but disable the s/mime frame if we are not compiled with s/mime support). * mail-config.c (account_copy): Updated to save extra pgp and smime options. (account_destroy): Free draft/sent folder info and also the new pgp/smime keys. (config_read): Read in the pgp and s/mime config options. (mail_config_write): Save the account pgp and smime options. svn path=/trunk/; revision=10084
* Call build_extra_conf() here too. This is when we REALLY want to call itJeffrey Stedfast2001-06-021-0/+2
| | | | | | | | | | | | | | | | 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
* Split "Other" page into three pages, Display, Composer, and PGP. Add HTMLDan Winship2001-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-config.glade: Split "Other" page into three pages, Display, Composer, and PGP. Add HTML image stuff on the Display page and default forward style on the Composer page. * mail-config.c (mail_config_get_default_forward_style, mail_config_set_default_forward_style): User-specified default style for forwarding messages. (config_read, mail_config_write_on_exit): Deal with forward style. * mail-accounts.c: Handle HTML image display options and default forward style. * mail-callbacks.c (forward): New. Forward in the user-selected default style. (forward_inline, forward_quoted): Simplify these some. Remove the fallback to forward attached when forwarding multiple messages: it should just forward the multiple messages inline or quoted in those cases. (Which it doesn't yet, but that's a bug.) * folder-browser.c (context_menu): Remove "Forward inline" and make "Forward" call forward() rather than forward_attached(). * folder-browser-factory.c: Update command/menu/toolbar/pixmap gunk for the "MessageForwardAttached" vs "MessageForward" split. * mail-session.c (mail_session_get_type): * mail-format.c (format_mime_part): * mail-account-gui.c (setup_service): Fix warnings. svn path=/trunk/; revision=9792
* Importer changesIain Holmes2001-05-091-0/+3
| | | | svn path=/trunk/; revision=9722
* s/HAVE_NSS/HAVE_SSL for the SSL checkbox stuff.Jeffrey Stedfast2001-05-081-2/+2
| | | | | | | | | 2001-05-07 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c: s/HAVE_NSS/HAVE_SSL for the SSL checkbox stuff. svn path=/trunk/; revision=9696
* Remove some redundant LIBS variables... purify complained that the commandDan Winship2001-04-141-0/+10
| | | | | | | | | | | | | | | | | | | | * Makefile.am (evolution_mail_LDADD): Remove some redundant LIBS variables... purify complained that the command line was too long. :-} * mail-account-gui.c: Plug leaks. * mail-display.c (on_url_requested): close the html stream on error too. * mail-ops.c (fetch_mail_fetch): Move a line around that probably doesn't affect anything, but it's correct. * session.c (auth_callback): Plug leak. * mail-send-recv.c (receive_status): Initialize "now". svn path=/trunk/; revision=9303
* Add prototype for service_changed(). Remove #includeKjartan Maraas2001-04-051-0/+1
| | | | | | | | | | 2001-04-04 Kjartan Maraas <kmaraas@gnome.org> * mail-account-gui.c: Add prototype for service_changed(). * message-list.h: Remove #include <gal/e-table/e-tree-simple.h> since it doesn't get installed. svn path=/trunk/; revision=9183
* Add a "provider_type" arg to MailAccountGuiService.Dan Winship2001-04-031-2/+6
| | | | | | | | | | | | | | | * mail-account-gui.c: Add a "provider_type" arg to MailAccountGuiService. (transport_needs_auth_toggled): Call service_changed if enabling the auth pane so the status of the "Check supported types" button will be correct. (service_check_supported): Use gsvc->provider_type, not CAMEL_PROVIDER_STORE. (mail_account_gui_new): Pass the transport as the user_data to the "changed" signal on transport.hostname, not the store. (mail_account_gui_setup): Set up provider_type fields svn path=/trunk/; revision=9101
* Cleaned up #includes. Remove unneccesary includes of <gnome.h>,Kjartan Maraas2001-03-301-1/+3
| | | | | | | | | | | 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
* Update call to camel_url_to_string. (Don't include the params in theDan Winship2001-03-301-1/+1
| | | | | | | | | | | | | | | | * session.c (auth_callback): Update call to camel_url_to_string. (Don't include the params in the password hash table key.) * mail-config.c (mail_config_folder_to_cachename): Call camel_url_to_string with HIDE_PASSWORD and HIDE_PARAMS so that changing URL params doesn't change the cachename. * mail-ops.c (add_vtrash_info): * mail-local.c (reconfigure_folder_reconfigure): * mail-account-gui.c (save_service): Update calls to camel_url_to_string. svn path=/trunk/; revision=9015
* Move the gtk_toggle_button_set_active outside the if.Jeffrey Stedfast2001-03-291-6/+15
| | | | | | | | | 2001-03-28 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (setup_service): Move the gtk_toggle_button_set_active outside the if. svn path=/trunk/; revision=8996
* Set up the sent/drafts folder buttons. (folder_picker_clicked): Pop up theDan Winship2001-03-291-0/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mail-account-gui.c (mail_account_gui_new): Set up the sent/drafts folder buttons. (folder_picker_clicked): Pop up the folder selector when sent or drafts is clicked. (mail_account_gui_save): Save the sent/drafts folders. * mail-config.c (account_copy): copy sent/drafts info (config_read): read sent/drafts info (mail_config_write): write sent/drafts info * mail-callbacks.c (composer_send_cb, composer_postpone_cb): split out some common code here (and fix inconsistencies). Always set headers on the message giving the account name, transport, and sent folder to use. * mail-ops.c (mail_send_message): If the message has an X-Evolution-Account header, use the transport/sent folder info for that account (assuming it still exists). Otherwise, if it has X-Evolution-Transport and/or X-Evolution-Fcc, use those. If not, use the default transport and sent folder. FIXME: Falls back silently to the default sent folder if it can't open the account-specific one... (send_queue_send): remove the X-Evolution-Transport, etc processing here, as it gets done by mail_send_message now. FIXME: We only sync the default sent folder. * component-factory.c (owner_set_cb): While setting up the standard folders, also record their URIs. svn path=/trunk/; revision=8991
* Lets do some NULL checking here. First, make sure the gsrc isn't NULL andJeffrey Stedfast2001-03-281-3/+1
| | | | | | | | | | | | | 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
* (save_service): Don't look at authtype if the widget isDan Winship2001-03-281-1/+2
| | | | | | insensitive. (Fixes the "smtp://;auth=PLAINservername" bug.) svn path=/trunk/; revision=8979
* Fill in signature and organization too. (mail_account_gui_save): PreserveDan Winship2001-03-271-0/+10
| | | | | | | | * mail-account-gui.c (mail_account_gui_new): Fill in signature and organization too. (mail_account_gui_save): Preserve the "enabled" flag on the source. svn path=/trunk/; revision=8977
* Probably the very last new config dialog ever. (Ha ha). From Anna, basedDan Winship2001-03-271-0/+1086
* 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