aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-account-gui.c7
2 files changed, 7 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index fcc60057df..b0fe5bc5a1 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -4,6 +4,9 @@
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.
+ (mail_account_gui_save): Fix the saving of STORE_AND_TRANSPORT
+ transports and add a comment so it doesn't get mistakenly unfixed
+ again.
2002-08-09 Peter Williams <peterw@ximian.com>
diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c
index e5f1efc51f..d35a3fea57 100644
--- a/mail/mail-account-gui.c
+++ b/mail/mail-account-gui.c
@@ -1883,9 +1883,10 @@ mail_account_gui_save (MailAccountGui *gui)
service_destroy (account->transport);
account->transport = g_new0 (MailConfigService, 1);
- if (CAMEL_PROVIDER_IS_STORE_AND_TRANSPORT (gui->transport.provider))
- save_service (&gui->transport, gui->extra_config, account->transport);
- else
+ if (CAMEL_PROVIDER_IS_STORE_AND_TRANSPORT (gui->transport.provider)) {
+ /* The transport URI is the same as the source URI. */
+ save_service (&gui->source, gui->extra_config, account->transport);
+ } else
save_service (&gui->transport, NULL, account->transport);
/* Check to make sure that the Drafts folder uri is "valid" before assigning it */