aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/imap')
-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 47e40a2ad1..ee37f500fd 100644
--- a/camel/providers/imap/camel-imap-message-cache.c
+++ b/camel/providers/imap/camel-imap-message-cache.c
@@ -262,6 +262,7 @@ static CamelStream *
insert_finish (CamelImapMessageCache *cache, const char *uid, char *path,
char *key, CamelStream *stream)
{
+ camel_stream_flush (stream);
camel_stream_reset (stream);
cache_put (cache, uid, key, stream);
g_free (path);