diff options
author | Not Zed <NotZed@Ximian.com> | 2001-07-11 15:28:40 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-07-11 15:28:40 +0800 |
commit | 96496c1392cea9179b9bfbf2b6895e69a6dd13af (patch) | |
tree | e244cf9b9dfb4def14dfc9acf34bcb634d0b9a37 /camel/camel-stream-null.c | |
parent | 50e64dee0a5c75d4a6a5df1c41bac37165f2f51b (diff) | |
download | gsoc2013-evolution-96496c1392cea9179b9bfbf2b6895e69a6dd13af.tar.gz gsoc2013-evolution-96496c1392cea9179b9bfbf2b6895e69a6dd13af.tar.zst gsoc2013-evolution-96496c1392cea9179b9bfbf2b6895e69a6dd13af.zip |
Create the messageinfo itself, so we can properly set the size.
2001-07-11 Not Zed <NotZed@Ximian.com>
* camel-filter-driver.c (camel_filter_driver_filter_mbox): Create
the messageinfo itself, so we can properly set the size.
* camel-movemail.c (camel_movemail_solaris): Write out the from
line between each message.
2001-07-10 Not Zed <NotZed@Ximian.com>
* providers/local/camel-local-summary.c (local_summary_add): Copy
the size across from the source message info if supplied.
* camel-stream-null.c: Added a 'written' member which keeps track
of how much has been written to the stream.
* camel-movemail.c (camel_movemail): If we have BROKEN_SPOOL
defined, then use the solaris movemail to quote from lines that
sendmail didn't.
(camel_movemail_solaris): Compile this in if BROKEN_SPOOL defined.
svn path=/trunk/; revision=10989
Diffstat (limited to 'camel/camel-stream-null.c')
-rw-r--r-- | camel/camel-stream-null.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-stream-null.c b/camel/camel-stream-null.c index 8e9e107f0f..7e99a9c38d 100644 --- a/camel/camel-stream-null.c +++ b/camel/camel-stream-null.c @@ -36,11 +36,11 @@ static CamelObjectClass *parent_class = NULL; /* dummy implementations, for a NULL stream */ static ssize_t stream_read (CamelStream *stream, char *buffer, size_t n) { return 0; } -static ssize_t stream_write (CamelStream *stream, const char *buffer, size_t n) { return n; } +static ssize_t stream_write (CamelStream *stream, const char *buffer, size_t n) { ((CamelStreamNull *)stream)->written += n; return n; } static int stream_close (CamelStream *stream) { return 0; } static int stream_flush (CamelStream *stream) { return 0; } static gboolean stream_eos (CamelStream *stream) { return TRUE; } -static int stream_reset (CamelStream *stream) { return 0; } +static int stream_reset (CamelStream *stream) { ((CamelStreamNull *)stream)->written = 0; return 0; } static void camel_stream_null_class_init (CamelStreamClass *camel_stream_null_class) |