From a86fc629f6c05556bfc17c62fc3d4f9b487bb6c5 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 30 Jan 2006 06:44:20 +0000 Subject: 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 --- src/compose.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/compose.c') 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); -- cgit v1.2.3