aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-20 08:05:18 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-12-20 08:05:18 +0000
commit8945c06437dca9a40882ccd7a768c63c47a70366 (patch)
tree0176f83aca430bbcfc834518bb591ca475e6ab39 /src
parent83023f81b011ac5957c7f7077feedba5e22dfb54 (diff)
look for all accounts when enable_swap_from is enabled.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@845 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/account_dialog.c1
-rw-r--r--src/folderview.c2
-rw-r--r--src/summaryview.c5
3 files changed, 5 insertions, 3 deletions
diff --git a/src/account_dialog.c b/src/account_dialog.c
index c93ff11e..5826ed4e 100644
--- a/src/account_dialog.c
+++ b/src/account_dialog.c
@@ -224,6 +224,7 @@ void account_open(PrefsAccount *ac_prefs)
account_write_config_all();
account_set_menu();
main_window_reflect_prefs_all();
+ account_updated();
}
void account_set_missing_folder(void)
diff --git a/src/folderview.c b/src/folderview.c
index 52184244..8dca27ae 100644
--- a/src/folderview.c
+++ b/src/folderview.c
@@ -2440,6 +2440,7 @@ static void folderview_rm_imap_server_cb(FolderView *folderview, guint action,
account = item->folder->account;
folder_destroy(item->folder);
account_destroy(account);
+ account_write_config_all();
sel_path = gtk_tree_row_reference_get_path(folderview->selected);
if (sel_path) {
@@ -2631,6 +2632,7 @@ static void folderview_rm_news_server_cb(FolderView *folderview, guint action,
account = item->folder->account;
folder_destroy(item->folder);
account_destroy(account);
+ account_write_config_all();
sel_path = gtk_tree_row_reference_get_path(folderview->selected);
if (sel_path) {
diff --git a/src/summaryview.c b/src/summaryview.c
index f30bc735..bf10d2a7 100644
--- a/src/summaryview.c
+++ b/src/summaryview.c
@@ -1881,13 +1881,12 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter,
date_s = msginfo->date;
else
date_s = _("(No Date)");
- if (prefs_common.swap_from && msginfo->from && msginfo->to &&
- cur_account && cur_account->address) {
+ if (prefs_common.swap_from && msginfo->from && msginfo->to) {
gchar *from;
Xstrdup_a(from, msginfo->from, return);
extract_address(from);
- if (!strcmp(from, cur_account->address))
+ if (account_address_exist(from))
sw_from_s = g_strconcat("-->", msginfo->to, NULL);
}