we need to create the rules hash regardles of the server reply; this fixes the broken...
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 22 Oct 2011 16:46:03 +0000 (18:46 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 22 Oct 2011 16:48:27 +0000 (18:48 +0200)
webcit/sieve.c

index f4fc58925b926d100ecfe67382aeaf396da1fbb3..1d55abbdd795c8302cd06c502f159e2af3f1da15 100644 (file)
@@ -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"))