diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-04-15 04:29:33 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-04-15 04:29:33 +0800 |
commit | 239523998456f6e7b5a5c516c5f40870d9960fb1 (patch) | |
tree | 618bf59bb2ea2479949421882a48c30ff0d9f5bf /camel/providers/nntp/camel-nntp-store.c | |
parent | d870ec752c2ae51843e5b8f07cef39ff619f75d7 (diff) | |
download | gsoc2013-evolution-239523998456f6e7b5a5c516c5f40870d9960fb1.tar.gz gsoc2013-evolution-239523998456f6e7b5a5c516c5f40870d9960fb1.tar.zst gsoc2013-evolution-239523998456f6e7b5a5c516c5f40870d9960fb1.zip |
okay. working now.
svn path=/trunk/; revision=2432
Diffstat (limited to 'camel/providers/nntp/camel-nntp-store.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index 0c300be197..e64cc14099 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -115,6 +115,8 @@ _get_folder (CamelStore *store, const gchar *folder_name, CamelException *ex) CamelNNTPFolder *new_nntp_folder; CamelFolder *new_folder; + folder_name = "netscape.public.mozilla.announce"; + /* check if folder has already been created */ /* call the standard routine for that when */ /* it is done ... */ @@ -271,11 +273,23 @@ camel_nntp_command (CamelNNTPStore *store, char **ret, char *fmt, ...) va_list ap; int status; int resp_code; + CamelException *ex; va_start (ap, fmt); cmdbuf = g_strdup_vprintf (fmt, ap); va_end (ap); + ex = camel_exception_new(); + + /* make sure we're connected */ + if (store->ostream == NULL) + nntp_connect (CAMEL_SERVICE (store), ex); + + if (camel_exception_get_id (ex)) { + camel_exception_free (ex); + return CAMEL_NNTP_FAIL; + } + /* Send the command */ camel_stream_write (store->ostream, cmdbuf, strlen (cmdbuf)); g_free (cmdbuf); |