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:46:03 +0000 (18:46 +0200)
webcit/sieve.c

index d78c1490d6bfb9af86420a86ba41c8365598261c..8cf76e459a2b6fc85f7f2cd5a080aa9214e31c2e 100644 (file)
@@ -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"))