aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-09-26 04:04:42 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-09-26 04:04:42 +0800
commit64827631614d654220e8628fce6d35bc16444833 (patch)
tree5a23a13f8931c5cde9157821563de42b1e96b806 /mail
parent9588114593ab8b125876a7a7dec54cc6f6f920c4 (diff)
downloadgsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.tar
gsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.tar.gz
gsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.tar.bz2
gsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.tar.lz
gsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.tar.xz
gsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.tar.zst
gsoc2013-evolution-64827631614d654220e8628fce6d35bc16444833.zip
Allow any file: uri to point to a sent or drafts folder.
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. svn path=/trunk/; revision=22706
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-account-gui.c6
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) */