~ubuntu-branches/ubuntu/quantal/dovecot/quantal

« back to all changes in this revision

Viewing changes to sieve/src/lib-sieve/tst-not.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short, Scott Kitterman
  • Date: 2010-06-22 10:33:51 UTC
  • mfrom: (1.13.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100622103351-ifbmnklp8kxrhb30
Tags: 1:1.2.12-0ubuntu1
* New upstream release:
  - deliver: Don't crash when a message with Auto-submitted: header gets
   rejected.
  - lib-storage: Fixed header searches to work correctly when there are
    multiple headers with same name.
  - dict client: Disconnect from dict server after 1 second of idling.
  - dict: If process crashed, it wasn't automatically restarted
  - dict file: If dict file's group permissions equal world permissions,
    don't try to change its gid.
  - maildir: Fixed a memory leak when copying with hardlinks.
  - maildir: Expunging last messages may have assert-crashed if their
    filenames had just changed.
 * Update sieve patch to 0.1.17
 * debian/dovecot-common.postinst: Add warning about expired certificate.
   (Debian Bug: #576455)
 * Silence lintian warnings.

 [Scott Kitterman]
 * Rename dovecot-postfix to mail-stack-delivery per server-maverick-mail-
   integration spec.
   - Update debian/rules
   - Convert existing package to a dummy package and add new binary in debian/control
   - Update maintainer scripts.
   - Move previously installed backups and config files to new package name
     space in preinst
   - Add new debian/mail-stack-delivery.prerm to handle downgrades
   - Rename debian/dovecot-postfix.* to debian/mail-stack-delivery.*

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include "sieve-validator.h"
7
7
#include "sieve-generator.h"
8
8
 
9
 
/*
10
 
 * Not test
 
9
/* 
 
10
 * Not test 
11
11
 *
12
12
 * Syntax:
13
 
 *   not <tests: test-list>
 
13
 *   not <tests: test-list>   
14
14
 */
15
15
 
16
16
static bool tst_not_generate
17
17
        (const struct sieve_codegen_env *cgenv, struct sieve_command *ctx,
18
18
                struct sieve_jumplist *jumps, bool jump_true);
19
19
 
20
 
const struct sieve_command_def tst_not = {
21
 
        "not",
22
 
        SCT_TEST,
 
20
const struct sieve_command_def tst_not = { 
 
21
        "not", 
 
22
        SCT_TEST, 
23
23
        0, 1, FALSE, FALSE,
24
 
        NULL, NULL, NULL, NULL,
25
 
        tst_not_generate
 
24
        NULL, NULL, NULL, NULL, 
 
25
        tst_not_generate 
26
26
};
27
27
 
28
 
/*
29
 
 * Code generation
 
28
/* 
 
29
 * Code generation 
30
30
 */
31
31
 
32
32
static bool tst_not_generate
34
34
        struct sieve_jumplist *jumps, bool jump_true)
35
35
{
36
36
        struct sieve_ast_node *test;
37
 
 
 
37
        
38
38
        /* Validator verified the existance of the single test already */
39
 
        test = sieve_ast_test_first(ctx->ast_node);
40
 
 
 
39
        test = sieve_ast_test_first(ctx->ast_node); 
 
40
        
41
41
        return sieve_generate_test(cgenv, test, jumps, !jump_true);
42
42
}
43
43