mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-26 05:45:24 +00:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user