/*
* Configuration screens that are part of the text mode client.
*
- * Copyright (c) 1987-2014 by the citadel.org team
+ * Copyright (c) 1987-2017 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.
#include <stdarg.h>
#include <libcitadel.h>
#include "sysdep.h"
-///#include "citadel.h"
#include "citadel_ipc.h"
#include "citadel_decls.h"
#include "tuiconfig.h"
#include "messages.h"
#include "routines.h"
#include "commands.h"
-///#ifndef HAVE_SNPRINTF
-///#include "snprintf.h"
-///#endif
#include "screen.h"
/* work around solaris include files */
&sc[48][0], 127);
}
- /* Funambol push stuff */
- int yes_funambol = 0;
- if (strlen(sc[53]) > 0) yes_funambol = 1;
- yes_funambol = boolprompt("Connect to an external Funambol sync server", yes_funambol);
- if (yes_funambol) {
- strprompt("Funambol server (blank to disable)", &sc[53][0], 63);
- strprompt("Funambol server port", &sc[54][0], 5);
- strprompt("Funambol sync source", &sc[55][0], 63);
- strprompt("Funambol authentication details (user:pass in Base64)", &sc[56][0],63);
- }
- else {
- sc[53][0] = 0;
- sc[54][0] = 0;
- sc[55][0] = 0;
- sc[56][0] = 0;
- }
+ /* No more Funambol */
+ sc[53][0] = 0;
+ sc[54][0] = 0;
+ sc[55][0] = 0;
+ sc[56][0] = 0;
/* External pager stuff */
int yes_pager = 0;
int r;
if (IsEmptyStr(editor_path)) {
- scr_printf("You must have an external editor configured in"
- " order to use this function.\n");
+ scr_printf("You must have an external editor configured in order to use this function.\n");
return;
}
" Remote POP3 host "
" User name "
"Keep on server? "
- "Fetching inteval"
"\n");
color(DIM_WHITE);
scr_printf( "--- "
"---------------------------- "
"---------------------------- "
"--------------- "
- "---------------- "
"\n");
for (i=0; i<num_recs; ++i) {
color(DIM_WHITE);
scr_printf("%-28s ", buf);
color(BRIGHT_CYAN);
- scr_printf("%-15s ", (extract_int(recs[i], 4) ? "Yes" : "No") );
- color(BRIGHT_MAGENTA);
- scr_printf("%ld\n", extract_long(recs[i], 5) );
+ scr_printf("%-15s\n", (extract_int(recs[i], 4) ? "Yes" : "No") );
color(DIM_WHITE);
}
scr_printf("Keep messages on server instead of deleting them? ");
sprintf(&buf[strlen(buf)], "%d", yesno());
strcat(buf, "|");
- newprompt("Enter interval : ", &buf[strlen(buf)], 5);
- strcat(buf, "|");
recs[num_recs-1] = strdup(buf);
modified = 1;
break;