From ddec7bf225b4bdfa0da7d5009210196867cbcff9 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 26 Oct 2001 20:03:02 +0000 Subject: Lets try putting a camel_stream_reset() here. Logic being that the stream 2001-10-26 Jeffrey Stedfast * 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 --- camel/providers/imap/camel-imap-message-cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'camel/providers') diff --git a/camel/providers/imap/camel-imap-message-cache.c b/camel/providers/imap/camel-imap-message-cache.c index ee37f500fd..712eeef8c5 100644 --- a/camel/providers/imap/camel-imap-message-cache.c +++ b/camel/providers/imap/camel-imap-message-cache.c @@ -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; } -- cgit v1.2.3