[dovecot-cvs] dovecot/src/lib-mail istream-header-filter.c, 1.23, 1.24

cras at dovecot.org cras at dovecot.org
Tue Mar 29 13:28:13 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv331/lib-mail

Modified Files:
	istream-header-filter.c 
Log Message:
Replaced i_stream_get_size() with i_stream_stat(). Added i_stream_sync().



Index: istream-header-filter.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/istream-header-filter.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- istream-header-filter.c	28 Mar 2005 13:06:50 -0000	1.23
+++ istream-header-filter.c	29 Mar 2005 10:28:10 -0000	1.24
@@ -270,6 +270,16 @@
 	}
 }
 
+static void _sync(struct _istream *stream __attr_unused__)
+{
+	i_panic("istream-header-filter sync() not implemented");
+}
+
+static const struct stat *_stat(struct _istream *stream __attr_unused__)
+{
+	i_panic("istream-header-filter stat() not implemented");
+}
+
 struct istream *
 i_stream_create_header_filter(struct istream *input,
                               enum header_filter_flags flags,
@@ -309,6 +319,8 @@
 
 	mstream->istream.read = _read;
 	mstream->istream.seek = _seek;
+	mstream->istream.sync = _sync;
+	mstream->istream.stat = _stat;
 
 	mstream->istream.istream.seekable = input->seekable;
 	return _i_stream_create(&mstream->istream, pool, -1, 0);



More information about the dovecot-cvs mailing list