aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-fs.c
diff options
context:
space:
mode:
authorbertrand <bertrand@helixcode.com>2000-03-05 06:23:06 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-05 06:23:06 +0800
commit8eb9e1f40b5d8e058f985659bea0a914b383710c (patch)
tree1e6a07601b3a85d77906bb664cdd2e5a55ca9837 /camel/camel-stream-fs.c
parent6500f641816afdb3aaa7cc27f186500f4c0d7d8b (diff)
downloadgsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.tar
gsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.tar.gz
gsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.tar.bz2
gsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.tar.lz
gsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.tar.xz
gsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.tar.zst
gsoc2013-evolution-8eb9e1f40b5d8e058f985659bea0a914b383710c.zip
stream the raw content instead of nothing if the encoding is not
2000-03-04 bertrand <bertrand@helixcode.com> * camel-mime-part.c (my_write_content_to_stream): stream the raw content instead of nothing if the encoding is not supported. * camel-stream-fs.c (_seek): handle eos more properly. svn path=/trunk/; revision=2047
Diffstat (limited to 'camel/camel-stream-fs.c')
-rw-r--r--camel/camel-stream-fs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c
index db12a421e0..46ccfe6e8f 100644
--- a/camel/camel-stream-fs.c
+++ b/camel/camel-stream-fs.c
@@ -487,11 +487,6 @@ _seek (CamelSeekableStream *stream, gint offset, CamelStreamSeekPolicy policy)
CamelStreamFs *stream_fs = CAMEL_STREAM_FS (stream);
- /* because we don't know what is going to happen, we
- set the eof stream to false so that a reread can
- occur */
- stream_fs->eof = FALSE;
-
switch (policy) {
case CAMEL_STREAM_SET:
real_offset = MAX (stream_fs->inf_bound + offset, stream_fs->inf_bound);
@@ -533,7 +528,8 @@ _seek (CamelSeekableStream *stream, gint offset, CamelStreamSeekPolicy policy)
printf ("***** Seeking : real_offset=%d, whence=%d\n", real_offset, whence);
return_position = lseek (stream_fs->fd, real_offset, whence) - stream_fs->inf_bound;
- printf ("*** *** *** *** ***\n");
+ if (CAMEL_SEEKABLE_STREAM (stream)->cur_pos != return_position)
+ stream_fs->eof = FALSE;
CAMEL_SEEKABLE_STREAM (stream)->cur_pos = return_position;