dovecot-2.2: virtual storage: get_first_header() always returned...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jan 5 01:14:36 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/abcc9959b757
changeset: 15570:abcc9959b757
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 03 07:30:54 2013 +0200
description:
virtual storage: get_first_header() always returned "doesn't exist", breaking SORT/THREAD.

diffstat:

 src/plugins/virtual/virtual-mail.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r c9e6ad8a42db -r abcc9959b757 src/plugins/virtual/virtual-mail.c
--- a/src/plugins/virtual/virtual-mail.c	Fri Dec 07 08:50:35 2012 +0400
+++ b/src/plugins/virtual/virtual-mail.c	Thu Jan 03 07:30:54 2013 +0200
@@ -289,15 +289,17 @@
 {
 	struct virtual_mail *vmail = (struct virtual_mail *)mail;
 	struct mail_private *p = (struct mail_private *)vmail->backend_mail;
+	int ret;
 
 	if (virtual_mail_handle_lost(vmail) < 0)
 		return -1;
-	if (p->v.get_first_header(vmail->backend_mail, field,
-				  decode_to_utf8, value_r) < 0) {
+	ret = p->v.get_first_header(vmail->backend_mail, field,
+				    decode_to_utf8, value_r);
+	if (ret < 0) {
 		virtual_box_copy_error(mail->box, vmail->backend_mail->box);
 		return -1;
 	}
-	return 0;
+	return ret;
 }
 
 static int


More information about the dovecot-cvs mailing list