- if (!strcasecmp(el, "config")) {
- config.c_enable_fulltext = 0; /* always disable */
- put_config();
- CtdlLogPrintf(CTDL_INFO, "Completed import of server configuration\n");
- }
-
- else if (!strcasecmp(el, "c_nodename")) safestrncpy(config.c_nodename, migr_chardata, sizeof config.c_nodename);
- else if (!strcasecmp(el, "c_fqdn")) safestrncpy(config.c_fqdn, migr_chardata, sizeof config.c_fqdn);
- else if (!strcasecmp(el, "c_humannode")) safestrncpy(config.c_humannode, migr_chardata, sizeof config.c_humannode);
- else if (!strcasecmp(el, "c_phonenum")) safestrncpy(config.c_phonenum, migr_chardata, sizeof config.c_phonenum);
- else if (!strcasecmp(el, "c_ctdluid")) config.c_ctdluid = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_creataide")) config.c_creataide = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_sleeping")) config.c_sleeping = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_initax")) config.c_initax = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_regiscall")) config.c_regiscall = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_twitdetect")) config.c_twitdetect = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_twitroom")) safestrncpy(config.c_twitroom, migr_chardata, sizeof config.c_twitroom);
- else if (!strcasecmp(el, "c_moreprompt")) safestrncpy(config.c_moreprompt, migr_chardata, sizeof config.c_moreprompt);
- else if (!strcasecmp(el, "c_restrict")) config.c_restrict = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_site_location")) safestrncpy(config.c_site_location, migr_chardata, sizeof config.c_site_location);
- else if (!strcasecmp(el, "c_sysadm")) safestrncpy(config.c_sysadm, migr_chardata, sizeof config.c_sysadm);
- else if (!strcasecmp(el, "c_setup_level")) config.c_setup_level = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_maxsessions")) config.c_maxsessions = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_ip_addr")) safestrncpy(config.c_ip_addr, migr_chardata, sizeof config.c_ip_addr);
- else if (!strcasecmp(el, "c_port_number")) config.c_port_number = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_ep_expire_mode")) config.c_ep.expire_mode = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_ep_expire_value")) config.c_ep.expire_value = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_userpurge")) config.c_userpurge = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_roompurge")) config.c_roompurge = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_logpages")) safestrncpy(config.c_logpages, migr_chardata, sizeof config.c_logpages);
- else if (!strcasecmp(el, "c_createax")) config.c_createax = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_maxmsglen")) config.c_maxmsglen = atol(migr_chardata);
- else if (!strcasecmp(el, "c_min_workers")) config.c_min_workers = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_max_workers")) config.c_max_workers = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_pop3_port")) config.c_pop3_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_smtp_port")) config.c_smtp_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_rfc822_strict_from")) config.c_rfc822_strict_from = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_aide_zap")) config.c_aide_zap = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_imap_port")) config.c_imap_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_net_freq")) config.c_net_freq = atol(migr_chardata);
- else if (!strcasecmp(el, "c_disable_newu")) config.c_disable_newu = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_enable_fulltext")) config.c_enable_fulltext = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_baseroom")) safestrncpy(config.c_baseroom, migr_chardata, sizeof config.c_baseroom);
- else if (!strcasecmp(el, "c_aideroom")) safestrncpy(config.c_aideroom, migr_chardata, sizeof config.c_aideroom);
- else if (!strcasecmp(el, "c_purge_hour")) config.c_purge_hour = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_mbxep_expire_mode")) config.c_mbxep.expire_mode = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_mbxep_expire_value")) config.c_mbxep.expire_value = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_ldap_host")) safestrncpy(config.c_ldap_host, migr_chardata, sizeof config.c_ldap_host);
- else if (!strcasecmp(el, "c_ldap_port")) config.c_ldap_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_ldap_base_dn")) safestrncpy(config.c_ldap_base_dn, migr_chardata, sizeof config.c_ldap_base_dn);
- else if (!strcasecmp(el, "c_ldap_bind_dn")) safestrncpy(config.c_ldap_bind_dn, migr_chardata, sizeof config.c_ldap_bind_dn);
- else if (!strcasecmp(el, "c_ldap_bind_pw")) safestrncpy(config.c_ldap_bind_pw, migr_chardata, sizeof config.c_ldap_bind_pw);
- else if (!strcasecmp(el, "c_msa_port")) config.c_msa_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_imaps_port")) config.c_imaps_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_pop3s_port")) config.c_pop3s_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_smtps_port")) config.c_smtps_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_auto_cull")) config.c_auto_cull = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_instant_expunge")) config.c_instant_expunge = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_allow_spoofing")) config.c_allow_spoofing = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_journal_email")) config.c_journal_email = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_journal_pubmsgs")) config.c_journal_pubmsgs = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_journal_dest")) safestrncpy(config.c_journal_dest, migr_chardata, sizeof config.c_journal_dest);
- else if (!strcasecmp(el, "c_default_cal_zone")) safestrncpy(config.c_default_cal_zone, migr_chardata, sizeof config.c_default_cal_zone);
- else if (!strcasecmp(el, "c_pftcpdict_port")) config.c_pftcpdict_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_managesieve_port")) config.c_managesieve_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_auth_mode")) config.c_auth_mode = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_funambol_host")) safestrncpy(config.c_funambol_host, migr_chardata, sizeof config.c_funambol_host);
- else if (!strcasecmp(el, "c_funambol_port")) config.c_funambol_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_funambol_source")) safestrncpy(config.c_funambol_source, migr_chardata, sizeof config.c_funambol_source);
- else if (!strcasecmp(el, "c_funambol_auth")) safestrncpy(config.c_funambol_auth, migr_chardata, sizeof config.c_funambol_auth);
- else if (!strcasecmp(el, "c_rbl_at_greeting")) config.c_rbl_at_greeting = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_master_user")) safestrncpy(config.c_master_user, migr_chardata, sizeof config.c_master_user);
- else if (!strcasecmp(el, "c_master_pass")) safestrncpy(config.c_master_pass, migr_chardata, sizeof config.c_master_pass);
- else if (!strcasecmp(el, "c_pager_program")) safestrncpy(config.c_pager_program, migr_chardata, sizeof config.c_pager_program);
- else if (!strcasecmp(el, "c_imap_keep_from")) config.c_imap_keep_from = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_xmpp_c2s_port")) config.c_xmpp_c2s_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_xmpp_s2s_port")) config.c_xmpp_s2s_port = atoi(migr_chardata);
- else if (!strcasecmp(el, "c_pop3_fetch")) config.c_pop3_fetch = atol(migr_chardata);
- else if (!strcasecmp(el, "c_pop3_fastest")) config.c_pop3_fastest = atol(migr_chardata);
- else if (!strcasecmp(el, "c_spam_flag_only")) config.c_spam_flag_only = atoi(migr_chardata);
-
- /*** CONTROL ***/
-
- else if (!strcasecmp(el, "control_highest")) CitControl.MMhighest = atol(migr_chardata);
- else if (!strcasecmp(el, "control_flags")) CitControl.MMflags = atoi(migr_chardata);
- else if (!strcasecmp(el, "control_nextuser")) CitControl.MMnextuser = atol(migr_chardata);
- else if (!strcasecmp(el, "control_nextroom")) CitControl.MMnextroom = atol(migr_chardata);
- else if (!strcasecmp(el, "control_version")) CitControl.version = atoi(migr_chardata);
-
- else if (!strcasecmp(el, "control")) {
- CitControl.MMfulltext = (-1L); /* always flush */
- put_control();
- CtdlLogPrintf(CTDL_INFO, "Completed import of control record\n");