aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-27 04:03:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-27 04:03:02 +0800
commitddec7bf225b4bdfa0da7d5009210196867cbcff9 (patch)
treefec2e826c87272e3d715140d66bea911dc7a6e75 /camel/providers
parentf21bff38da01fad2727bc911129a00716a8ad0ca (diff)
downloadgsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.tar
gsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.tar.gz
gsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.tar.bz2
gsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.tar.lz
gsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.tar.xz
gsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.tar.zst
gsoc2013-evolution-ddec7bf225b4bdfa0da7d5009210196867cbcff9.zip
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
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/imap/camel-imap-message-cache.c1
1 files changed, 1 insertions, 0 deletions
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;
}