~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
  • Date: 2010-06-29 09:21:32 UTC
  • mfrom: (4.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20100629092132-q4pr5lfuvmjqou19
Tags: 1:1.2.12-1ubuntu1
* Merge from Debian Unstable, remaining changes:
  + Add mail-stack-delivery as 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.*
  + Use Snakeoil SSL certificates by default.
    - debian/control: Depend on ssl-cert.
    - debian/patches/ssl-cert-snakeoil.dpatch: Change default SSL cert paths to snakeoil.
    - debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - Created debian/dovecot-common.ufw.profile.
    - debian/rules: install profile.
    - debian/control: suggest ufw.
  + debian/{control,rules}: enable PIE hardening.
  + debian/control: Update Vcs-* headers.
  + Add SMTP-AUTH support for Outlook (login auth mechanism) 
  + debian/dovecot-common.dirs: Added usr/share/doc/dovecot-common
  + debian/patches/fix-dovecot-config-parser.patch: Fix ordering of external config 
    files. (LP: #597818)

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