diff options
author | Meilof Veeningen <meilof@wanadoo.nl> | 2004-01-13 06:20:40 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-01-13 06:20:40 +0800 |
commit | 70f49bc0d7ce40521c4c99b7c9dbe6255db2c788 (patch) | |
tree | 6a1cd1a9114c3cb5d64dfe10c6fd08f39e853b03 /camel/providers/nntp/camel-nntp-provider.c | |
parent | fb0dddb43d9b8a502c6c32dc10e6e485f35bec74 (diff) | |
download | gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.tar gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.tar.gz gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.tar.bz2 gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.tar.lz gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.tar.xz gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.tar.zst gsoc2013-evolution-70f49bc0d7ce40521c4c99b7c9dbe6255db2c788.zip |
now based on discofolder, cache_message and append_message implemented,
2004-01-12 Meilof Veeningen <meilof@wanadoo.nl>
* providers/nntp/camel-nntp-folder.[ch]: now based on discofolder,
cache_message and append_message implemented, only retrieve messages
when we are subscribed, some stubs
* providers/nntp/camel-nntp-provider.c: newsgroup name display
settings, password authentication, fix for check_equal where the
protocols wouldn't be checked
* providers/nntp/camel-nntp-store.[ch]: base on discostore with
online/offline support, subscriptions, downloading changed parts of
the newsgroup list, some stubs, authentication, automatic reconnect
* providers/nntp/camel-nntp-store-summary.[ch]: NNTP store
summary based on IMAP code
* providers/nntp/camel-nntp-summary.c: save summary after xover
* providers/nntp/camel-nntp-grouplist.h: added CamelNNTPGroupList
structs
* providers/nntp/Makefile.am: added store summary
svn path=/trunk/; revision=24178
Diffstat (limited to 'camel/providers/nntp/camel-nntp-provider.c')
-rw-r--r-- | camel/providers/nntp/camel-nntp-provider.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/camel/providers/nntp/camel-nntp-provider.c b/camel/providers/nntp/camel-nntp-provider.c index 8f54b3ee98..886c09983e 100644 --- a/camel/providers/nntp/camel-nntp-provider.c +++ b/camel/providers/nntp/camel-nntp-provider.c @@ -36,6 +36,17 @@ static guint nntp_url_hash (gconstpointer key); static gint check_equal (char *s1, char *s2); static gint nntp_url_equal (gconstpointer a, gconstpointer b); +CamelProviderConfEntry nntp_conf_entries[] = { + { CAMEL_PROVIDER_CONF_SECTION_START, "folders", NULL, + N_("Folders") }, + { CAMEL_PROVIDER_CONF_CHECKBOX, "show_short_notation", NULL, + N_("Show folders in short notation (e.g. c.o.linux rather than comp.os.linux)"), "1" }, + { CAMEL_PROVIDER_CONF_CHECKBOX, "folder_hierarchy_relative", NULL, + N_("In the subscription dialog, show relative folder names"), "1" }, + { CAMEL_PROVIDER_CONF_SECTION_END }, + { CAMEL_PROVIDER_CONF_END } +}; + static CamelProvider news_provider = { "nntp", N_("USENET news"), @@ -51,9 +62,21 @@ static CamelProvider news_provider = { CAMEL_URL_NEED_HOST | CAMEL_URL_ALLOW_USER | CAMEL_URL_ALLOW_PASSWORD | CAMEL_URL_ALLOW_AUTH, + nntp_conf_entries + /* ... */ }; +CamelServiceAuthType camel_nntp_password_authtype = { + N_("Password"), + + N_("This option will authenticate with the NNTP server using a " + "plaintext password."), + + "", + TRUE +}; + void camel_provider_module_init (CamelSession *session) { @@ -62,6 +85,7 @@ camel_provider_module_init (CamelSession *session) news_provider.url_hash = nntp_url_hash; news_provider.url_equal = nntp_url_equal; + news_provider.authtypes = g_list_append (NULL, &camel_nntp_password_authtype); camel_session_register_provider (session, &news_provider); } @@ -107,7 +131,8 @@ nntp_url_equal (gconstpointer a, gconstpointer b) { const CamelURL *u1 = a, *u2 = b; - return check_equal (u1->user, u2->user) + return check_equal(u1->protocol, u2->protocol) + && check_equal (u1->user, u2->user) && check_equal (u1->host, u2->host) && u1->port == u2->port; } |