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.11~404 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=6696dbf3a066d2c9c8dc7c15bb248020656149f5;hp=192056a6112602350c1f8a73eae2e134a31c7ba2;p=citadel.git 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 f4fc58925..1d55abbdd 100644 --- a/webcit/sieve.c +++ b/webcit/sieve.c @@ -1530,14 +1530,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"))