Lines Matching refs:_mail
43 static int cydir_mail_get_received_date(struct mail *_mail, time_t *date_r)
45 struct index_mail *mail = INDEX_MAIL(_mail);
49 if (index_mail_get_received_date(_mail, date_r) == 0)
52 if (cydir_mail_stat(_mail, &st) < 0)
60 static int cydir_mail_get_save_date(struct mail *_mail, time_t *date_r)
62 struct index_mail *mail = INDEX_MAIL(_mail);
66 if (index_mail_get_save_date(_mail, date_r) == 0)
69 if (cydir_mail_stat(_mail, &st) < 0)
77 static int cydir_mail_get_physical_size(struct mail *_mail, uoff_t *size_r)
79 struct index_mail *mail = INDEX_MAIL(_mail);
83 if (index_mail_get_physical_size(_mail, size_r) == 0)
86 if (cydir_mail_stat(_mail, &st) < 0)
95 cydir_mail_get_stream(struct mail *_mail, bool get_body ATTR_UNUSED,
100 struct index_mail *mail = INDEX_MAIL(_mail);
106 _mail->transaction->stats.open_lookup_count++;
107 path = cydir_mail_get_path(_mail);
111 mail_set_expunged(_mail);
113 mail_set_critical(_mail, "open(%s) failed: %m",
120 index_mail_set_read_buffer_size(_mail, input);
122 if (mail->mail.v.istream_opened(_mail, &input) < 0) {