Fix unseen count of folders beginning with a digit

Fixes #2652
pull/26/head
Francis Lachapelle 2014-03-13 08:41:42 -04:00
parent c8550c8a4a
commit bd577fd513
3 changed files with 5 additions and 1 deletions

1
NEWS
View File

@ -5,6 +5,7 @@ Bug fixes
- fixed possible exception when retrieving the default event reminder value on 64bit architectures (#2647, #2648)
- disable file paste support in mail editor (#2641)
- fixed copying/moving messages to a mail folder begining with a digit (#2658)
- fixed unseen count for folders beginning with a digit and used in Sieve filters (#2652)
2.2.1 (2014-03-07)
------------------

View File

@ -41,6 +41,7 @@
#import <Mailer/SOGoTrashFolder.h>
#import <SOGo/NSObject+Utilities.h>
#import <SOGo/NSString+Utilities.h>
#import <SOGo/SOGoDomainDefaults.h>
#import <SOGo/SOGoUser.h>
#import <SOGo/SOGoUserDefaults.h>

View File

@ -640,6 +640,7 @@
NSDictionary *d, *action;
NSMutableArray *folders;
NSMutableString *path;
NSString *component;
SOGoUserDefaults *ud;
NSString *s;
NSUInteger i, j, k;
@ -676,7 +677,8 @@
for (k = 0; k < [pathComponents count]; k++)
{
[path appendFormat: @"folder%@", [[pathComponents objectAtIndex: k] asCSSIdentifier]];
component = [NSString stringWithFormat: @"folder%@", [pathComponents objectAtIndex: k]];
[path appendString: [component asCSSIdentifier]];
if (k < [pathComponents count] - 1)
[path appendString: @"/"];
}