aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-gui.c
Commit message (Collapse)AuthorAgeFilesLines
* Use gconf to get the paned size. (folder_browser_set_message_preview):Jeffrey Stedfast2003-01-081-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-07 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (save_cursor_pos): Use gconf to get the paned size. (folder_browser_set_message_preview): Same. (folder_browser_toggle_hide_deleted): Use gconf to set the hide-deleted state. (folder_browser_set_message_display_style): Same but for the message_display_style. (fb_resize_cb): Save the paned_size via gconf. (paned_size_changed): Callback for when the paned_size gets changed. Change the folder-browser's paned size to the new setting. (folder_browser_gui_init): Listen to changes to the paned_size and also get the initial size from gconf. * message-list.c (message_list_set_folder): Use gconf. (regen_list_regen): Use gconf. * message-browser.c (transfer_msg_done): Use gconf to get the hide_deleted setting. * mail-account-gui.c (sig_add_new_signature): Use gconf. * folder-browser-ui.c (folder_browser_ui_add_list): Use gconf. * folder-browser.c (save_cursor_pos): Use gconf. (folder_browser_set_message_preview): Same. (folder_browser_toggle_hide_deleted): Here too. (folder_browser_set_message_display_style): And here. (folder_browser_gui_init): Here too. (done_message_selected): And here. * mail-config.c (mail_config_get_thread_subject): Removed. (mail_config_set_thread_subject): Removed. (mail_config_get_empty_trash_on_exit): Removed. (mail_config_set_empty_trash_on_exit): Removed. (mail_config_get_last_filesel_dir): Removed. (mail_config_set_last_filesel_dir): Removed. (mail_config_get_hide_deleted): Removed. (mail_config_set_hide_deleted): Removed. (mail_config_get_paned_size): Removed. (mail_config_set_paned_size): Removed. (mail_config_get_send_html): Removed. (mail_config_set_send_html): Removed. (mail_config_get_confirm_unwanted_html): Removed. (mail_config_set_confirm_unwanted_html): Removed. (mail_config_get_citation_highlight): Removed. (mail_config_set_citation_highlight): Removed. (mail_config_get_citation_color): Removed. (mail_config_set_citation_color): Removed. (mail_config_get_do_seen_timeout): Removed. (mail_config_set_do_seen_timeout): Removed. (mail_config_get_mark_as_seen_timeout): Removed. (mail_config_set_mark_as_seen_timeout): Removed. (mail_config_get_prompt_empty_subject): Removed. (mail_config_set_prompt_empty_subject): Removed. (mail_config_get_prompt_only_bcc): Removed. (mail_config_set_prompt_only_bcc): Removed. (mail_config_get_confirm_expunge): Removed. (mail_config_set_confirm_expunge): Removed. (mail_config_get_confirm_goto_next_folder): Removed. (mail_config_set_confirm_goto_next_folder): Removed. (mail_config_get_goto_next_folder): Removed. (mail_config_set_goto_next_folder): Removed. (mail_config_get_http_mode): Removed. (mail_config_set_http_mode): Removed. (mail_config_get_default_forward_style): Removed. (mail_config_set_default_forward_style): Removed. (mail_config_get_default_reply_style): Removed. (mail_config_set_default_reply_style): Removed. (mail_config_get_message_display_style): Removed. (mail_config_set_message_display_style): Removed. (mail_config_get_default_charset): Removed. (mail_config_set_default_charset): Removed. (mail_config_get_x_mailer_display_style): Removed. (mail_config_set_x_mailer_display_style): Removed. * subscribe-dialog.c (populate_store_list): Use the list of accounts. We can't get the list of sources anymore. (populate_store_foreach): Updated. * mail-callbacks.c (guess_me_from_accounts): Use account->enabled. (mail_generate_reply): Same. (empty_trash): Here too. * mail-accounts.c (account_delete_clicked): Use account->enabled rather than source->enabled. (account_able_clicked): Same. (account_cursor_change): Here too. (mail_accounts_load): And here. * component-factory.c (owner_unset_cb): Use gconf empty-on-exit settings. (mail_load_storages): Use account->enabled rather than account->source->enabled. The struct changed. * mail-composer-prefs.c (sig_add): Get the send_html pref from gconf. * message-tag-followup.c (target_date_new): Use gconf. * mail-config.c (mail_config_get_week_start_day): Removed. * mail-tools.c (mail_tool_quote_message): Use gconf here too, but we don't need to parse the colour - just use it as a raw string. (mail_tool_forward_message): Use gconf. * mail-format.c (mail_format_data_wrapper_write_to_stream): Use gconf. (write_headers): Use gconf. (handle_text_plain): Same. * mail-display.c (mail_text_write): Updated to use gconf and parse GdkColour strings. (on_url_requested): Updated to use gconf. * mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Use gconf rather than the old mail-config APIs which will be removed. (ask_confirm_for_empty_subject): Same. (ask_confirm_for_only_bcc): Here too. (composer_get_message): And here. (create_msg_composer): Same. (transfer_msg_done): Again here. (delete_msg): Here too. (confirm_expunge): And finally here. * mail-config.c (mail_config_write): Use gconf. (mail_config_get_sources): Removed. * mail-account-gui.c (mail_account_gui_save): No need to save enabled-state anymore for a source. * mail-config-druid.c (wizard_finish_cb): Instead of setting account->source->enabled to TRUE, just set account->enabled to TRUE. The structures changed a bit. * mail-send-recv.c (mail_send_receive): Get the list of accounts instead of sources, and pass them along to build_dialogue. I'm trying to get rid of the mail_config_get_sources() api. (mail_autoreceive_setup): Here too. * mail-config.c (mail_config_get_filter_log): Removed. (mail_config_set_filter_log): Removed. (mail_config_get_filter_log_path): Removed. (mail_config_set_filter_log_path): Removed. (mail_config_get_new_mail_notify): Removed. (mail_config_set_new_mail_notify): Removed. (mail_config_get_new_mail_notify_sound_file): Removed. (mail_config_set_new_mail_notify_sound_file): Removed. * mail-session.c (main_get_filter_driver): Updated to use the gconf settings. svn path=/trunk/; revision=19271
* Don't translate the conf strings. Camel already did it.Dan Winship2003-01-081-10/+10
| | | | | | | | * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf, mail_account_gui_build_extra_conf): Don't translate the conf strings. Camel already did it. svn path=/trunk/; revision=19266
* fixed to build with -DG_DISABLE_DEPRECATEDJeffrey Stedfast2003-01-031-1/+1
| | | | svn path=/trunk/; revision=19209
* gnome_pixmap -> gtkimage. (construct): gtk_clist -> gtk_tree_view, setupNot Zed2002-12-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use g_object_new() instead of gtk_type_new(). Likewise. Likewise.Ettore Perazzoli2002-11-141-1/+1
| | | | | | | | | | | * folder-info.c (evolution_folder_info_factory_fn): Use g_object_new() instead of gtk_type_new(). * folder-browser.c (folder_browser_new): Likewise. * mail-account-gui.c (mail_account_gui_folder_selector_button_new): Likewise. * mail-font-prefs.c (mail_font_prefs_new): Likewise. svn path=/trunk/; revision=18742
* Added to cvs. Currently contains no configurable stuff, but maybe it willNot Zed2002-11-131-47/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Ported.Jeffrey Stedfast2002-11-121-112/+95
| | | | | | | | 2002-11-11 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c: Ported. svn path=/trunk/; revision=18704
* Use e_utf8_gtk_entry_set_text for the email address and reply-to fields.Jeffrey Stedfast2002-10-021-2/+2
| | | | | | | | | | 2002-10-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Use e_utf8_gtk_entry_set_text for the email address and reply-to fields. Fixes bug #31555. svn path=/trunk/; revision=18285
* add "mail/public". Leave "vtrash" as it is rather than renaming it toDan Winship2002-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * component-factory.c (folder_types): add "mail/public". Leave "vtrash" as it is rather than renaming it to "mail/vtrash", because we want it to behave differently from normal mail folders more often than we want it to behave the same. (type_is_mail, type_is_vtrash): utility funcs (create_view, create_folder, remove_folder, xfer_folder, populate_folder_context_menu, unpopulate_folder_context_menu, destination_folder_handle_drop, storage_create_folder): Use type_is_mail/type_is_vtrash. (create_component): Register "New Post" with "mail/public" instead of "mail" so it becomes the default New icon for it. (29024) * mail-callbacks.c (transfer_msg): Use "mail/*" for allowed type. * message-browser.c (transfer_msg): Likewise. * mail-account-gui.c (mail_account_gui_new): Use "mail/*" instead of "mail" here for sent/drafts allowed type. (?) svn path=/trunk/; revision=18223
* Fix non-ANSI switch statement.Dan Winship2002-09-241-0/+1
| | | | | | | | | | | | | | | | * mail-signature-editor.c (exit_dialog_cb): Fix non-ANSI switch statement. * mail-account-gui.c (mail_account_gui_auto_detect_extra_conf): Likewise. * mail-composer-prefs.c (spell_load_values): add some dummy typedefs to avoid empty macro arguments, which have undefined behavior. * mail-importer.c: #include <sys/types.h> for OS X svn path=/trunk/; revision=18186
* Pass NULL as @unpopulate_folder_context_menu_fn toEttore Perazzoli2002-09-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gui/component/addressbook-component.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * gui/component-factory.c (create_object): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * mail-account-gui.c (mail_account_gui_save): Remove unused variable. * component-factory.c (unpopulate_folder_context_menu): New. (create_component): Pass it to evolution_shell_component_new(). * component-factory.c (create_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * e-storage-set-view.c (popup_folder_menu): Remove the context menu items using evolution_shell_component_client_unpopulate_folder_context_menu() instead of doing it ourself, since BonoboUI sucks. * evolution-shell-component-client.c (evolution_shell_component_client_unpopulate_folder_context_menu): New. * evolution-test-component.c (register_component): Pass NULL as @unpopulate_folder_context_menu_fn to evolution_shell_component_new(). * evolution-shell-component.c: New member unpopulate_folder_context_menu_fn in EvolutionShellComponentPrivate. New member uic in EvolutionShellComponentPrivate. (init): Init new members to NULL. (destroy): bonobo_object_unref() priv->uic if not NULL. (evolution_shell_component_new): New arg @unpopulate_folder_context_menu_fn. (evolution_shell_component_construct): Likewise. (impl_populateFolderContextMenu): Set priv->uic to the newly created UIComponent. (impl_unpopulateFolderContextMenu): New, implementation for the ::unpopulateFolderContextMenu CORBA method. (class_init): Install. * Evolution-ShellComponent.idl (unpopulateFolderContextMenu): New method. (AlreadyPopulated): New exception. (populateFolderContextMenu): Can raise it. (NotPopulated): New exception. svn path=/trunk/; revision=17963
* (mail_account_gui_save): Fix the saving of STORE_AND_TRANSPORTDan Winship2002-08-201-3/+4
| | | | | | | transports and add a comment so it doesn't get mistakenly unfixed again. svn path=/trunk/; revision=17801
* source_type_changed may try to change the transport optionmenuDan Winship2002-08-201-4/+6
| | | | | | | | | * mail-account-gui.c (mail_account_gui_setup): source_type_changed may try to change the transport optionmenu (incorrectly in this case), so don't call gtk_option_menu_set_history on it until after emitting "activate" on the source type menuitem. svn path=/trunk/; revision=17800
* Add a "don't sign meeting requests" option to the security pane, sinceDan Winship2002-08-151-0/+3
| | | | | | | | | | | | | | | * mail-config.glade: Add a "don't sign meeting requests" option to the security pane, since some versions of Outlook won't recognize pgp-signed meeting requests. Sigh. * mail-config.c (account_copy, config_read, mail_config_write): Handle pgp_no_imip_sign. * mail-account-gui.c (mail_account_gui_new, mail_account_gui_save): Setup/save "don't sign meeting requests" button. svn path=/trunk/; revision=17778
* Instead of comparing old/new CamelStore objects, just compare theirJeffrey Stedfast2002-08-091-55/+18
| | | | | | | | | | | 2002-08-08 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Instead of comparing old/new CamelStore objects, just compare their account urls since changing params would still result in the same CamelStore object. Fixes bug #18539. svn path=/trunk/; revision=17748
* If we are editing an account, then get the CamelStore associated with theJeffrey Stedfast2002-08-021-22/+65
| | | | | | | | | | | | | | | 2002-08-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): If we are editing an account, then get the CamelStore associated with the old account info and save it in a struct that we will pass along as user_data to mail_get_store() for the new account url. (add_new_store): If the old account and new account stores are identical, then don't remove the old store from the folder tree. If they are not the same, then remove the old store and add the new store to the folder tree. svn path=/trunk/; revision=17674
* Get the "Reset Defaults" folders button and connect to the clicked signal.Jeffrey Stedfast2002-07-301-1/+25
| | | | | | | | | | | 2002-07-29 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_new): Get the "Reset Defaults" folders button and connect to the clicked signal. (default_folders_clicked): Set the default uris on for the Drafts and Sent folders. svn path=/trunk/; revision=17634
* use mail_config_get_send_html for html format flagRadek Doulik2002-07-251-1/+1
| | | | | | | | | | | | 2002-07-24 Radek Doulik <rodo@ximian.com> * mail-composer-prefs.c (sig_add): use mail_config_get_send_html for html format flag * mail-account-gui.c (sig_add_new_signature): use mail_config_get_send_html for html format flag svn path=/trunk/; revision=17573
* Re-enable some #if 0'd code.Jeffrey Stedfast2002-07-171-1/+1
| | | | | | | | | | | | | | | | | | | 2002-07-16 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (account_able_clicked): Re-enable some #if 0'd code. * mail-vfolder.c (vfolder_load_storage): Updated to not pass TRUE for an auto_connect argument since that argument no longer exists. * mail-account-gui.c (add_new_store): Updated to not pass an auto_connect argument. * component-factory.c (add_storage): Don't ever auto-connect here. (mail_add_storage): No longer takes an auto_connect argument. (mail_load_storages): Only load the account storages that are enabled. svn path=/trunk/; revision=17483
* Removed special-case code for NNTP support.Jeffrey Stedfast2002-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | 2002-07-04 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Removed special-case code for NNTP support. * mail-account-gui.c (mail_account_gui_setup): Allow configuration of both mail and news accounts. * component-factory.c (mail_load_storages): No longer need the is-account argument. * subscribe-dialog.c (populate_store_list): Don't special-case news accounts anymore. * mail-config.c (mail_config_get_default_news): Removed. (mail_config_get_news): Removed. (mail_config_add_news): Removed. (mail_config_remove_news): Removed. svn path=/trunk/; revision=17368
* Pass TRUE as the auto_connect argument to mail_load_storage_from_uri().Jeffrey Stedfast2002-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | 2002-07-03 Jeffrey Stedfast <fejj@ximian.com> * mail-vfolder.c (vfolder_load_storage): Pass TRUE as the auto_connect argument to mail_load_storage_from_uri(). * mail-account-gui.c (add_new_store): Pass FALSE as the auto_connect value to mail_load_storage_from_uri(). * mail-format.c (handle_multipart_encrypted): Pass the correct pointer into camel_multipart_encrypted_decrypt(). * component-factory.c (mail_add_storage): Now takes an auto-connect argument which it passes along to add_storage(). (mail_load_storage_from_uri): Same. (add_storage): Only call mail_note_store() if we plan on auto-connecting. svn path=/trunk/; revision=17363
* Some compiler warning fixes.Jeffrey Stedfast2002-06-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-25 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (mail_add_storage): Some compiler warning fixes. * mail-crypto.c (mail_crypto_pgp_mime_part_sign): Removed. (mail_crypto_get_pgp_cipher_context): New convenience function to construct a pgp cipher context. (mail_crypto_pgp_mime_part_verify): Use the new get_pgp_cipher_context function. (mail_crypto_pgp_mime_part_encrypt): Same. (mail_crypto_pgp_mime_part_decrypt): Here too. * mail-account-gui.c (mail_account_gui_new): Initialise the pgp_always_trust checkbox. (mail_account_gui_save): Get whether or not to always_trust the user's pgp keys. * mail-config.c (account_copy): Copy over the pgp_always_trust option. (config_read): Read in the always_trust option. (mail_config_write): Save the always_trust option. svn path=/trunk/; revision=17277
* script signaturesRadek Doulik2002-06-081-1/+1
| | | | svn path=/trunk/; revision=17144
* If this account is not a completely new account (ie, it is an editedJeffrey Stedfast2002-06-071-3/+48
| | | | | | | | | | | | | | 2002-06-06 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): If this account is not a completely new account (ie, it is an edited account), then remove any trace of it from the shell storages. If the new account belongs in the folder-tree, add it to the list of storages. * component-factory.c (mail_add_storage): New function to add a single storage. svn path=/trunk/; revision=17138
* signature editor reworked, WIPRadek Doulik2002-06-051-242/+53
| | | | svn path=/trunk/; revision=17117
* Write the signature after the account has been added. (sig_new_html):Jeffrey Stedfast2002-06-041-16/+9
| | | | | | | | | | | 2002-06-04 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): Write the signature after the account has been added. (sig_new_html): Don't write the signatures at this time. (sig_new_text): Same. svn path=/trunk/; revision=17096
* 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