X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fupgrade%2Fserv_upgrade.c;h=085f5f046d1ebca105e936a0ab0ef61e237cf79a;hb=6050cb23108ee10dafcceb65b9cafab51c013ae0;hp=ebd48a213590f329fa7a85efa2fd77dee92caca0;hpb=f1e560dd30dbb9b28495d70d3880e509ba54ba73;p=citadel.git diff --git a/citadel/modules/upgrade/serv_upgrade.c b/citadel/modules/upgrade/serv_upgrade.c index ebd48a213..085f5f046 100644 --- a/citadel/modules/upgrade/serv_upgrade.c +++ b/citadel/modules/upgrade/serv_upgrade.c @@ -1,7 +1,7 @@ /* * Transparently handle the upgrading of server data formats. * - * 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. @@ -291,6 +291,11 @@ void update_config(void) { config.c_xmpp_s2s_port = 5269; } + if (CitControl.version < 830) { + config.c_nntp_port = 119; + config.c_nntps_port = 563; + } + if (IsEmptyStr(config.c_default_cal_zone)) { guess_time_zone(); } @@ -345,6 +350,18 @@ void check_server_upgrades(void) { if (CitControl.version < 790) { remove_thread_users(); } + if (CitControl.version < 810) { + struct ctdlroom QRoom; + if (!CtdlGetRoom(&QRoom, SMTP_SPOOLOUT_ROOM)) { + QRoom.QRdefaultview = VIEW_QUEUE; + CtdlPutRoom(&QRoom); + } + if (!CtdlGetRoom(&QRoom, FNBL_QUEUE_ROOM)) { + QRoom.QRdefaultview = VIEW_QUEUE; + CtdlPutRoom(&QRoom); + } + } + CitControl.version = REV_LEVEL; /*