aboutsummaryrefslogtreecommitdiff
path: root/libsylph/account.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-30 06:44:20 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2006-01-30 06:44:20 +0000
commita86fc629f6c05556bfc17c62fc3d4f9b487bb6c5 (patch)
treee09fb59e9be44ad8dea83755a0d8096e59628df1 /libsylph/account.c
parent7fc7273c9b1659347e4e6eb8c3c0a2aa408ed318 (diff)
fixed a bug that automatic account selection was disabled on IMAP4 folders.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@942 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/account.c')
-rw-r--r--libsylph/account.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/libsylph/account.c b/libsylph/account.c
index 514825dd..6b0dd17f 100644
--- a/libsylph/account.c
+++ b/libsylph/account.c
@@ -167,6 +167,19 @@ PrefsAccount *account_find_from_item(FolderItem *item)
g_return_val_if_fail(item != NULL, NULL);
+ ac = account_find_from_item_property(item);
+ if (!ac)
+ ac = item->folder->account;
+
+ return ac;
+}
+
+PrefsAccount *account_find_from_item_property(FolderItem *item)
+{
+ PrefsAccount *ac;
+
+ g_return_val_if_fail(item != NULL, NULL);
+
ac = item->account;
if (!ac) {
FolderItem *cur_item = item->parent;
@@ -178,8 +191,6 @@ PrefsAccount *account_find_from_item(FolderItem *item)
cur_item = cur_item->parent;
}
}
- if (!ac)
- ac = item->folder->account;
return ac;
}