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

« back to all changes in this revision

Viewing changes to sieve/src/lib-sieve/tst-truefalse.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:
21
21
        (const struct sieve_codegen_env *cgenv, struct sieve_command *cmd,
22
22
                struct sieve_jumplist *jumps, bool jump_true);
23
23
 
24
 
const struct sieve_command_def tst_false = {
25
 
        "false",
26
 
        SCT_TEST,
 
24
const struct sieve_command_def tst_false = { 
 
25
        "false", 
 
26
        SCT_TEST, 
27
27
        0, 0, FALSE, FALSE,
28
 
        NULL, NULL, NULL, NULL,
29
 
        tst_false_generate
 
28
        NULL, NULL, NULL, NULL, 
 
29
        tst_false_generate 
30
30
};
31
31
 
32
 
const struct sieve_command_def tst_true = {
33
 
        "true",
34
 
        SCT_TEST,
 
32
const struct sieve_command_def tst_true = { 
 
33
        "true", 
 
34
        SCT_TEST, 
35
35
        0, 0, FALSE, FALSE,
36
 
        NULL, NULL, NULL, NULL,
37
 
        tst_true_generate
 
36
        NULL, NULL, NULL, NULL, 
 
37
        tst_true_generate 
38
38
};
39
39
 
40
40
static bool tst_false_generate
41
 
(const struct sieve_codegen_env *cgenv,
 
41
(const struct sieve_codegen_env *cgenv, 
42
42
        struct sieve_command *cmd ATTR_UNUSED,
43
43
        struct sieve_jumplist *jumps, bool jump_true)
44
44
{
46
46
                sieve_operation_emit(cgenv->sbin, NULL, &sieve_jmp_operation);
47
47
                sieve_jumplist_add(jumps, sieve_binary_emit_offset(cgenv->sbin, 0));
48
48
        }
49
 
 
 
49
        
50
50
        return TRUE;
51
51
}
52
52
 
53
53
static bool tst_true_generate
54
 
(const struct sieve_codegen_env *cgenv,
 
54
(const struct sieve_codegen_env *cgenv, 
55
55
        struct sieve_command *cmd ATTR_UNUSED,
56
56
        struct sieve_jumplist *jumps, bool jump_true)
57
57
{
59
59
                sieve_operation_emit(cgenv->sbin, NULL, &sieve_jmp_operation);
60
60
                sieve_jumplist_add(jumps, sieve_binary_emit_offset(cgenv->sbin, 0));
61
61
        }
62
 
 
 
62
        
63
63
        return TRUE;
64
64
}
65
65