Monotone-Parent: 2a7c6d44bdaf39eb5e6f5274e9d7209f11a3e563

Monotone-Revision: b015c73d47df799fb1f9dc241b015ec5b2153d4b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-09-26T15:23:36
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-09-26 15:23:36 +00:00
parent 44180e6828
commit 9a50d18d15
2 changed files with 20 additions and 4 deletions
+16 -4
View File
@@ -319,6 +319,7 @@ typedef void (*getMessageData_inMemCtx_) (MAPIStoreMessage *, SEL,
NSDictionary *recipients, *identity;
NSMutableDictionary *newHeaders;
NSString *recId, *body;
NSMutableString *subject;
NSUInteger count, max;
WOContext *woContext;
id value;
@@ -353,12 +354,23 @@ e)
0 (NSIntNumber) */
/* save the subject */
value = [newProperties
objectForKey: MAPIPropertyKey (PR_NORMALIZED_SUBJECT_UNICODE)];
if (!value)
subject = [NSMutableString stringWithCapacity: 128];
value = [newProperties objectForKey: MAPIPropertyKey (PR_SUBJECT_UNICODE)];
if (value)
[newHeaders setObject: value forKey: @"subject"];
[subject appendString: value];
else
{
value = [newProperties
objectForKey: MAPIPropertyKey (PR_SUBJECT_PREFIX_UNICODE)];
if (value)
[subject appendString: value];
value = [newProperties
objectForKey: MAPIPropertyKey (PR_NORMALIZED_SUBJECT_UNICODE)];
if (value)
[subject appendString: value];
}
if (subject)
[newHeaders setObject: subject forKey: @"subject"];
/* generate a valid from */
woContext = [[self context] woContext];