From: helge Date: Thu, 24 Mar 2005 23:02:58 +0000 (+0000) Subject: account can create subfolders (root mailboxes) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eae3b3f3a49f54ecb43abeafdff26636b424ff43;p=scalable-opengroupware.org account can create subfolders (root mailboxes) git-svn-id: http://svn.opengroupware.org/SOGo/trunk@636 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/Mailer/ChangeLog b/SOGo/SoObjects/Mailer/ChangeLog index 2b6d4bf0..90454a58 100644 --- a/SOGo/SoObjects/Mailer/ChangeLog +++ b/SOGo/SoObjects/Mailer/ChangeLog @@ -1,3 +1,8 @@ +2005-03-25 Helge Hess + + * SOGoMailAccount.m: added ability to create mailboxes at the root + (account) level (v0.9.78) + 2005-03-03 Helge Hess * SOGoMailManager.m: improved compatibility with Cocoa Foundation diff --git a/SOGo/SoObjects/Mailer/SOGoMailAccount.m b/SOGo/SoObjects/Mailer/SOGoMailAccount.m index 49924b4a..ec0707ab 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailAccount.m +++ b/SOGo/SoObjects/Mailer/SOGoMailAccount.m @@ -302,6 +302,11 @@ static BOOL useAltNamespace = NO; return YES; } +- (NSException *)davCreateCollection:(NSString *)_name inContext:(id)_ctx { + return [[self mailManager] createMailbox:_name atURL:[self imap4URL] + password:[self imap4Password]]; +} + - (NSString *)shortTitle { NSString *s, *login, *host; NSRange r; diff --git a/SOGo/SoObjects/Mailer/Version b/SOGo/SoObjects/Mailer/Version index 79481ab8..9bb14ee1 100644 --- a/SOGo/SoObjects/Mailer/Version +++ b/SOGo/SoObjects/Mailer/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=77 +SUBMINOR_VERSION:=78 # v0.9.69 requires libNGMime v4.5.210 # v0.9.55 requires libNGExtensions v4.5.136 diff --git a/SOGo/SoObjects/Mailer/product.plist b/SOGo/SoObjects/Mailer/product.plist index 5ca398aa..05085482 100644 --- a/SOGo/SoObjects/Mailer/product.plist +++ b/SOGo/SoObjects/Mailer/product.plist @@ -18,6 +18,9 @@ SOGoMailAccount = { superclass = "SOGoMailBaseObject"; + defaultRoles = { + "Add Folders" = "Owner"; + }; }; SOGoMailFolder = {