2003-06-06 Jeffrey Stedfast <fejj@ximian.com>
* message-tag-followup.c (get_week_start_day): Use mail-config's
gconf client.
(target_date_new): Same.
* message-list.c (message_list_set_folder): Use mail-config's
gconf client.
(mail_regen_list): Same.
* mail-tools.c (mail_tool_quote_message): Use mail-config's gconf
client.
(mail_tool_forward_message): Same.
* mail-session.c (main_get_filter_driver): Use mail-config's gconf
client.
* mail-preferences.c (mail_preferences_init): Use mail-config's
gconf client.
(mail_preferences_finalise): Don't unref the gconf client.
* mail-format.c (write_headers): Use mail-config's gconf client.
(mail_format_data_wrapper_write_to_stream): Same.
(handle_text_plain): And here.
* mail-display.c (save_data_cb): Use mail-config's gconf client.
(save_part): Same.
(on_url_requested): Here too.
(mail_text_write): And here.
(mail_display_init): And here.
(mail_display_destroy): Here too.
(mail_display_new): Again here.
* mail-composer-prefs.c (sig_add_cb): Use mail-config's gconf
client.
(mail_composer_prefs_construct): Same.
* mail-callbacks.c (ask_confirm_for_unwanted_html_mail): Use
mail-config's gconf client.
(ask_confirm_for_empty_subject): Same.
(ask_confirm_for_only_bcc): Here too.
(composer_get_message): And here.
(create_msg_composer): Again here.
(mail_generate_reply): Same.
(forward): And here.
(transfer_msg_done): "
(delete_msg): "
(confirm_expunge): "
* component-factory.c (owner_unset_cb): Use mail-config's gconf
client.
* folder-browser-ui.c (folder_browser_ui_add_message): Use the
mailer's gconf client.
(folder_browser_ui_add_list): Same.
(folder_browser_ui_add_global): Here too.
* folder-browser.c (save_cursor_pos): Use the mailer's gconf
client.
(folder_browser_set_message_preview): Same.
(folder_browser_toggle_preview): Here too.
(folder_browser_toggle_threads): And here.
(folder_browser_toggle_hide_deleted): Here as well.
(folder_browser_set_message_display_style): And here.
(fb_resize_cb): Here.
(paned_realised): And here.
(done_message_selected): And everywhere...
* mail-account-gui.c (sig_add_new_signature): Use the mailer gconf
client.
* mail-config.c (mail_config_get_gconf_client): New function to
return the global GConfClient used by the mailer.
(mail_config_write_on_exit): On exit, free our objects and such.
(mail_config_signature_run_script): Use config->gconf.
2003-06-04 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (invert_selection): Get rid of the if-focused
code, that will always prevent the etree from getting the
selection inverted because the menu item will always have focus at
this time. Fix for bug #43972.
it takes more than good relations to some of the major spirits in this
branch of the multiverse to write apps that don't leak gconf-client
refs, good coding is important, too.
that... or a 100-megaton-kill-o-zap bomb
svn path=/trunk/; revision=21410
2003-06-11 Not Zed <NotZed@Ximian.com>
** See bug #22542
* component-factory.c (storage_create_folder): If we're creating a
folder on a vstore, popup a vFolder editor rather than failing.
2003-06-05 Not Zed <NotZed@Ximian.com>
** Part of #42691.
* importers/Makefile.am (BUILT_SOURCES): added server_DATA.
* Makefile.am (%.server.in): create a proper implicit rule for
temporary .in file.
2003-06-04 Not Zed <NotZed@Ximian.com>
** See bug #43974
* mail-tools.c (mail_tool_do_movemail): use a proper CamelURL to
decode the uri, not hacky strcmp stuff.
* mail-account-gui.c (extract_values): if we have an conf_entry,
ignore username, hostname, and path ones, as these are handled
implicitly in the url itself. Came about because of the fix for
#42838.
svn path=/trunk/; revision=21407
2003-05-19 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Only re-add the
store to the folder-tree if the account is enabled. Oops. Fixes
bug #43214.
svn path=/trunk/; revision=21283
2003-05-15 Not Zed <NotZed@Ximian.com>
** See bug #42838.
* mail-account-gui.c (mail_account_gui_build_extra_conf): always
add the extra entry to the hash table, most paths wouldn't.
svn path=/trunk/; revision=21203
2003-03-07 Jeffrey Stedfast <fejj@ximian.com>
All this snot just to fix bug #38925 and an attempt to fix bug
#38926 (but it seems no matter what I do, I can't work around the
bonoboness/modality/whatever of the shell's preferences dialog).
* mail-account-gui.c (sig_add_new_signature): Get the toplevel
parent GtkWindow and pass that along to
mail_composer_prefs_new_signature() so that window layering can be
done correctly.
* mail-composer-prefs.c (mail_composer_prefs_new_signature):
Simplify. We don't want to add the signature to the list until
after they have saved.
(sig_edit_cb): Pass FALSE as the is_new argument to
mail_signature_editor().
(sig_event_client): Listen for signatures being added.
(mail_composer_prefs_new_signature): Now takes a GtkWindow arg as
the first arg rather than a MailComposerPrefs arg since we don't
really need it to be a MailComposerPrefs object. We'd rather use
the first arg as the parent GtkWindow so that we can set
transience for the editor window.
* mail-signature-editor.c (mail_signature_editor): Now takes a
'parent' argument (so we can set transient_for()) and a 'is_new'
argument specifying whether the editor is editing a new signature
or not. If it is, when the user saves, it will be added to the
signature list. otherwise it won't.
(sig_name_changed): Only use the mail_config_signature_set_name()
interface if it is *not* a new signature.
(menu_file_save_cb): If is_new, then save the signature to the
config - otherwise do what we did before and set the modifications
to it and emit the CHANGED event.
* mail-config.c (mail_config_signature_new): Renamed from
mail_config_signature_add(). We no longer immediately add the
signature to the list of saved signatures.
(mail_config_signature_add): New function which adds the signature
and emits the SIG_ADDED event.
svn path=/trunk/; revision=20221
* mail-config-druid.c: Redo this to not use the CORBA interfaces
in the local case (in preparation for redoing the CORBA
interfaces).
(mail_config_druid_new): Remove unused "shell" arg
* mail-account-gui.c (mail_account_gui_transport_complete): Don't
crash if there's no transport selected at all.
(mail_account_gui_new): Don't try to set cc_addrs/bcc_addrs if
they're NULL.
* mail-accounts.c (account_add_clicked): Don't need to pass shell
to mail_config_druid_new.
* mail-callbacks.c (configure_mail): Don't need to pass shell to
mail_config_druid_new.
svn path=/trunk/; revision=20051
2003-02-24 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (request_password): Make sure m->config_service
is non-NULL before using m->config_service->save_passwd since PGP
stuff will not have a config_service. Fixes bug #38149.
* mail-account-gui.c (mail_account_gui_save):
s/e_account_list_changed/e_account_list_change - otherwise we get
an undefined symbol and we crash :-)
svn path=/trunk/; revision=20043
2003-02-20 Not Zed <NotZed@Ximian.com>
* mail-preferences.c (mail_preferences_apply): fix the g_snprintf
stuff.
* mail-config.c (mail_config_add_account): Use new
e_account_list_add.
(mail_config_remove_account): Use new e_account_list_remove.
(mail_config_set_default_account): Similarly for
e_account_list_set_default.
(mail_config_get_default_account): Same for
e_account_list_get_default.
(mail_config_get_account_by_name): Use e_account_list_find.
* mail-account-gui.c (mail_account_gui_save): use new
e_account_list_changed call instead of manual signalling.
svn path=/trunk/; revision=20020
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
tables instead of vboxes, so that groups of label/entry pairs (as
in Connector's config page) can line up nicely.
* mail-config.glade: Turn extra_vbox and extra_mailcheck_vbox into
tables.
* mail-config-druid.c (get_fn): s/extra_vbox/extra_table/
* Makefile.am (libevolution_mail_la_LIBADD):
s/libcomposer.a/libcomposer.la/
svn path=/trunk/; revision=19993
2003-02-13 Jeffrey Stedfast <fejj@ximian.com>
* e-searching-tokenizer.c: #include <stdio.h>
* mail-config-factory.c: #include <string.h>
* mail-config-druid.c (identity_prepare): Use
gtk_editable_select_region() since gtk_entry_select_region() has
been deprecated.
(construct): Use gtk_window_set_resizable() instead of
gtk_window_set_policy().
(wizard_free): account_destroy() is no longer around, use
g_object_unref() instead. (how did this even compile before?)
* mail-account-gui.c (mail_account_gui_build_extra_conf): Use
gtk_label_set_text_with_mnemonic() instead of
gtk_label_parse_uline() as the latter has been deprecated.
svn path=/trunk/; revision=19905
2003-01-27 Jeffrey Stedfast <fejj@ximian.com>
* mail-identify.c (mail_identify_mime_part): Fixed a #warning by
converting a local path into a file: uri before feeding it to
gnome-vfs.
* message-list.c (message_list_set_folder): Removed a FIXME that
I've decided is no longer needed.
2003-01-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-config.c (mail_config_add_account): Emit the account-added
event.
(mail_config_remove_account): Emit the account-removed event.
* mail-account-gui.c (mail_account_gui_save): Emit the changed
event on the account-list for the changed account.
svn path=/trunk/; revision=19655
2003-01-17 Jeffrey Stedfast <fejj@ximian.com>
* mail-session.c (do_get_pass): Updated.
(request_password): Same.
* mail-send-recv.c (mail_send): Fixed to use EAccountService.
* mail-config-druid.c (make_account): Updated to use EAccount and
friends.
* mail-account-gui.c (service_check_supported): Updated to use
EAccountService.
(mail_account_gui_new): Ref the account passed in and also update
to use EAccount objects.
(save_service): Updated to use an EAccountService.
(add_new_store): Updated to use an EAccount.
(mail_account_gui_save): Updated to use EAccounts.
(setup_signatures): Updated because the new account->id->def_sig
is now an int and not a structure pointer.
* mail-account-editor.c (construct): Updated.
(mail_account_editor_new): Now takes an EAccount object as an
argument instead of a MailConfigAccount.
* mail-crypto.c (mail_crypto_get_pgp_cipher_context): Updated to
use EAccounts.
* subscribe-dialog.c (populate_store_foreach): Removed.
(populate_store_list): Can't use populate_store_foreach here
because of the change to EAccountList so do it manually.
* mail-vfolder.c (uri_is_ignore): Rewrote to use EAccountList and
EIterator and all that fun.
* mail-send-recv.c (build_dialogue): Updated to use EAccountList
and EAccount object stuff. *ugh*
(mail_send_receive): Here too.
(mail_autoreceive_setup): Same.
* mail-callbacks.c (check_send_configuration): Updated.
(composer_get_message): Updated.
(compose_msg): "
(list_add_addresses): "
(guess_me): "
(guess_me_from_accounts): Same.
(forward_get_composer): Here too.
(mail_generate_reply): Same.
(redirect_get_composer): "
(empty_trash): And finally here.
* mail-accounts.c (account_edit_clicked): Updated.
(account_delete_clicked): Same.
(account_default_clicked): Here too.
(account_able_clicked): "
(account_cursor_change): "
(mail_accounts_load): Again here.
* folder-browser.c (folder_browser_is_drafts): Updated to use
EAccountList and EAccount stuff.
(folder_browser_is_sent): Same.
* component-factory.c (mail_load_storages): Updated to use
EAccount and EAccountList stuff.
(owner_set_cb): Same.
(send_receive_cb): Here too.
* mail-config.c: Rewritten to use EAccount and EAccountList
objects.
svn path=/trunk/; revision=19509
2003-01-16 Jeffrey Stedfast <fejj@ximian.com>
* mail-composer-prefs.c (sig_fill_clist): Same as below.
* mail-account-gui.c (sig_fill_options):
mail_config_get_signature_list() now returns a GSList instead of a
GList.
* mail-config.c (signature_new_from_xml): New function to parse a
signature xml blob into a MailConfigSignature structure.
(config_read_signatures): Rewritten to use above function.
(signature_to_xml): New function to write a signature to xml.
(config_write_signatures_num): Removed.
(config_write_signature): Removed.
(config_write_signatures): Rewritten to use signature_to_xml and
gconf.
svn path=/trunk/; revision=19497
2003-01-14 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-gui.c (mail_account_gui_save): Call
mail_config_save_accounts ().
* mail-config.c (mail_config_save_accounts): New function to save
accounts without having to re-load them.
svn path=/trunk/; revision=19464
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
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
* 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
* 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.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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