dovecot-2.0: dbox_mail_get_save_date(): Last change was broken.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Mar 22 15:27:16 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/9202254c8499
changeset: 10972:9202254c8499
user: Timo Sirainen <tss at iki.fi>
date: Mon Mar 22 15:27:07 2010 +0200
description:
dbox_mail_get_save_date(): Last change was broken.
diffstat:
src/lib-storage/index/dbox-common/dbox-mail.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r 1b588519f00c -r 9202254c8499 src/lib-storage/index/dbox-common/dbox-mail.c
--- a/src/lib-storage/index/dbox-common/dbox-mail.c Mon Mar 22 02:16:46 2010 +0200
+++ b/src/lib-storage/index/dbox-common/dbox-mail.c Mon Mar 22 15:27:07 2010 +0200
@@ -136,14 +136,20 @@
int dbox_mail_get_save_date(struct mail *_mail, time_t *date_r)
{
+ struct dbox_storage *storage =
+ (struct dbox_storage *)_mail->box->storage;
struct dbox_mail *mail = (struct dbox_mail *)_mail;
struct index_mail_data *data = &mail->imail.data;
struct dbox_file *file;
struct stat st;
+ uoff_t offset;
if (index_mail_get_save_date(_mail, date_r) == 0)
return 0;
+ if (storage->v.mail_open(mail, &offset, &file) < 0)
+ return -1;
+
mail->imail.mail.stats_fstat_lookup_count++;
if (dbox_file_stat(file, &st) < 0) {
if (errno == ENOENT)
More information about the dovecot-cvs
mailing list