dovecot-2.0: lib-storage: mail_get_stream() no longer sets strea...
dovecot at dovecot.org
dovecot at dovecot.org
Mon May 31 17:25:27 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/4199565b9ce2
changeset: 11429:4199565b9ce2
user: Timo Sirainen <tss at iki.fi>
date: Mon May 31 15:25:22 2010 +0100
description:
lib-storage: mail_get_stream() no longer sets stream_r if it returns failure.
This fixes e.g. FETCH RFC822.* commands when input couldn't be read.
diffstat:
src/lib-storage/index/index-mail.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r e5b491043b5e -r 4199565b9ce2 src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c Mon May 31 15:12:57 2010 +0100
+++ b/src/lib-storage/index/index-mail.c Mon May 31 15:25:22 2010 +0100
@@ -887,8 +887,10 @@
ret = index_mail_stream_check_failure(mail);
i_stream_seek(data->stream, 0);
+ if (ret < 0)
+ return -1;
*stream_r = data->stream;
- return ret;
+ return 0;
}
static int index_mail_parse_bodystructure(struct index_mail *mail,
More information about the dovecot-cvs
mailing list