From f9dac5dbcf34467cd64e32582970de708313ded3 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 19 Feb 2010 14:51:07 +0000 Subject: [PATCH] Monotone-Parent: d632e0788f55ab87c5f5dbc3b204b2ff4ebc496f Monotone-Revision: 97ed1f333beb4dc0828de12b26527d124123d5d1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-02-19T14:51:07 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/MailerUI/UIxMailFolderActions.m | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a67078b15..e34bd7431 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2010-02-19 Wolfgang Sourdeau + * UI/MailerUI/UIxMailFolderActions.m (-createFolderAction): we + check if the clientObject responds to "aboluteImap4Name", + otherwise the subscription is made to the folderName alone. + * Main/SOGo.m (-run): moved initialization logs from +initialize here, so that they are output to the redirected output stream. Added version number to "starting" line. diff --git a/UI/MailerUI/UIxMailFolderActions.m b/UI/MailerUI/UIxMailFolderActions.m index 6e63b3668..30bb6308c 100644 --- a/UI/MailerUI/UIxMailFolderActions.m +++ b/UI/MailerUI/UIxMailFolderActions.m @@ -68,8 +68,11 @@ } else { - path = [NSString stringWithFormat: @"%@%@", - [co absoluteImap4Name], folderName]; + if ([co respondsToSelector: @selector (absoluteImap4Name)]) + path = [NSString stringWithFormat: @"%@%@", + [co absoluteImap4Name], folderName]; + else + path = folderName; [[connection client] subscribe: path]; response = [self responseWith204];