~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/doveadm/dsync/dsync-mailbox.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DSYNC_MAILBOX_H
 
2
#define DSYNC_MAILBOX_H
 
3
 
 
4
#include "mail-storage.h"
 
5
 
 
6
/* Mailbox that is going to be synced. Its name was already sent in the
 
7
   mailbox tree. */
 
8
struct dsync_mailbox {
 
9
        guid_128_t mailbox_guid;
 
10
        bool mailbox_lost;
 
11
        bool have_guids, have_save_guids;
 
12
 
 
13
        uint32_t uid_validity, uid_next, messages_count, first_recent_uid;
 
14
        uint64_t highest_modseq, highest_pvt_modseq;
 
15
        ARRAY_TYPE(mailbox_cache_field) cache_fields;
 
16
};
 
17
 
 
18
struct dsync_mailbox_attribute {
 
19
        enum mail_attribute_type type;
 
20
        const char *key;
 
21
        /* if both values are NULL = not looked up yet / deleted */
 
22
        const char *value;
 
23
        struct istream *value_stream;
 
24
 
 
25
        time_t last_change; /* 0 = unknown */
 
26
        uint64_t modseq; /* 0 = unknown */
 
27
 
 
28
        bool deleted; /* attribute is known to have been deleted */
 
29
        bool exported; /* internally used by exporting */
 
30
};
 
31
#define DSYNC_ATTR_HAS_VALUE(attr) \
 
32
        ((attr)->value != NULL || (attr)->value_stream != NULL)
 
33
 
 
34
void dsync_mailbox_attribute_dup(pool_t pool,
 
35
                                 const struct dsync_mailbox_attribute *src,
 
36
                                 struct dsync_mailbox_attribute *dest_r);
 
37
 
 
38
#endif