Monotone-Parent: 13c390d039edb8ee59063c3d31ce0a34717725d7
Monotone-Revision: 0dce3171028377890b2c97a1af06a577c875930c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-09-28T15:05:56 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
429e214829
commit
e31f76877f
|
@ -1,5 +1,11 @@
|
||||||
2010-09-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2010-09-28 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* SoObjects/Mailer/SOGoMailFolder.m (-displayName): fixed accessor
|
||||||
|
to return the real folder name rather than the nameInContainer,
|
||||||
|
which is escaped and prefixed with "folder".
|
||||||
|
(-create): new method intented to align the operations on this
|
||||||
|
class to the ones in SOGoGCSFolder.
|
||||||
|
|
||||||
* SoObjects/Contacts/SOGoContactGCSEntry.m (-displayName): new
|
* SoObjects/Contacts/SOGoContactGCSEntry.m (-displayName): new
|
||||||
accessor.
|
accessor.
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,8 @@
|
||||||
- (void) markForExpunge;
|
- (void) markForExpunge;
|
||||||
- (void) expungeLastMarkedFolder;
|
- (void) expungeLastMarkedFolder;
|
||||||
|
|
||||||
|
- (BOOL) create;
|
||||||
|
|
||||||
- (NSException *) expunge;
|
- (NSException *) expunge;
|
||||||
|
|
||||||
/* flags */
|
/* flags */
|
||||||
|
|
|
@ -697,6 +697,25 @@ static NSString *defaultUserID = @"anyone";
|
||||||
return [[self imap4Connection] createMailbox:_name atURL:[self imap4URL]];
|
return [[self imap4Connection] createMailbox:_name atURL:[self imap4URL]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) create
|
||||||
|
{
|
||||||
|
NSException *error;
|
||||||
|
BOOL rc;
|
||||||
|
|
||||||
|
[self imap4Connection];
|
||||||
|
error = [imap4 createMailbox: [self relativeImap4Name]
|
||||||
|
atURL: [container imap4URL]];
|
||||||
|
if (error)
|
||||||
|
rc = NO;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[[imap4 client] subscribe: [self absoluteImap4Name]];
|
||||||
|
rc = YES;
|
||||||
|
}
|
||||||
|
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
- (NSException *) delete
|
- (NSException *) delete
|
||||||
{
|
{
|
||||||
return [[self imap4Connection] deleteMailboxAtURL:[self imap4URL]];
|
return [[self imap4Connection] deleteMailboxAtURL:[self imap4URL]];
|
||||||
|
@ -1140,7 +1159,7 @@ static NSString *defaultUserID = @"anyone";
|
||||||
|
|
||||||
- (NSString *) displayName
|
- (NSString *) displayName
|
||||||
{
|
{
|
||||||
return [self nameInContainer];
|
return [self relativeImap4Name];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSDictionary *) davIMAPFieldsTable
|
- (NSDictionary *) davIMAPFieldsTable
|
||||||
|
|
Loading…
Reference in a new issue