diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-account-gui.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index d58f45afbc..311e98b922 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2003-09-25 Jeffrey Stedfast <fejj@ximian.com> + + * mail-account-gui.c (mail_account_gui_save): Allow any file: uri + to point to a sent or drafts folder. + 2003-09-25 Rodney Dawes <dobey@ximian.com> * mail-send-recv.c: Make the dialog more HIG-compliant by fixing diff --git a/mail/mail-account-gui.c b/mail/mail-account-gui.c index 6d965ece6b..62ddfc4d06 100644 --- a/mail/mail-account-gui.c +++ b/mail/mail-account-gui.c @@ -1921,7 +1921,8 @@ mail_account_gui_save (MailAccountGui *gui) save_service (&gui->transport, NULL, new->transport); /* Check to make sure that the Drafts folder uri is "valid" before assigning it */ - if (mail_config_get_account_by_source_url (gui->drafts_folder_uri)) { + if (mail_config_get_account_by_source_url (gui->drafts_folder_uri) || + !strncmp (gui->drafts_folder_uri, "file:", 5)) { new->drafts_folder_uri = g_strdup (gui->drafts_folder_uri); } else { /* assign defaults - the uri is unknown to us (probably pointed to an old source url) */ @@ -1929,7 +1930,8 @@ mail_account_gui_save (MailAccountGui *gui) } /* Check to make sure that the Sent folder uri is "valid" before assigning it */ - if (mail_config_get_account_by_source_url (gui->sent_folder_uri)) { + if (mail_config_get_account_by_source_url (gui->sent_folder_uri) || + !strncmp (gui->sent_folder_uri, "file:", 5)) { new->sent_folder_uri = g_strdup (gui->sent_folder_uri); } else { /* assign defaults - the uri is unknown to us (probably pointed to an old source url) */ |