From: Art Cancro Date: Wed, 1 Jun 2005 18:31:50 +0000 (+0000) Subject: * serv_vandelay.c: updated the export format to include some of the config X-Git-Tag: v7.86~4873 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=3ba63fc22d774a133bb43d24c0b97954c6ae198d * serv_vandelay.c: updated the export format to include some of the config items we missed. --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 3c075a649..7d417c34f 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -6764,4 +6764,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import - diff --git a/citadel/citadel.h b/citadel/citadel.h index 24b5987ee..b0e72d6f9 100644 --- a/citadel/citadel.h +++ b/citadel/citadel.h @@ -47,7 +47,7 @@ extern "C" { */ #define REV_LEVEL 651 /* This version */ #define REV_MIN 591 /* Oldest compatible database */ -#define EXPORT_REV_MIN 626 /* Oldest compatible export files */ +#define EXPORT_REV_MIN 651 /* Oldest compatible export files */ #define SERVER_TYPE 0 /* zero for stock Citadel; other developers please obtain SERVER_TYPE codes for your implementations */ diff --git a/citadel/serv_vandelay.c b/citadel/serv_vandelay.c index 4cc7c0ffb..d5f9340ba 100644 --- a/citadel/serv_vandelay.c +++ b/citadel/serv_vandelay.c @@ -302,6 +302,13 @@ void artv_do_export(void) { cprintf("%d\n", config.c_imaps_port); cprintf("%d\n", config.c_pop3s_port); cprintf("%d\n", config.c_smtps_port); + cprintf("%d\n", config.c_rfc822_strict_from); + cprintf("%d\n", config.c_aide_zap); + cprintf("%d\n", config.c_imap_port); + cprintf("%ld\n", config.c_net_freq); + cprintf("%d\n", config.c_disable_newu); + cprintf("%s\n", config.c_baseroom); + cprintf("%s\n", config.c_aideroom); /* Export the control file */ get_control(); @@ -369,6 +376,14 @@ void artv_import_config(void) { client_getln(buf, sizeof buf); config.c_imaps_port = atoi(buf); client_getln(buf, sizeof buf); config.c_pop3s_port = atoi(buf); client_getln(buf, sizeof buf); config.c_smtps_port = atoi(buf); + client_getln(buf, sizeof buf); config.c_rfc822_strict_from = atoi(buf); + client_getln(buf, sizeof buf); config.c_aide_zap = atoi(buf); + client_getln(buf, sizeof buf); config.c_imap_port = atoi(buf); + client_getln(buf, sizeof buf); config.c_net_freq = atol(buf); + client_getln(buf, sizeof buf); config.c_disable_newu = atoi(buf); + client_getln(config.c_baseroom, sizeof config.c_baseroom); + client_getln(config.c_aideroom, sizeof config.c_aideroom); + config.c_enable_fulltext = 0; /* always disable */ put_config(); lprintf(CTDL_INFO, "Imported config file\n"); } @@ -384,6 +399,7 @@ void artv_import_control(void) { client_getln(buf, sizeof buf); CitControl.MMnextuser = atol(buf); client_getln(buf, sizeof buf); CitControl.MMnextroom = atol(buf); client_getln(buf, sizeof buf); CitControl.version = atoi(buf); + CitControl.MMfulltext = (-1L); /* always flush */ put_control(); lprintf(CTDL_INFO, "Imported control file\n"); }