mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
Monotone-Parent: 0b736cc980075f71e643c2c71341dee25f434fb9
Monotone-Revision: a1a4f8e01241e22f0964fc0320be28504ae6e68b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-09-06T18:29:08 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2012-09-06 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreMailContext.m
|
||||
(+listContextsForUser:withTDBIndexing:inMemCtx:): we escape the
|
||||
url string of non-ascii folder names.
|
||||
|
||||
* OpenChange/MAPIStoreMailVolatileMessage.m
|
||||
(FillMessageHeadersFromProperties): build a recipient list for the
|
||||
"from" field from the list stored in the value for "orig" in the
|
||||
|
||||
@@ -210,12 +210,12 @@ static Class NSArrayK;
|
||||
- (int) getPidTagMessageClass: (void **) data
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
SOGoUser *owner;
|
||||
// SOGoUser *owner;
|
||||
|
||||
owner = [[self userContext] sogoUser];
|
||||
if ([masterEvent userAsAttendee: owner])
|
||||
*data = talloc_strdup (memCtx, "IPM.Schedule.Meeting.Request");
|
||||
else
|
||||
// owner = [[self userContext] sogoUser];
|
||||
// if ([masterEvent userAsAttendee: owner])
|
||||
// *data = talloc_strdup (memCtx, "IPM.Schedule.Meeting.Request");
|
||||
// else
|
||||
*data = talloc_strdup (memCtx, "IPM.Appointment");
|
||||
|
||||
return MAPISTORE_SUCCESS;
|
||||
|
||||
@@ -130,7 +130,7 @@ MakeDisplayFolderName (NSString *folderName)
|
||||
{
|
||||
context = talloc_zero (memCtx, struct mapistore_contexts_list);
|
||||
stringData = [NSString stringWithFormat: @"%@%@", urlBase,
|
||||
folderName[count]];
|
||||
[folderName[count] stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]];
|
||||
context->url = [stringData asUnicodeInMemCtx: context];
|
||||
/* remove "folder" prefix */
|
||||
stringData = MakeDisplayFolderName (folderName[count]);
|
||||
@@ -153,7 +153,8 @@ MakeDisplayFolderName (NSString *folderName)
|
||||
{
|
||||
context = talloc_zero (memCtx, struct mapistore_contexts_list);
|
||||
currentName = [secondaryFolders objectAtIndex: count];
|
||||
stringData = [NSString stringWithFormat: @"%@%@", urlBase, currentName];
|
||||
stringData = [NSString stringWithFormat: @"%@%@",
|
||||
urlBase, [currentName stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]];
|
||||
context->url = [stringData asUnicodeInMemCtx: context];
|
||||
stringData = [[currentName substringFromIndex: 6] fromCSSIdentifier];
|
||||
context->name = [stringData asUnicodeInMemCtx: context];
|
||||
|
||||
Reference in New Issue
Block a user