mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-06 22:08:51 +00:00
Monotone-Parent: 38a3270c68b7a55a50c94569d54d172e37841eba
Monotone-Revision: 385b1ef1c54f07a7e75a0de0fdf1149cd54755b8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-06T16:45:34 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -799,6 +799,39 @@ sogo_op_set_restrictions (void *private_data, uint64_t fid, uint8_t type,
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int
|
||||
sogo_op_set_sort_order (void *private_data, uint64_t fid, uint8_t type,
|
||||
struct SSortOrderSet *set, uint8_t *tableStatus)
|
||||
{
|
||||
NSAutoreleasePool *pool;
|
||||
sogo_context *cContext;
|
||||
MAPIStoreContext *context;
|
||||
int rc;
|
||||
|
||||
DEBUG (5, ("[SOGo: %s:%d]\n", __FUNCTION__, __LINE__));
|
||||
|
||||
pool = [NSAutoreleasePool new];
|
||||
|
||||
cContext = private_data;
|
||||
context = cContext->objcContext;
|
||||
if (context)
|
||||
{
|
||||
[context setupRequest];
|
||||
rc = [context setSortOrder: set
|
||||
withFID: fid andTableType: type
|
||||
getTableStatus: tableStatus];
|
||||
[context tearDownRequest];
|
||||
[pool release];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog (@" UNEXPECTED WEIRDNESS: RECEIVED NO CONTEXT");
|
||||
rc = MAPI_E_NOT_FOUND;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
\details Entry point for mapistore SOGO backend
|
||||
|
||||
@@ -839,6 +872,7 @@ int mapistore_init_backend(void)
|
||||
backend.op_get_table_property = sogo_op_get_table_property;
|
||||
backend.op_get_folders_list = sogo_op_get_folders_list;
|
||||
backend.op_set_restrictions = sogo_op_set_restrictions;
|
||||
backend.op_set_sort_order = sogo_op_set_sort_order;
|
||||
backend.op_openmessage = sogo_op_openmessage;
|
||||
backend.op_createmessage = sogo_op_createmessage;
|
||||
backend.op_modifyrecipients = sogo_op_modifyrecipients;
|
||||
|
||||
Reference in New Issue
Block a user