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

« back to all changes in this revision

Viewing changes to src/lib-storage/fail-mail.c

  • 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
 
/* Copyright (c) 2009-2012 Dovecot authors, see the included COPYING file */
 
1
/* Copyright (c) 2009-2013 Dovecot authors, see the included COPYING file */
2
2
 
3
3
#include "lib.h"
4
4
#include "array.h"
88
88
 
89
89
        kw_indexes = t_new(ARRAY_TYPE(keyword_indexes), 1);
90
90
        t_array_init(kw_indexes, 1);
91
 
        (void)array_append_space(kw_indexes);
 
91
        array_append_zero(kw_indexes);
92
92
        return kw_indexes;
93
93
}
94
94
 
177
177
}
178
178
 
179
179
static int
 
180
fail_mail_get_binary_stream(struct mail *_mail ATTR_UNUSED,
 
181
                            const struct message_part *part ATTR_UNUSED,
 
182
                            bool include_hdr ATTR_UNUSED,
 
183
                            uoff_t *size_r ATTR_UNUSED,
 
184
                            unsigned int *body_lines_r ATTR_UNUSED,
 
185
                            bool *binary_r ATTR_UNUSED,
 
186
                            struct istream **stream_r ATTR_UNUSED)
 
187
{
 
188
        return -1;
 
189
}
 
190
 
 
191
static int
180
192
fail_mail_get_special(struct mail *mail ATTR_UNUSED,
181
193
                      enum mail_fetch_field field ATTR_UNUSED,
182
194
                      const char **value_r ATTR_UNUSED)
232
244
        fail_mail_get_keywords,
233
245
        fail_mail_get_keyword_indexes,
234
246
        fail_mail_get_modseq,
 
247
        fail_mail_get_modseq,
235
248
        fail_mail_get_parts,
236
249
        fail_mail_get_date,
237
250
        fail_mail_get_received_date,
242
255
        fail_mail_get_headers,
243
256
        fail_mail_get_header_stream,
244
257
        fail_mail_get_stream,
 
258
        fail_mail_get_binary_stream,
245
259
        fail_mail_get_special,
246
260
        fail_mail_get_real_mail,
247
261
        fail_mail_update_flags,
248
262
        fail_mail_update_keywords,
249
263
        fail_mail_update_modseq,
 
264
        fail_mail_update_modseq,
250
265
        NULL,
251
266
        fail_mail_expunge,
252
267
        fail_mail_set_cache_corrupted,