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

« back to all changes in this revision

Viewing changes to sieve/src/lib-sieve/sieve-types.h

  • 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:
1
 
/* Copyright (c) 2002-2010 Dovecot Sieve authors, see the included COPYING file 
 
1
/* Copyright (c) 2002-2010 Dovecot Sieve authors, see the included COPYING file
2
2
 */
3
3
 
4
4
#ifndef __SIEVE_TYPES_H
34
34
        const char *(*get_setting)(void *context, const char *identifier);
35
35
};
36
36
 
37
 
/* 
 
37
/*
38
38
 * Message data
39
39
 *
40
 
 * - The mail message + envelope data 
 
40
 * - The mail message + envelope data
41
41
 */
42
42
 
43
43
struct sieve_message_data {
48
48
        const char *id;
49
49
};
50
50
 
51
 
/* 
 
51
/*
52
52
 * Script environment
53
53
 *
54
 
 * - Environment for currently executing script 
 
54
 * - Environment for currently executing script
55
55
 */
56
56
 
57
57
struct sieve_script_env {
63
63
        const char *default_mailbox;
64
64
        bool mailbox_autocreate;
65
65
        bool mailbox_autosubscribe;
66
 
        
 
66
 
67
67
        /* System-related */
68
68
        const char *username;
69
69
        const char *hostname;
70
70
        const char *postmaster_address;
71
 
                
 
71
 
72
72
        /* Callbacks */
73
 
        
 
73
 
74
74
        /* Interface for sending mail */
75
75
        void *(*smtp_open)
76
76
                (const char *destination, const char *return_path, FILE **file_r);
77
77
        bool (*smtp_close)(void *handle);
78
 
        
 
78
 
79
79
        /* Interface for marking and checking duplicates */
80
80
        int (*duplicate_check)
81
81
                (const void *id, size_t id_size, const char *user);
82
82
        void (*duplicate_mark)
83
83
                (const void *id, size_t id_size, const char *user, time_t time);
84
 
        
85
 
        /* Execution status record */   
 
84
 
 
85
        /* Execution status record */
86
86
        struct sieve_exec_status *exec_status;
87
 
                
 
87
 
88
88
        /* Trace stream */
89
89
        struct ostream *trace_stream;
90
90
};
94
94
 
95
95
/*
96
96
 * Script executionstatus
97
 
 */     
 
97
 */
98
98
 
99
99
struct sieve_exec_status {
100
100
        bool message_saved;