Monotone-Parent: c85409f639b55299e3ece362140e6725f6c43cbb
Monotone-Revision: 660b741557d301814eebace414a974e674f53a7b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-08-17T02:33:44 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
c0990b7775
commit
1b058db2b2
11
ChangeLog
11
ChangeLog
|
@ -1,5 +1,16 @@
|
||||||
2007-08-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2007-08-16 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* UI/MailerUI/UIxMailFolderActions.m ([UIxMailFolderActions
|
||||||
|
-expungeAction]): new method replacing the one previously found in
|
||||||
|
UIxMailListView.
|
||||||
|
([UIxMailFolderActions -createFolderAction])
|
||||||
|
([UIxMailFolderActions -renameFolderAction])
|
||||||
|
([UIxMailFolderActions -deleteFolderAction])
|
||||||
|
([UIxMailFolderActions -emptyTrashAction])
|
||||||
|
([UIxMailFolderActions -subscribeAction])
|
||||||
|
([UIxMailFolderActions -unsubscribeAction]): error situations
|
||||||
|
should have http return code 500 instead of 403.
|
||||||
|
|
||||||
* UI/MailerUI/UIxMailAccountActions.m ([UIxMailAccountActions
|
* UI/MailerUI/UIxMailAccountActions.m ([UIxMailAccountActions
|
||||||
-composeAction]): new method replacing the one previously in
|
-composeAction]): new method replacing the one previously in
|
||||||
UIxMailMainFrame.
|
UIxMailMainFrame.
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
error = [connection createMailbox: folderName atURL: [co imap4URL]];
|
error = [connection createMailbox: folderName atURL: [co imap4URL]];
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"Unable to create folder."];
|
[response appendContentString: @"Unable to create folder."];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"Missing 'name' parameter."];
|
[response appendContentString: @"Missing 'name' parameter."];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@
|
||||||
toURL: destURL];
|
toURL: destURL];
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"Unable to rename folder."];
|
[response appendContentString: @"Unable to rename folder."];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -120,7 +120,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"Missing 'name' parameter."];
|
[response appendContentString: @"Missing 'name' parameter."];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
toURL: destURL];
|
toURL: destURL];
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"Unable to move folder."];
|
[response appendContentString: @"Unable to move folder."];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -173,6 +173,30 @@
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (WOResponse *) expungeAction
|
||||||
|
{
|
||||||
|
NSException *error;
|
||||||
|
SOGoTrashFolder *co;
|
||||||
|
WOResponse *response;
|
||||||
|
|
||||||
|
co = [self clientObject];
|
||||||
|
response = [context response];
|
||||||
|
|
||||||
|
error = [co expunge];
|
||||||
|
if (error)
|
||||||
|
{
|
||||||
|
[response setStatus: 500];
|
||||||
|
[response appendContentString: @"Unable to expunge folder."];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[co flushMailCaches];
|
||||||
|
[response setStatus: 204];
|
||||||
|
}
|
||||||
|
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
- (WOResponse *) emptyTrashAction
|
- (WOResponse *) emptyTrashAction
|
||||||
{
|
{
|
||||||
NSException *error;
|
NSException *error;
|
||||||
|
@ -202,7 +226,7 @@
|
||||||
}
|
}
|
||||||
if (error)
|
if (error)
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"Unable to empty the trash folder."];
|
[response appendContentString: @"Unable to empty the trash folder."];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -233,7 +257,7 @@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
[response setStatus: 403];
|
[response setStatus: 500];
|
||||||
[response appendContentString: @"How did you end up here?"];
|
[response appendContentString: @"How did you end up here?"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue