mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
Monotone-Parent: 1843555e1b5617636c917fa3dd563118b70c3466
Monotone-Revision: 6eb78390d5d8006fecea14d76f2a9f45279dc2fc Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-30T20:12:53 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -210,4 +210,43 @@
|
||||
return response;
|
||||
}
|
||||
|
||||
#warning here should be done what should be done: IMAP subscription
|
||||
- (WOResponse *) _subscriptionStubAction
|
||||
{
|
||||
NSString *mailInvitationParam, *mailInvitationURL;
|
||||
WOResponse *response;
|
||||
SOGoMailFolder *clientObject;
|
||||
|
||||
response = [context response];
|
||||
mailInvitationParam
|
||||
= [[context request] formValueForKey: @"mail-invitation"];
|
||||
if ([mailInvitationParam boolValue])
|
||||
{
|
||||
clientObject = [self clientObject];
|
||||
mailInvitationURL
|
||||
= [[clientObject soURLToBaseContainerForCurrentUser]
|
||||
absoluteString];
|
||||
[response setStatus: 302];
|
||||
[response setHeader: mailInvitationURL
|
||||
forKey: @"location"];
|
||||
}
|
||||
else
|
||||
{
|
||||
[response setStatus: 403];
|
||||
[response appendContentString: @"How did you end up here?"];
|
||||
}
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
- (WOResponse *) subscribeAction
|
||||
{
|
||||
return [self _subscriptionStubAction];
|
||||
}
|
||||
|
||||
- (WOResponse *) unsubscribeAction
|
||||
{
|
||||
return [self _subscriptionStubAction];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user