From 47ab33580fe1d285edce8d7a4c1bda9317652897 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 22 Mar 2012 17:15:29 +0000 Subject: [PATCH] See ChangeLog. Monotone-Parent: 04d242cd3ae3982c5087b5bef22fc2d70632130f Monotone-Revision: 3830a1c61a69086d684b859181753bddddda2711 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-03-22T17:15:29 --- ChangeLog | 5 +++++ UI/MailerUI/UIxMailFolderActions.m | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 78221e0d3..e84ff6ad6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-03-22 Francis Lachapelle + + * UI/MailerUI/UIxMailFolderActions.m (-emptyTrashAction:): we now + unsubscribe from the folders found in the trash. + 2012-03-21 Wolfgang Sourdeau * SoObjects/SOGo/SOGoUserManager.m (_compactAndCompleteContacts:): diff --git a/UI/MailerUI/UIxMailFolderActions.m b/UI/MailerUI/UIxMailFolderActions.m index c0c5dbf7d..3f3edfc78 100644 --- a/UI/MailerUI/UIxMailFolderActions.m +++ b/UI/MailerUI/UIxMailFolderActions.m @@ -489,7 +489,10 @@ connection = [co imap4Connection]; subfolders = [[co allFolderURLs] objectEnumerator]; while ((currentURL = [subfolders nextObject])) - [connection deleteMailboxAtURL: currentURL]; + { + [[connection client] unsubscribe: [currentURL path]]; + [connection deleteMailboxAtURL: currentURL]; + } } if (error) {