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

« back to all changes in this revision

Viewing changes to src/lib-storage/mail-search-parser.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
#ifndef MAIL_SEARCH_PARSER_H
 
2
#define MAIL_SEARCH_PARSER_H
 
3
 
 
4
#define MAIL_SEARCH_PARSER_KEY_LIST "("
 
5
 
 
6
struct imap_arg;
 
7
 
 
8
/* Build a parser parsing the given imap args. NOTE: args must not be freed
 
9
   until this parser is destroyed. */
 
10
struct mail_search_parser *
 
11
mail_search_parser_init_imap(const struct imap_arg *args);
 
12
/* Build a parser parsing the given command line args. */
 
13
struct mail_search_parser *
 
14
mail_search_parser_init_cmdline(const char *const args[]);
 
15
 
 
16
void mail_search_parser_deinit(struct mail_search_parser **parser);
 
17
 
 
18
/* Key is set to the next search key, or MAIL_SEARCH_PARSER_KEY_LIST for
 
19
   beginning of a list. Returns 1 if ok, 0 if no more keys in this
 
20
   list/query, -1 if parsing error. */
 
21
int mail_search_parse_key(struct mail_search_parser *parser,
 
22
                          const char **key_r);
 
23
/* Get the next string. Returns 0 if ok, -1 if parsing error. */
 
24
int mail_search_parse_string(struct mail_search_parser *parser,
 
25
                             const char **value_r);
 
26
/* If next parameter equals to the given string case-insensitively, skip over
 
27
   it and return TRUE. Otherwise do nothing and return FALSE. */
 
28
bool mail_search_parse_skip_next(struct mail_search_parser *parser,
 
29
                                 const char *str);
 
30
 
 
31
/* Returns the reason string for parsing error. */
 
32
const char *mail_search_parser_get_error(struct mail_search_parser *parser);
 
33
 
 
34
#endif