dovecot-2.1: pop3c: mail.istream_opened() method wasn't being ca...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jan 29 00:49:01 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/397224940894
changeset: 14031:397224940894
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Jan 29 00:48:43 2012 +0200
description:
pop3c: mail.istream_opened() method wasn't being called.

diffstat:

 src/lib-storage/index/pop3c/pop3c-mail.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r 47018c625680 -r 397224940894 src/lib-storage/index/pop3c/pop3c-mail.c
--- a/src/lib-storage/index/pop3c/pop3c-mail.c	Sun Jan 29 00:35:40 2012 +0200
+++ b/src/lib-storage/index/pop3c/pop3c-mail.c	Sun Jan 29 00:48:43 2012 +0200
@@ -123,6 +123,13 @@
 		}
 		i_stream_set_name(input, t_strcut(cmd, '\r'));
 		mail->data.stream = input;
+		if (mail->mail.v.istream_opened != NULL) {
+			if (mail->mail.v.istream_opened(_mail,
+							&mail->data.stream) < 0) {
+				index_mail_close_streams(mail);
+				return -1;
+			}
+		}
 		pop3c_mail_cache_size(mail);
 	}
 	return index_mail_init_stream(mail, hdr_size, body_size, stream_r);


More information about the dovecot-cvs mailing list