From dac3e574bf268991651bedcf2bb0c70d70a5c5dc Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 5 Oct 2000 00:51:58 +0000 Subject: revert to old method (only use XOVER if OVER is supported.) 2000-10-04 Chris Toshok * providers/nntp/camel-nntp-utils.c (camel_nntp_get_headers): revert to old method (only use XOVER if OVER is supported.) * providers/nntp/camel-nntp-store.c (camel_nntp_store_get_overview_fmt): handle the case where the OVER extension isn't listed but LIST OVERVIEW.FMT works (again, INN 2.2). enable the OVER extension in this case. svn path=/trunk/; revision=5739 --- camel/providers/nntp/camel-nntp-utils.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'camel/providers/nntp/camel-nntp-utils.c') diff --git a/camel/providers/nntp/camel-nntp-utils.c b/camel/providers/nntp/camel-nntp-utils.c index b23d2c540d..e8ee9bb112 100644 --- a/camel/providers/nntp/camel-nntp-utils.c +++ b/camel/providers/nntp/camel-nntp-utils.c @@ -33,7 +33,7 @@ #include #include -static gboolean +static void get_XOVER_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, int first_message, int last_message, CamelException *ex) { @@ -107,13 +107,10 @@ get_XOVER_headers(CamelNNTPStore *nntp_store, CamelFolder *folder, } g_free (line); } - - return TRUE; } else { /* XXX */ g_warning ("weird nntp response for XOVER: %d\n", status); - return FALSE; } } @@ -240,7 +237,10 @@ camel_nntp_get_headers (CamelStore *store, } - if (!get_XOVER_headers (nntp_store, folder, first_message, last_message, ex)) { + if (nntp_store->extensions & CAMEL_NNTP_EXT_OVER) { + get_XOVER_headers (nntp_store, folder, first_message, last_message, ex); + } + else { g_warning ("need to fix get_HEAD_headers\n"); #if 0 get_HEAD_headers (nntp_store, folder, first_message, last_message, ex); -- cgit v1.2.3