aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-05 07:06:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-05 07:06:41 +0800
commit45f3b7586781b65bc51cfd77630a06a505786159 (patch)
tree3bc273644195ec4a32dcb7ddb757f439c8ee119d /mail/mail-config.c
parentd579c1160d6cde0948e6f1a75a4a5dd67c6d74b1 (diff)
downloadgsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.gz
gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.tar.zst
gsoc2013-evolution-45f3b7586781b65bc51cfd77630a06a505786159.zip
Removed special-case code for NNTP support.
2002-07-04 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c: Removed special-case code for NNTP support. * mail-account-gui.c (mail_account_gui_setup): Allow configuration of both mail and news accounts. * component-factory.c (mail_load_storages): No longer need the is-account argument. * subscribe-dialog.c (populate_store_list): Don't special-case news accounts anymore. * mail-config.c (mail_config_get_default_news): Removed. (mail_config_get_news): Removed. (mail_config_add_news): Removed. (mail_config_remove_news): Removed. svn path=/trunk/; revision=17368
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c87
1 files changed, 4 insertions, 83 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index e3151513b3..58bb0f5ce8 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -104,8 +104,6 @@ typedef struct {
GSList *accounts;
int default_account;
- GSList *news;
-
char *pgp_path;
int pgp_type;
@@ -148,17 +146,17 @@ MailConfigSignature *
signature_copy (const MailConfigSignature *sig)
{
MailConfigSignature *ns;
-
+
g_return_val_if_fail (sig != NULL, NULL);
ns = g_new (MailConfigSignature, 1);
-
+
ns->id = sig->id;
ns->name = g_strdup (sig->name);
ns->filename = g_strdup (sig->filename);
ns->script = g_strdup (sig->script);
ns->html = sig->html;
-
+
return ns;
}
@@ -186,7 +184,7 @@ identity_copy (const MailConfigIdentity *id)
new->organization = g_strdup (id->organization);
new->def_signature = id->def_signature;
new->auto_signature = id->auto_signature;
-
+
return new;
}
@@ -351,12 +349,6 @@ mail_config_clear (void)
config->accounts = NULL;
}
- if (config->news) {
- g_slist_foreach (config->news, service_destroy_each, NULL);
- g_slist_free (config->news);
- config->news = NULL;
- }
-
g_free (config->pgp_path);
config->pgp_path = NULL;
@@ -807,29 +799,6 @@ config_read (void)
mail_config_set_default_account_num (default_num);
-#ifdef ENABLE_NNTP
- /* News */
-
- len = bonobo_config_get_long_with_default (config->db,
- "/News/Sources/num", 0, NULL);
- for (i = 0; i < len; i++) {
- MailConfigService *n;
- char *path, *r;
-
- path = g_strdup_printf ("/News/Sources/url_%d", i);
-
- if ((r = bonobo_config_get_string (config->db, path, NULL))) {
- n = g_new0 (MailConfigService, 1);
- n->url = r;
- n->enabled = TRUE;
- config->news = g_slist_append (config->news, n);
- }
-
- g_free (path);
-
- }
-#endif
-
/* Format */
config->send_html = bonobo_config_get_boolean_with_default (config->db,
"/Mail/Format/send_html", FALSE, NULL);
@@ -1175,24 +1144,6 @@ mail_config_write (void)
g_free (path);
}
-#ifdef ENABLE_NNTP
- /* News */
-
- len = g_slist_length (config->news);
- bonobo_config_set_long (config->db, "/News/Sources/num", len, NULL);
- for (i = 0; i < len; i++) {
- MailConfigService *n;
- char *path;
-
- n = g_slist_nth_data (config->news, i);
-
- path = g_strdup_printf ("/News/Sources/url_%d", i);
- bonobo_config_set_string_wrapper (config->db, path, n->url, NULL);
- g_free (path);
- }
-
-#endif
-
CORBA_exception_init (&ev);
Bonobo_ConfigDatabase_sync (config->db, &ev);
CORBA_exception_free (&ev);
@@ -2457,36 +2408,6 @@ mail_config_get_default_transport (void)
return NULL;
}
-const MailConfigService *
-mail_config_get_default_news (void)
-{
- if (!config->news)
- return NULL;
-
- return (MailConfigService *)config->news->data;
-}
-
-const GSList *
-mail_config_get_news (void)
-{
- return config->news;
-}
-
-void
-mail_config_add_news (MailConfigService *news)
-{
- config->news = g_slist_append (config->news, news);
-}
-
-const GSList *
-mail_config_remove_news (MailConfigService *news)
-{
- config->news = g_slist_remove (config->news, news);
- service_destroy (news);
-
- return config->news;
-}
-
GSList *
mail_config_get_sources (void)
{
2008-07-161-0/+17 * Update to 3.1.1.0wxs2008-07-092-4/+4 * - Update to 3.1.0.0miwi2008-06-232-6/+6 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1 * - Fix buildmiwi2008-06-043-18/+33 * - Update to 3.0.5.2miwi2008-05-307-53/+39 * - Update to 3.0.5.0miwi2008-03-272-4/+4 * Pass maintainership back to rnoland - he's back online.wxs2008-03-241-1/+1 * Reset maintainer due to bouncing mails.wxs2008-03-211-1/+1 * - Update to 3.0.4.2miwi2008-01-082-5/+9 * Update azureus to 3.0.3.4.flz2007-10-303-10/+41 * [MAINTAINER] net-p2p/azureus: update to 3.0.3.0edwin2007-10-035-9/+44 * - Update to 3.0.1.6miwi2007-07-122-4/+5 * - Update to 3.0.1.4miwi2007-06-142-5/+4 * - Use SF macro in MASTER_SITES.alepulver2007-05-262-56/+26 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * - Update to 3.0.1.2miwi2007-04-272-5/+4 * Update to 3.0.1.0.lx2007-04-182-4/+4 * Update to 3.0.0.8nox2007-04-052-9/+7 * Transfer maintainership to rnoland@2hip.net, who has submitted PRs aboutlinimon2007-04-011-1/+1 * - update to 2.5.0.4dinoex2007-02-042-6/+6 * - Remove static dependency on swt, it duplicate dependency based on optionspav2007-01-261-3/+1 * Add support for the updated swt and swt-devel portserwin2007-01-054-193/+25 * Update to 2.5.0.0lioux2006-09-254-28/+160 * o Update to 2.4.0.2 following required update of x11-toolkits/swt31lioux2006-03-204-7/+103 * o Use the proper version in distinfo checksum file. A distinfo filelioux2006-02-201-3/+3 * o Pacify portlint(1) by cleaning up BUILD_DEPENDSlioux2006-02-194-7/+25 * Populate newly create net-p2p category with these ports:pav2006-01-311-1/+1 * [PATCH] net/azureus: fix buildedwin2006-01-051-1/+1 * Also fix the swt31 dependency from java to x11-toolkits in RUN_DEPENDSerwin2006-01-041-1/+1 * swt31 is in x11-toolkits, not java.erwin2006-01-041-1/+1 * o No longer depend on swt libraries from eclipse; thus, removinglioux2006-01-042-33/+7 * Update to 2.3.0.6lioux2005-12-102-5/+5 * Add SHA256 checksumlioux2005-11-111-0/+1 * o Depend on jdk 1.4 instead of 1.5 since there have been too manylioux2005-11-072-3/+3 * Set JAVA_{EXTRACT,BUILD,RUN} appropriatlylioux2005-11-061-0/+3 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1 * o Make it possible to build against jdk 1.5 by adding javac optionlioux2005-11-022-3/+3 * EXTRACT_DEPENDS on java/eclipse since it has to be available atlioux2005-10-131-0/+2 * o Fix java/eclipse dependencies due to recent update of eclipse tolioux2005-10-121-15/+15 * Small protection layer in case the ports system is not completelylioux2005-10-061-0/+4 * o Fix PLISTlioux2005-09-191-1/+1 * Update to 2.3.0.4:lioux2005-09-104-16/+37 * BROKEN: Broken dependencykris2005-08-311-0/+2 * o azureus uses kio API which memory leaks under jdk 1.4 but the issuelioux2005-04-111-2/+2 * Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-121-1/+1 * o USE_JIKES=no because jikes breaks thee buildlioux2005-01-201-1/+7 * 1) FILESDIR/azureus: make sure azureus will save plugin updateslioux2005-01-152-3/+3 * o Build an azureus jar with a native jdk instead of downloading thelioux2005-01-144-13/+83 * o Update to <bsd.java.mk> standard 2.0lioux2005-01-132-7/+17 * o Update to latest version 2.2.0.2lioux2005-01-122-6/+4 * . Fix packing list.glewis2005-01-091-0/+1 * Reset bouncing maintainer address:kris2005-01-021-1/+1 * Fix WWW entry in pkg-descrhq2004-12-181-1/+1 * Fix a bug in the azureus startup script installed by the port: the regex usedhq2004-11-222-2/+2 * Fix a GUI display error by telling the application the operating system it ishq2004-11-152-2/+2 * Bump PORTREVISIONS for all ports that depend on atk or pango to ease in themarcus2004-11-081-0/+1