[anjal] BUGFIX: GNOME #589291 - Check mails in all folders and remote sync them.
- From: Srinivasa Ragavan <sragavan src gnome org>
- To: svn-commits-list gnome org
- Subject: [anjal] BUGFIX: GNOME #589291 - Check mails in all folders and remote sync them.
- Date: Wed, 22 Jul 2009 06:09:46 +0000 (UTC)
commit cb6d284fe1136e887b4d70c657b57554ac236c66
Author: Srinivasa Ragavan <sragavan novell com>
Date: Wed Jul 22 11:38:43 2009 +0530
BUGFIX: GNOME #589291 - Check mails in all folders and remote sync them.
src/mail-account-view.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/mail-account-view.c b/src/mail-account-view.c
index ec6c63b..95ec53b 100644
--- a/src/mail-account-view.c
+++ b/src/mail-account-view.c
@@ -415,7 +415,19 @@ mav_next_pressed (GtkButton *button, MailAccountView *mav)
}
if (mav->current_page == MAV_LAST - 1) {
+ char *uri = e_account_get_string(mav->edit->account, E_ACCOUNT_SOURCE_URL);
+ CamelURL *url;
+
e_account_set_string (mav->edit->account, E_ACCOUNT_NAME, e_account_get_string(mav->edit->account, E_ACCOUNT_ID_ADDRESS));
+ if (uri != NULL && (url = camel_url_new(uri, NULL)) != NULL) {
+ camel_url_set_param(url, "check_all", "1");
+ camel_url_set_param(url, "sync_offline", "1");
+
+ uri = camel_url_to_string(url, 0);
+ e_account_set_string(mav->edit->account, E_ACCOUNT_SOURCE_URL, uri);
+ g_free(uri);
+ camel_url_free(url);
+ }
em_account_editor_commit (mav->edit);
g_signal_emit (mav, signals[VIEW_CLOSE], 0);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]