mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 07:47:12 +00:00
SoObjects/Appointments/GNUmakefile
Monotone-Parent: 18c8420c0a0c752ea4dd761f934a473b321568f8 Monotone-Revision: b2699a981cd5458fbd1da1a9a72992020a29a4fc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-12-14T21:20:13 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
87dd80e801
commit
dc40718409
51 files changed
+1420
-969
No files matched your search
@@ -50,13 +50,14 @@
|
||||
Note: we cannot use acquisition to find the nearest drafts folder, because
|
||||
the IMAP4 server might contains an own Drafts folder.
|
||||
*/
|
||||
SOGoDraftsFolder *drafts;
|
||||
id client;
|
||||
// SOGoDraftsFolder *drafts;
|
||||
SOGoMailAccount *accountFolder;
|
||||
|
||||
client = [self clientObject];
|
||||
drafts = [[client mailAccountFolder]
|
||||
lookupName:@"Drafts" inContext:[self context] acquire:NO];
|
||||
return drafts;
|
||||
accountFolder = [[self clientObject] mailAccountFolder];
|
||||
|
||||
return [accountFolder
|
||||
lookupName: [accountFolder draftsFolderNameInContext: context]
|
||||
inContext: context acquire: NO];
|
||||
}
|
||||
|
||||
/* errors */
|
||||
@@ -93,7 +94,7 @@
|
||||
returnValue = drafts;
|
||||
else
|
||||
{
|
||||
urlBase = [drafts newObjectBaseURLInContext: [self context]];
|
||||
urlBase = [drafts newObjectBaseURLInContext: context];
|
||||
if ([urlBase isNotNull])
|
||||
{
|
||||
urlParams = [NSMutableDictionary new];
|
||||
@@ -119,7 +120,7 @@
|
||||
|
||||
[self debugWithFormat:@"compose on %@: %@", drafts, url];
|
||||
|
||||
r = [[self context] response];
|
||||
r = [context response];
|
||||
[r setStatus: 302 /* move d */];
|
||||
[r setHeader: url forKey: @"location"];
|
||||
[self reset];
|
||||
@@ -147,7 +148,7 @@
|
||||
if ([drafts isKindOfClass:[NSException class]])
|
||||
return drafts;
|
||||
|
||||
return [drafts newObjectInContext:[self context]];
|
||||
return [drafts newObjectInContext:context];
|
||||
}
|
||||
|
||||
- (NSException *)_setupNewDraft {
|
||||
@@ -178,14 +179,14 @@
|
||||
return nil;
|
||||
}
|
||||
|
||||
url = [self->newDraft baseURLInContext:[self context]];
|
||||
url = [self->newDraft baseURLInContext:context];
|
||||
if (![url hasSuffix:@"/"]) url = [url stringByAppendingString:@"/"];
|
||||
url = [url stringByAppendingString:@"edit"];
|
||||
|
||||
// TODO: debug log
|
||||
[self logWithFormat:@"compose on %@", url];
|
||||
|
||||
r = [[self context] response];
|
||||
r = [context response];
|
||||
[r setStatus:302 /* moved */];
|
||||
[r setHeader:url forKey:@"location"];
|
||||
[self reset];
|
||||
|
||||
Reference in new issue
Block a user