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

« back to all changes in this revision

Viewing changes to src/lib-storage/index/raw/raw-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) 2007-2012 Dovecot authors, see the included COPYING file */
 
1
/* Copyright (c) 2007-2013 Dovecot authors, see the included COPYING file */
2
2
 
3
3
#include "lib.h"
4
4
#include "istream.h"
14
14
        struct raw_mailbox *mbox = (struct raw_mailbox *)mail->box;
15
15
        const struct stat *st;
16
16
 
17
 
        if (mail->lookup_abort == MAIL_LOOKUP_ABORT_NOT_IN_CACHE)
18
 
                return mail_set_aborted(mail);
 
17
        if (mail->lookup_abort == MAIL_LOOKUP_ABORT_NOT_IN_CACHE) {
 
18
                mail_set_aborted(mail);
 
19
                return -1;
 
20
        }
19
21
 
20
22
        mail->transaction->stats.fstat_lookup_count++;
21
 
        st = i_stream_stat(mail->box->input, TRUE);
22
 
        if (st == NULL) {
 
23
        if (i_stream_stat(mail->box->input, TRUE, &st) < 0) {
23
24
                mail_storage_set_critical(mail->box->storage,
24
25
                                          "stat(%s) failed: %m",
25
26
                                          i_stream_get_name(mail->box->input));
127
128
        index_mail_get_keywords,
128
129
        index_mail_get_keyword_indexes,
129
130
        index_mail_get_modseq,
 
131
        index_mail_get_pvt_modseq,
130
132
        index_mail_get_parts,
131
133
        index_mail_get_date,
132
134
        raw_mail_get_received_date,
137
139
        index_mail_get_headers,
138
140
        index_mail_get_header_stream,
139
141
        raw_mail_get_stream,
 
142
        index_mail_get_binary_stream,
140
143
        raw_mail_get_special,
141
144
        index_mail_get_real_mail,
142
145
        index_mail_update_flags,
143
146
        index_mail_update_keywords,
144
147
        index_mail_update_modseq,
 
148
        index_mail_update_pvt_modseq,
145
149
        NULL,
146
150
        index_mail_expunge,
147
151
        index_mail_set_cache_corrupted,