~sbeattie/ubuntu/oneiric/dovecot/dovecot-lp792557

« back to all changes in this revision

Viewing changes to managesieve/src/managesieve/commands.h

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2011-05-16 10:18:41 UTC
  • mfrom: (4.1.20 sid)
  • Revision ID: james.westby@ubuntu.com-20110516101841-wo4hf1ewxssic6xj
Tags: 1:2.0.12-1ubuntu1
* Merge from Debian Unstable, remaining changes are:
  + Add mail-stack-delivery as per server-maverick-mail-integration spec:
    - Update debian/rules
    - Convert existing package to a dummy package and new binary in debian/control.
    - Update maintainer scripts.
    - Move previously installed backups and config files to a new package namespace in preinst.
    - Add new debian/mail-stack-delivery.prerm to handle downgrades.
    - Rename debian/dovecot-postfix.* to debian/mail-stack-delivery.*
  + Use Snakeoil SSL certifications by default:
    - debian/control: Depend on ssl-cert.
    - debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - Create debian/dovecot-common.ufw.profile.
    - debian/rules: install profile
    - debian/control: suggest ufw.
  + debian/{control,rules}: enable PIE hardening.
  + debian/dovecot-common.dirs: Added usr/share/doc/dovecot-common
  + Add apport hook:
    - debian/rules, debian/source_dovecot.py
  + Add upstart job:
    - debian/rules, debian/dovecot-common.dovecot.upstart, debian/control,
      debian/dovecot-common.dirs, dovecot-imapd.{postrm, postinst, prerm},
      debian/dovecot-pop3d.{postinst, postrm, prerm}. mail-stack-deliver.postinst:
      Convert init script to upstart. Apart of the server-maverick-upstart-conversion
      specification.

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
2
 
 */
3
 
 
4
 
#ifndef __COMMANDS_H
5
 
#define __COMMANDS_H
6
 
 
7
 
struct client_command_context;
8
 
 
9
 
#include "managesieve-parser.h"
10
 
 
11
 
typedef bool command_func_t(struct client_command_context *cmd);
12
 
 
13
 
struct command {
14
 
        const char *name;
15
 
        command_func_t *func;
16
 
};
17
 
 
18
 
/* Register command. Given name parameter must be permanently stored until
19
 
   command is unregistered. */
20
 
void command_register(const char *name, command_func_t *func);
21
 
void command_unregister(const char *name);
22
 
 
23
 
/* Register array of commands. */
24
 
void command_register_array(const struct command *cmdarr, unsigned int count);
25
 
void command_unregister_array(const struct command *cmdarr, unsigned int count);
26
 
 
27
 
struct command *command_find(const char *name);
28
 
 
29
 
void commands_init(void);
30
 
void commands_deinit(void);
31
 
 
32
 
/* MANAGESIEVE commands: */
33
 
 
34
 
/* Non-Authenticated State */
35
 
extern bool cmd_logout(struct client_command_context *cmd);
36
 
extern bool cmd_capability(struct client_command_context *cmd);
37
 
extern bool cmd_noop(struct client_command_context *cmd);
38
 
 
39
 
/* Authenticated State */
40
 
extern bool cmd_putscript(struct client_command_context *cmd);
41
 
extern bool cmd_checkscript(struct client_command_context *cmd);
42
 
extern bool cmd_getscript(struct client_command_context *cmd);
43
 
extern bool cmd_setactive(struct client_command_context *cmd);
44
 
extern bool cmd_deletescript(struct client_command_context *cmd);
45
 
extern bool cmd_listscripts(struct client_command_context *cmd);
46
 
extern bool cmd_havespace(struct client_command_context *cmd);
47
 
extern bool cmd_renamescript(struct client_command_context *cmd);
48
 
 
49
 
#endif /* __COMMANDS_H */