diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-10-10 08:50:46 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-10-10 08:50:46 +0800 |
commit | 66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5 (patch) | |
tree | 2383950c89e3fdc28ed2a407d2a2df01f0ecb83f /camel/providers/nntp/camel-nntp-store.c | |
parent | 1febeef6becb09f0b6838e3e6850fb7d1e538396 (diff) | |
download | gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.tar gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.tar.gz gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.tar.bz2 gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.tar.lz gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.tar.xz gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.tar.zst gsoc2013-evolution-66cce2a4b4a0dacb1dbc998ad9f0a4226623c5c5.zip |
write out the newsrc. (nntp_store_get_name): if @brief, just return host.
2000-10-09 Chris Toshok <toshok@helixcode.com>
* providers/nntp/camel-nntp-store.c (finalize): write out the
newsrc.
(nntp_store_get_name): if @brief, just return host.
* providers/nntp/camel-nntp-newsrc.c: robustification and bug
fixes.
svn path=/trunk/; revision=5808
Diffstat (limited to 'camel/providers/nntp/camel-nntp-store.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c index 7f0f09ec27..e814ac3ae3 100644 --- a/camel/providers/nntp/camel-nntp-store.c +++ b/camel/providers/nntp/camel-nntp-store.c @@ -122,8 +122,6 @@ camel_nntp_store_get_overview_fmt (CamelNNTPStore *store, CamelException *ex) int i; gboolean done = FALSE; - g_print ("camel_nntp_store_get_overview_fmt\n"); - status = camel_nntp_command (store, ex, NULL, "LIST OVERVIEW.FMT"); @@ -281,8 +279,11 @@ nntp_store_disconnect (CamelService *service, CamelException *ex) static char * nntp_store_get_name (CamelService *service, gboolean brief) { - /* Same info for long and brief... */ - return g_strdup_printf ("USENET news via %s", service->url->host); + if (brief) + return g_strdup_printf ("%s", service->url->host); + else + return g_strdup_printf ("USENET News via %s", service->url->host); + } static CamelServiceAuthType password_authtype = { @@ -477,13 +478,9 @@ nntp_store_unsubscribe_folder (CamelStore *store, const char *folder_name, static void finalize (CamelObject *object) { - /* Done for us now */ - /*CamelException ex; - * - *camel_exception_init (&ex); - *nntp_store_disconnect (CAMEL_SERVICE (object), &ex); - *camel_exception_clear (&ex); - */ + CamelNNTPStore *nntp_store = CAMEL_NNTP_STORE (object); + if (nntp_store->newsrc) + camel_nntp_newsrc_write (nntp_store->newsrc); } static void |