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:

committed by
Jeffrey Stedfast

parent
f21bff38da
commit
ddec7bf225
@ -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>
|
2001-10-25 <NotZed@Ximian.com>
|
||||||
|
|
||||||
* camel-search-private.c (utf8_get): Remove the stupid warning
|
* camel-search-private.c (utf8_get): Remove the stupid warning
|
||||||
|
@ -390,6 +390,7 @@ camel_imap_message_cache_get (CamelImapMessageCache *cache, const char *uid,
|
|||||||
key = strrchr (path, '/') + 1;
|
key = strrchr (path, '/') + 1;
|
||||||
stream = g_hash_table_lookup (cache->parts, key);
|
stream = g_hash_table_lookup (cache->parts, key);
|
||||||
if (stream) {
|
if (stream) {
|
||||||
|
camel_stream_reset (CAMEL_STREAM (stream));
|
||||||
camel_object_ref (CAMEL_OBJECT (stream));
|
camel_object_ref (CAMEL_OBJECT (stream));
|
||||||
return stream;
|
return stream;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user