mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 21:53:19 +00:00
See ChangeLog
Monotone-Parent: 73de56ded7f5b5ba79857c706ecef4d70ac3113b Monotone-Revision: 5c6353cb6270d51a457d46a8fe98dadae4f37193 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-07-07T13:58:50 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -229,9 +229,11 @@
|
||||
- (WOResponse *) batchDeleteAction
|
||||
{
|
||||
SOGoMailFolder *co;
|
||||
SOGoMailAccount *account;
|
||||
WOResponse *response;
|
||||
NSArray *uids;
|
||||
NSString *value;
|
||||
NSDictionary *data;
|
||||
BOOL withoutTrash;
|
||||
|
||||
co = [self clientObject];
|
||||
@@ -244,7 +246,12 @@
|
||||
uids = [value componentsSeparatedByString: @","];
|
||||
response = (WOResponse *) [co deleteUIDs: uids useTrashFolder: !withoutTrash inContext: context];
|
||||
if (!response)
|
||||
response = [self responseWith204];
|
||||
{
|
||||
account = [co mailAccountFolder];
|
||||
data = [NSDictionary dictionaryWithObjectsAndKeys: [account getInboxQuota], @"quotas", nil];
|
||||
response = [self responseWithStatus: 200
|
||||
andString: [data jsonRepresentation]];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -520,6 +527,8 @@
|
||||
if (!error)
|
||||
{
|
||||
[co flushMailCaches];
|
||||
|
||||
// Delete folders within the trash
|
||||
connection = [co imap4Connection];
|
||||
subfolders = [[co allFolderURLs] objectEnumerator];
|
||||
while ((currentURL = [subfolders nextObject]))
|
||||
@@ -585,6 +594,7 @@
|
||||
EOQualifier *searchQualifier;
|
||||
NSArray *searchResult;
|
||||
NSDictionary *imapResult;
|
||||
// NSMutableDictionary *data;
|
||||
NGImap4Connection *connection;
|
||||
NGImap4Client *client;
|
||||
int unseen;
|
||||
@@ -606,7 +616,7 @@
|
||||
}
|
||||
else
|
||||
unseen = 0;
|
||||
|
||||
|
||||
return [NSDictionary
|
||||
dictionaryWithObject: [NSNumber numberWithInt: unseen]
|
||||
forKey: @"unseen"];
|
||||
|
||||
Reference in New Issue
Block a user