Lines Matching refs:mail
4 #include "mail-storage-private.h"
6 #include "index-mail.h"
7 #include "istream-mail.h"
12 struct mail *mail;
20 struct mail *mail = mstream->mail;
28 mail_storage_last_error_push(mail->box->storage);
29 orig_lookup_abort = mail->lookup_abort;
30 mail->lookup_abort = MAIL_LOOKUP_ABORT_NOT_IN_CACHE;
31 if (mail_get_physical_size(mail, &mstream->expected_size) < 0)
33 mail->lookup_abort = orig_lookup_abort;
34 mail_storage_last_error_pop(mail->box->storage);
51 struct mail *mail = mstream->mail;
56 orig_lookup_abort = mail->lookup_abort;
57 mail->lookup_abort = MAIL_LOOKUP_ABORT_NOT_IN_CACHE;
59 if (mail_get_first_header(mail, headers[i], &value) > 0) {
64 mail->lookup_abort = orig_lookup_abort;
97 mailbox_get_vname(mstream->mail->box),
98 mstream->mail->uid, mail_id);
99 mail_set_cache_corrupted(mstream->mail, MAIL_FETCH_PHYSICAL_SIZE,
118 mstream->mail->transaction->stats.files_read_bytes += ret;
121 mstream->mail->transaction->stats.files_read_count++;
135 /* update mail's expunged-flag if needed */
136 index_mail_refresh_expunged(mstream->mail);
149 struct istream *i_stream_create_mail(struct mail *mail, struct istream *input,
155 mstream->mail = mail;