From: Art Cancro Date: Mon, 3 Mar 2014 16:26:20 +0000 (-0500) Subject: Added config.c_nntp_port to server and to conf protocol, but not to client X-Git-Tag: v9.01~125^2~2 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=597f6cc2278e4bb14a4387be32f7f1b9b1db7f5f Added config.c_nntp_port to server and to conf protocol, but not to client --- diff --git a/citadel/config.c b/citadel/config.c index 3d6527f38..5aee1d72a 100644 --- a/citadel/config.c +++ b/citadel/config.c @@ -1,7 +1,7 @@ /* * Read and write the citadel.config file * - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2014 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -91,6 +91,7 @@ void brand_new_installation_set_defaults(void) { config.c_managesieve_port = 2020; config.c_xmpp_c2s_port = 5222; config.c_xmpp_s2s_port = 5269; + config.c_nntp_port = 119; } void setcfglen(void) diff --git a/citadel/control.c b/citadel/control.c index f543e8d43..0bc49456e 100644 --- a/citadel/control.c +++ b/citadel/control.c @@ -1,7 +1,7 @@ /* * This module handles states which are global to the entire server. * - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2014 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -387,6 +387,7 @@ void cmd_conf(char *argbuf) cprintf("%d\n", config.c_guest_logins); cprintf("%d\n", config.c_port_number); cprintf("%d\n", config.c_ctdluid); + cprintf("%d\n", config.c_nntp_port); cprintf("000\n"); } @@ -657,6 +658,9 @@ void cmd_conf(char *argbuf) case 69: config.c_ctdluid = atoi(buf); break; + case 70: + config.c_nntp_port = atoi(buf); + break; } ++a; } diff --git a/citadel/include/ctdl_module.h b/citadel/include/ctdl_module.h index 7a8b5250d..36c48bbf3 100644 --- a/citadel/include/ctdl_module.h +++ b/citadel/include/ctdl_module.h @@ -384,6 +384,7 @@ struct config { time_t c_pop3_fastest; int c_spam_flag_only; int c_guest_logins; + int c_nntp_port; }; struct configlen { long c_nodename; diff --git a/citadel/modules/migrate/serv_migrate.c b/citadel/modules/migrate/serv_migrate.c index f4c8ef7b3..2005864a1 100644 --- a/citadel/modules/migrate/serv_migrate.c +++ b/citadel/modules/migrate/serv_migrate.c @@ -1,7 +1,7 @@ /* * This module dumps and/or loads the Citadel database in XML format. * - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2014 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -464,6 +464,7 @@ void migr_do_export(void) { cprintf("%ld\n", config.c_pop3_fetch); cprintf("%ld\n", config.c_pop3_fastest); cprintf("%d\n", config.c_spam_flag_only); + cprintf("%d\n", config.c_nntp_port); client_write("\n", 10); /* Export the control file */ @@ -642,6 +643,7 @@ int migr_config(void *data, const char *el) else if (!strcasecmp(el, "c_pop3_fetch")) config.c_pop3_fetch = atol(ChrPtr(migr_chardata)); else if (!strcasecmp(el, "c_pop3_fastest")) config.c_pop3_fastest = atol(ChrPtr(migr_chardata)); else if (!strcasecmp(el, "c_spam_flag_only")) config.c_spam_flag_only = atoi(ChrPtr(migr_chardata)); + else if (!strcasecmp(el, "c_nntp_port")) config.c_nntp_port = atoi(ChrPtr(migr_chardata)); else return 0; return 1; /* Found above...*/ } diff --git a/citadel/utils/setup.c b/citadel/utils/setup.c index 41bed6132..539876b26 100644 --- a/citadel/utils/setup.c +++ b/citadel/utils/setup.c @@ -1,7 +1,7 @@ /* * Citadel setup utility * - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2014 by the citadel.org team * * This program is open source software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 3. @@ -1147,6 +1147,7 @@ void set_default_values(void) GetDefaultVALINT(c_managesieve_port, 2020); GetDefaultVALINT(c_xmpp_c2s_port, 5222); GetDefaultVALINT(c_xmpp_s2s_port, 5269); + GetDefaultVALINT(c_nntp_port, 119); #endif }