Monotone-Parent: f5f389f6d7ade504ec1c341fe7ef6097e3900ec6
Monotone-Revision: 283b38ddff29574db2599411b54c62d3643b3b5a Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-04T15:45:52 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
27733fa86b
commit
3a2ed5bb43
|
@ -4,6 +4,7 @@
|
||||||
overriden method.
|
overriden method.
|
||||||
Made module able to handle SOGoMailObject as well, since we can
|
Made module able to handle SOGoMailObject as well, since we can
|
||||||
possibly have such objects as value for sogoObject.
|
possibly have such objects as value for sogoObject.
|
||||||
|
(-getPrImportance:inMemCtx:): overriden method.
|
||||||
|
|
||||||
* OpenChange/MAPIApplication.m (+isCachingEnabled): new overriden
|
* OpenChange/MAPIApplication.m (+isCachingEnabled): new overriden
|
||||||
method that returns "NO" in order to avoid leaking dictionaries
|
method that returns "NO" in order to avoid leaking dictionaries
|
||||||
|
|
|
@ -146,6 +146,35 @@ typedef void (*getMessageData_inMemCtx_) (MAPIStoreMessage *, SEL,
|
||||||
[super getMessageData: dataPtr inMemCtx: memCtx];
|
[super getMessageData: dataPtr inMemCtx: memCtx];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (int) getPrImportance: (void **) data
|
||||||
|
inMemCtx: (TALLOC_CTX *) memCtx
|
||||||
|
{
|
||||||
|
uint32_t v;
|
||||||
|
NSString *s;
|
||||||
|
|
||||||
|
if ([sogoObject isKindOfClass: SOGoDraftObjectK])
|
||||||
|
{
|
||||||
|
if (!headerSetup)
|
||||||
|
{
|
||||||
|
[sogoObject fetchInfo];
|
||||||
|
headerSetup = YES;
|
||||||
|
}
|
||||||
|
s = [[sogoObject headers] objectForKey: @"X-Priority"];
|
||||||
|
v = 0x1;
|
||||||
|
|
||||||
|
if ([s hasPrefix: @"1"]) v = 0x2;
|
||||||
|
else if ([s hasPrefix: @"2"]) v = 0x2;
|
||||||
|
else if ([s hasPrefix: @"4"]) v = 0x0;
|
||||||
|
else if ([s hasPrefix: @"5"]) v = 0x0;
|
||||||
|
|
||||||
|
*data = MAPILongValue (memCtx, v);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
[super getPrImportance: data inMemCtx: memCtx];
|
||||||
|
|
||||||
|
return MAPISTORE_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
- (int) getPrMessageFlags: (void **) data
|
- (int) getPrMessageFlags: (void **) data
|
||||||
inMemCtx: (TALLOC_CTX *) memCtx
|
inMemCtx: (TALLOC_CTX *) memCtx
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,6 +50,8 @@
|
||||||
|
|
||||||
- (int) getPrMessageFlags: (void **) data
|
- (int) getPrMessageFlags: (void **) data
|
||||||
inMemCtx: (TALLOC_CTX *) memCtx;
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
||||||
|
- (int) getPrImportance: (void **) data
|
||||||
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue