From 31722d6d85cce1d49011ed564e03e0f41406f5f2 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 21 May 2008 16:46:12 +0000 Subject: [PATCH] Monotone-Parent: a8d781a46deaa766f17c0fabd10cb677779feb60 Monotone-Revision: cbd05d470bee2e063abb94750478a7df2245b44b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-05-21T16:46:12 Monotone-Branch: ca.inverse.sogo --- UI/MailerUI/UIxMailFolderActions.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/MailerUI/UIxMailFolderActions.m b/UI/MailerUI/UIxMailFolderActions.m index bb28e284b..86ccd74f5 100644 --- a/UI/MailerUI/UIxMailFolderActions.m +++ b/UI/MailerUI/UIxMailFolderActions.m @@ -152,7 +152,7 @@ - (WOResponse *) deleteFolderAction { - SOGoMailFolder *co; + SOGoMailFolder *co, *inbox; WOResponse *response; NGImap4Connection *connection; NSException *error; @@ -164,6 +164,8 @@ destURL = [self _trashedURLOfFolder: srcURL withCO: co]; connection = [co imap4Connection]; + inbox = [[co mailAccountFolder] inboxFolderInContext: context]; + [[connection client] select: [inbox absoluteImap4Name]]; error = [connection moveMailboxAtURL: srcURL toURL: destURL]; if (error)