remove the duplicate for 'allheaders'
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 27 Nov 2011 13:13:59 +0000 (14:13 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 27 Nov 2011 13:13:59 +0000 (14:13 +0100)
  - once via 'setheaders'
  - once via calback fetched by them

this fixes a memory leak.

citadel/modules/sieve/serv_sieve.c

index 48a574423ee3f94fa628abd4c20a0bfd35a2c029..015ccdc8ba79c4400612ecb821620332134affb4 100644 (file)
@@ -635,8 +635,6 @@ void sieve_do_msg(long msgnum, void *userdata) {
        }
 
        CtdlFreeMessage(msg);
-
-       sieve2_setvalue_string(sieve2_context, "allheaders", my.rfc822headers);
        
        syslog(LOG_DEBUG, "Calling sieve2_execute()\n");
        res = sieve2_execute(sieve2_context, &my);