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

« back to all changes in this revision

Viewing changes to sieve/src/testsuite/testsuite.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:
66
66
}
67
67
 
68
68
static int testsuite_run
69
 
(struct sieve_binary *sbin, const struct sieve_message_data *msgdata, 
 
69
(struct sieve_binary *sbin, const struct sieve_message_data *msgdata,
70
70
        const struct sieve_script_env *senv, struct sieve_error_handler *ehandler)
71
71
{
72
72
        struct sieve_interpreter *interp;
93
93
        return ret;
94
94
}
95
95
 
96
 
int main(int argc, char **argv) 
 
96
int main(int argc, char **argv)
97
97
{
98
98
        ARRAY_TYPE(const_string) plugins;
99
 
        const char *scriptfile, *dumpfile, *extensions; 
 
99
        const char *scriptfile, *dumpfile, *extensions;
100
100
        const char *user;
101
101
        int i, ret;
102
102
        struct sieve_binary *sbin;
152
152
                        i_fatal_status(EX_USAGE, "Unknown argument: %s", argv[i]);
153
153
                }
154
154
        }
155
 
        
 
155
 
156
156
        if ( scriptfile == NULL ) {
157
157
                print_help();
158
158
                i_fatal_status(EX_USAGE, "Missing <scriptfile> argument");
189
189
 
190
190
                /* Dump script */
191
191
                sieve_tool_dump_binary_to(sbin, dumpfile);
192
 
        
 
192
 
193
193
                /* Initialize mail storages */
194
194
                mail_users_init(getenv("AUTH_SOCKET_PATH"), getenv("DEBUG") != NULL);
195
195
                mail_storage_init();
252
252
        }
253
253
 
254
254
        /* De-initialize testsuite */
255
 
        testsuite_deinit();     
 
255
        testsuite_deinit();
256
256
        testsuite_settings_deinit();
257
257
        sieve_tool_deinit();
258
258