Lets try putting a camel_stream_reset() here. Logic being that the stream

2001-10-26  Jeffrey Stedfast  <fejj@ximian.com>

	* providers/imap/camel-imap-message-cache.c
	(camel_imap_message_cache_get): Lets try putting a
	camel_stream_reset() here. Logic being that the stream may have
	been read from since it was cached and thus our caller may try
	reading from it and get no data from it since it is already at the
	EOS. This may fix bug #12943.

svn path=/trunk/; revision=14165
This commit is contained in:
Jeffrey Stedfast
2001-10-26 20:03:02 +00:00
committed by Jeffrey Stedfast
parent f21bff38da
commit ddec7bf225
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2001-10-26 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-message-cache.c
(camel_imap_message_cache_get): Lets try putting a
camel_stream_reset() here. Logic being that the stream may have
been read from since it was cached and thus our caller may try
reading from it and get no data from it since it is already at the
EOS. This may fix bug #12943.
2001-10-25 <NotZed@Ximian.com>
* camel-search-private.c (utf8_get): Remove the stupid warning

View File

@ -390,6 +390,7 @@ camel_imap_message_cache_get (CamelImapMessageCache *cache, const char *uid,
key = strrchr (path, '/') + 1;
stream = g_hash_table_lookup (cache->parts, key);
if (stream) {
camel_stream_reset (CAMEL_STREAM (stream));
camel_object_ref (CAMEL_OBJECT (stream));
return stream;
}