propagate from branch 'ca.inverse.sogo.1_3_14' (head 20fe3869b4c2b451d086944d0be00758c4b807f0)

to branch 'ca.inverse.sogo' (head 0917b3278898caa0cb56a12a960275816f5ab396)

Monotone-Parent: 0917b3278898caa0cb56a12a960275816f5ab396
Monotone-Parent: 20fe3869b4c2b451d086944d0be00758c4b807f0
Monotone-Revision: 73343e195be838a68cfbeb8edc978d8273b1e6da

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-03-20T20:29:39
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-03-20 20:29:39 +00:00
4 changed files with 33 additions and 9 deletions

View File

@@ -1,3 +1,9 @@
2012-03-20 Francis Lachapelle <flachapelle@inverse.ca>
* SoObjects/Mailer/SOGoMailObject+Draft.m
(_contentForEditingFromKeys:): prefer the HTML part over the text
part when composing HTML messages.
2012-03-20 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreCalendarMessage.m

View File

@@ -101,7 +101,9 @@
- (void) setMethod: (NSString *) _value
{
[[self uniqueChildWithTag: @"method"] setSingleValue: _value forKey: @""];
[[self uniqueChildWithTag: @"method"]
setSingleValue: [_value uppercaseString]
forKey: @""];
}
- (NSString *) method

View File

@@ -98,22 +98,38 @@
NSArray *types;
NSDictionary *parts;
NSString *rawPart, *content, *contentKey;
SOGoUserDefaults *ud;
int index;
BOOL htmlContent;
BOOL htmlComposition, htmlContent;
content = @"";
if ([keys count])
{
ud = [[context activeUser] userDefaults];
htmlComposition = [[ud mailComposeMessageType] isEqualToString: @"html"];
htmlContent = NO;
types = [keys objectsForKey: @"mimeType" notFoundMarker: @""];
index = [types indexOfObject: @"text/plain"];
if (index == NSNotFound)
if (htmlComposition)
{
// Prefer HTML content
index = [types indexOfObject: @"text/html"];
htmlContent = YES;
if (index == NSNotFound)
index = [types indexOfObject: @"text/plain"];
else
htmlContent = YES;
}
else
htmlContent = NO;
{
// Prefer text content
index = [types indexOfObject: @"text/plain"];
if (index == NSNotFound)
{
index = [types indexOfObject: @"text/html"];
htmlContent = YES;
}
}
if (index != NSNotFound)
{

View File

@@ -2,6 +2,6 @@
# This file is included by library makefiles to set the version information
# of the executable.
MAJOR_VERSION=2
MINOR_VERSION=0
SUBMINOR_VERSION=0
MAJOR_VERSION=1
MINOR_VERSION=3
SUBMINOR_VERSION=14