From: Wilfried Goesgens Date: Sat, 22 Oct 2011 16:46:03 +0000 (+0200) Subject: we need to create the rules hash regardles of the server reply; this fixes the broken... X-Git-Tag: v8.02~22 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=68d6ac2aeb2c46dfca9ce85351780c6136e0cc84;hp=319b95602ce2728a0a1ececc470fdac1396fdd8a we need to create the rules hash regardles of the server reply; this fixes the broken sieve rules editor. --- 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"))