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

« back to all changes in this revision

Viewing changes to sieve/src/lib-sieve/plugins/include/cmd-return.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:
5
5
 
6
6
#include "sieve-code.h"
7
7
#include "sieve-commands.h"
8
 
#include "sieve-validator.h"
 
8
#include "sieve-validator.h" 
9
9
#include "sieve-generator.h"
10
10
#include "sieve-interpreter.h"
11
11
 
12
12
#include "ext-include-common.h"
13
13
 
14
 
/*
15
 
 * Return command
16
 
 *
 
14
/* 
 
15
 * Return command 
 
16
 * 
17
17
 * Syntax
18
18
 *   return
19
19
 */
20
20
 
21
21
static bool cmd_return_generate
22
22
        (const struct sieve_codegen_env *cgenv, struct sieve_command *cmd);
23
 
 
24
 
const struct sieve_command_def cmd_return = {
25
 
        "return",
26
 
        SCT_COMMAND,
 
23
        
 
24
const struct sieve_command_def cmd_return = { 
 
25
        "return", 
 
26
        SCT_COMMAND, 
27
27
        0, 0, FALSE, FALSE,
28
 
        NULL, NULL, NULL,
29
 
        cmd_return_generate,
 
28
        NULL, NULL, NULL, 
 
29
        cmd_return_generate, 
30
30
        NULL
31
31
};
32
32
 
33
 
/*
34
 
 * Return operation
 
33
/* 
 
34
 * Return operation 
35
35
 */
36
36
 
37
37
static int opc_return_execute
38
38
        (const struct sieve_runtime_env *renv, sieve_size_t *address);
39
39
 
40
 
const struct sieve_operation_def return_operation = {
 
40
const struct sieve_operation_def return_operation = { 
41
41
        "return",
42
42
        &include_extension,
43
43
        EXT_INCLUDE_OPERATION_RETURN,
44
 
        NULL,
45
 
        opc_return_execute
 
44
        NULL, 
 
45
        opc_return_execute 
46
46
};
47
47
 
48
48
/*
50
50
 */
51
51
 
52
52
static bool cmd_return_generate
53
 
(const struct sieve_codegen_env *cgenv, struct sieve_command *cmd)
 
53
(const struct sieve_codegen_env *cgenv, struct sieve_command *cmd) 
54
54
{
55
55
        sieve_operation_emit(cgenv->sbin, cmd->ext, &return_operation);
56
56
 
63
63
 
64
64
static int opc_return_execute
65
65
(const struct sieve_runtime_env *renv, sieve_size_t *address ATTR_UNUSED)
66
 
{
 
66
{       
67
67
        sieve_runtime_trace(renv, "RETURN command");
68
68
 
69
69
        ext_include_execute_return(renv);