From 4e42a6a689f3386710eb4917092b84d2873f2b2a Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 30 Apr 2014 12:35:25 -0400 Subject: [PATCH] Don't limit Sieve script to 8KB Fixes #2745 --- NEWS | 1 + SoObjects/SOGo/SOGoSieveManager.m | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 1157416cb..8d107e15d 100644 --- a/NEWS +++ b/NEWS @@ -21,6 +21,7 @@ Bug fixes - fixed incorrect XML data conversion with ActiveSync (#2695) - fixed display of events having a category with HTML entities (#2703) - fixed display of images in CSS background (#2437) + - fixed limitation of Sieve script size (#2745) 2.2.3 (2014-04-03) ------------------ diff --git a/SoObjects/SOGo/SOGoSieveManager.m b/SoObjects/SOGo/SOGoSieveManager.m index 3254e70ce..7c335109f 100644 --- a/SoObjects/SOGo/SOGoSieveManager.m +++ b/SoObjects/SOGo/SOGoSieveManager.m @@ -584,7 +584,7 @@ static NSString *sieveScriptName = @"sogo"; int count, max; NSDictionary *currentScript; - sieveScript = [NSMutableString stringWithCapacity: 8192]; + sieveScript = [NSMutableString string]; ASSIGN (requirements, newRequirements); [scriptError release];