Skip to content

Commit 7862cda

Browse files
committed
Merge to 2.2.9
2 parents 3295520 + 4c5be2f commit 7862cda

File tree

183 files changed

+7284
-925
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+7284
-925
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ SoObjects/SOGo/derived_src/
1414
Tests/*/config.py
1515
*.pyc
1616
._*
17+
Documentation/*.docbook
18+
Documentation/*.pdf

ActiveSync/NGMimeMessage+ActiveSync.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,41 @@
3333
#import <Foundation/NSEnumerator.h>
3434
#import <Foundation/NSString.h>
3535

36+
#import <NGMail/NGMailAddress.h>
37+
#import <NGMail/NGMailAddressParser.h>
38+
3639
#import <SOGo/NSString+Utilities.h>
3740

3841
@implementation NGMimeMessage (ActiveSync)
3942

4043
- (NSArray *) allRecipients
4144
{
45+
NSEnumerator *enumerator, *addressList;
4246
NSMutableArray *recipients;
43-
NSEnumerator *enumerator;
47+
NGMailAddressParser *parser;
48+
NGMailAddress *address;
4449
NSString *s;
4550

4651
recipients = [NSMutableArray array];
4752

4853
enumerator = [[self headersForKey: @"to"] objectEnumerator];
4954
while ((s = [enumerator nextObject]))
5055
{
51-
[recipients addObject: [s pureEMailAddress]];
56+
parser = [NGMailAddressParser mailAddressParserWithString: s];
57+
addressList = [[parser parseAddressList] objectEnumerator];
58+
59+
while ((address = [addressList nextObject]))
60+
[recipients addObject: [address address]];
5261
}
5362

5463
enumerator = [[self headersForKey: @"cc"] objectEnumerator];
5564
while ((s = [enumerator nextObject]))
5665
{
57-
[recipients addObject: [s pureEMailAddress]];
66+
parser = [NGMailAddressParser mailAddressParserWithString: s];
67+
addressList = [[parser parseAddressList] objectEnumerator];
68+
69+
while ((address = [addressList nextObject]))
70+
[recipients addObject: [address address]];
5871
}
5972

6073
return recipients;

ActiveSync/NSString+ActiveSync.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) context
6363

6464
s = [self stringByEscapingHTMLString];
6565

66-
return [[s componentsSeparatedByCharactersInSet: [self safeCharacterSet]]
67-
componentsJoinedByString: @""];
66+
return [s safeString];
6867
}
6968

7069
- (int) activeSyncFolderType

ActiveSync/iCalEvent+ActiveSync.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) context
236236
{
237237
iCalAlarm *alarm;
238238

239-
alarm = [[self alarms] objectAtIndex: 0];
239+
alarm = [self firstDisplayOrAudioAlarm];
240240
[s appendString: [alarm activeSyncRepresentationInContext: context]];
241241
}
242242

0 commit comments

Comments
 (0)