From 68d6ac2aeb2c46dfca9ce85351780c6136e0cc84 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sat, 22 Oct 2011 18:46:03 +0200 Subject: [PATCH] we need to create the rules hash regardles of the server reply; this fixes the broken sieve rules editor. --- webcit/sieve.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webcit/sieve.c b/webcit/sieve.c index d78c1490d..8cf76e459 100644 --- a/webcit/sieve.c +++ b/webcit/sieve.c @@ -1528,14 +1528,13 @@ HashList *GetSieveRules(StrBuf *Target, WCTemplputParams *TP) int Done = 0; SieveRule *Rule; + SieveRules = NewHash(1, Flathash); serv_printf("MSIV getscript|"RULES_SCRIPT); Line = NewStrBuf(); EncodedRule = NewStrBuf(); StrBuf_ServGetln(Line); if (GetServerStatus(Line, NULL) == 1) { - SieveRules = NewHash(1, Flathash); - while(!Done && (StrBuf_ServGetln(Line) >= 0) ) if ( (StrLength(Line)==3) && !strcmp(ChrPtr(Line), "000")) -- 2.30.2