diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-30 06:44:20 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-30 06:44:20 +0000 |
commit | a86fc629f6c05556bfc17c62fc3d4f9b487bb6c5 (patch) | |
tree | e09fb59e9be44ad8dea83755a0d8096e59628df1 /src/compose.c | |
parent | 7fc7273c9b1659347e4e6eb8c3c0a2aa408ed318 (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 'src/compose.c')
-rw-r--r-- | src/compose.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compose.c b/src/compose.c index d7ca382e..78926322 100644 --- a/src/compose.c +++ b/src/compose.c @@ -761,14 +761,17 @@ void compose_reply(MsgInfo *msginfo, FolderItem *item, ComposeMode mode, if (COMPOSE_QUOTE_MODE(mode) == COMPOSE_WITH_QUOTE) quote = TRUE; - account = account_find_from_item(msginfo->folder); + account = account_find_from_item_property(msginfo->folder); if (!account && msginfo->to && prefs_common.reply_account_autosel) { gchar *to; Xstrdup_a(to, msginfo->to, return); extract_address(to); account = account_find_from_address(to); } - if (!account) account = cur_account; + if (!account && msginfo->folder->folder) + account = msginfo->folder->folder->account; + if (!account) + account = cur_account; g_return_if_fail(account != NULL); MSG_UNSET_PERM_FLAGS(msginfo->flags, MSG_FORWARDED); |