~james-page/ubuntu/raring/dovecot/autopkgtest

« back to all changes in this revision

Viewing changes to pigeonhole/src/lib-sieve/edit-mail.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 11:11:54 UTC
  • mfrom: (1.15.2) (4.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120611111154-678cwbdj6ktgsv1h
Tags: 1:2.1.7-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/{control,rules}: enable PIE hardening.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
  + d/control: Drop B-D on systemd.
* Dropped changes:
  + d/patches/fix-racey-restart.patch: part of 2.1.x, no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2002-2012 Pigeonhole authors, see the included COPYING file
 
2
 */
 
3
 
 
4
#ifndef __EDIT_MAIL_H
 
5
#define __EDIT_MAIL_H
 
6
 
 
7
struct edit_mail;
 
8
 
 
9
struct edit_mail *edit_mail_wrap(struct mail *mail);
 
10
void edit_mail_unwrap(struct edit_mail **edmail);
 
11
struct edit_mail *edit_mail_snapshot(struct edit_mail *edmail);
 
12
 
 
13
void edit_mail_reset(struct edit_mail *edmail);
 
14
 
 
15
struct mail *edit_mail_get_mail(struct edit_mail *edmail);
 
16
 
 
17
/*
 
18
 * Header modification
 
19
 */
 
20
 
 
21
/* Simple API */
 
22
 
 
23
void edit_mail_header_add
 
24
        (struct edit_mail *edmail, const char *field_name, const char *value,
 
25
                bool last);
 
26
int edit_mail_header_delete
 
27
        (struct edit_mail *edmail, const char *field_name, int index);
 
28
 
 
29
/* Iterator */
 
30
 
 
31
struct edit_mail_header_iter;
 
32
 
 
33
int edit_mail_headers_iterate_init
 
34
        (struct edit_mail *edmail, const char *field_name, bool reverse,
 
35
                struct edit_mail_header_iter **edhiter_r);
 
36
void edit_mail_headers_iterate_deinit
 
37
        (struct edit_mail_header_iter **edhiter);
 
38
 
 
39
void edit_mail_headers_iterate_get
 
40
        (struct edit_mail_header_iter *edhiter, const char **value_r);
 
41
 
 
42
bool edit_mail_headers_iterate_next
 
43
        (struct edit_mail_header_iter *edhiter);
 
44
bool edit_mail_headers_iterate_remove
 
45
        (struct edit_mail_header_iter *edhiter);
 
46
 
 
47
 
 
48
 
 
49
#endif /* __edit_mail_H */