diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-09-01 09:58:56 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-09-01 09:58:56 +0800 |
commit | 71eb39b730cd190c690647d3806d567d55424026 (patch) | |
tree | e18c42836d84857e879cefae8263302e018b96a0 /camel/providers/nntp/camel-nntp-utils.c | |
parent | 3cf4f0d243e0c84b519fe027a3299a925e7075fb (diff) | |
download | gsoc2013-evolution-71eb39b730cd190c690647d3806d567d55424026.tar.gz gsoc2013-evolution-71eb39b730cd190c690647d3806d567d55424026.tar.zst gsoc2013-evolution-71eb39b730cd190c690647d3806d567d55424026.zip |
use camel_remote_store_recv_line.
2000-08-31 Chris Toshok <toshok@helixcode.com>
* providers/nntp/camel-nntp-utils.c (get_OVER_headers): use
camel_remote_store_recv_line.
* providers/nntp/camel-nntp-folder.c (nntp_folder_get_message):
use camel_remote_store_recv_line to build message. also, free our
buffer so we don't leak like mad.
* providers/nntp/camel-nntp-store.c:
(camel_nntp_store_get_additional_data) remove.
(camel_nntp_store_get_extensions): use
camel_remote_store_recv_line.
(camel_nntp_store_get_overview_fmt): same. also, don't rely on
_get_additional_data anymore since it's easier to parse without.
(camel_nntp_command): use camel_remote_store_send_string and
camel_remote_store_recv_line.
* providers/nntp/camel-nntp-store.h: CamelRemoteStore is the
parent class now. remove istream/ostream since CamelRemoteStore
takes care of that for us. also remove the prototype for
camel_nntp_store_get_additional_data.
* providers/nntp/camel-nntp-newsrc.c (camel_nntp_newsrc_write):
make sure to clear dirty bit.
(camel_nntp_newsrc_read_for_server): don't worry about continually
trying to open the file - if it fails we just return an
unpopulated .newsrc file.
svn path=/trunk/; revision=5153
Diffstat (limited to 'camel/providers/nntp/camel-nntp-utils.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/camel/providers/nntp/camel-nntp-utils.c b/camel/providers/nntp/camel-nntp-utils.c index 01b7876134..509fe452cc 100644 --- a/camel/providers/nntp/camel-nntp-utils.c +++ b/camel/providers/nntp/camel-nntp-utils.c @@ -26,7 +26,6 @@ #include "camel-nntp-folder.h" #include "camel-nntp-store.h" #include "camel-nntp-utils.h" -#include "camel-stream-buffer.h" #include "camel-stream-mem.h" #include <stdlib.h> @@ -45,13 +44,15 @@ get_OVER_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, last_message); if (status == CAMEL_NNTP_OK) { - CamelStream *nntp_istream = nntp_store->istream; gboolean done = FALSE; while (!done) { char *line; - line = camel_stream_buffer_read_line (CAMEL_STREAM_BUFFER ( nntp_istream )); + if (camel_remote_store_recv_line (CAMEL_REMOTE_STORE (nntp_store), &line, ex) < 0) { + g_warning ("failed to recv_line while building OVER header list\n"); + break; + } if (*line == '.') { done = TRUE; |