Added setup for T-Mail fileboxes

This commit is contained in:
Michiel Broek 2004-01-11 21:35:31 +00:00
parent 0d8a2e7769
commit d76ab6bcb4
2 changed files with 100 additions and 86 deletions

View File

@ -2,6 +2,11 @@ $Id$
v0.39.6 11-Jan-2004 v0.39.6 11-Jan-2004
mbsetup:
Reorganised menu 1.4 screen 1 and 2.
Added settings for T-Mail filebox paths in the second screen
of menu 1.4.
v0.39.5 24-Dec-2003 - 11-Jan-2004 v0.39.5 24-Dec-2003 - 11-Jan-2004

View File

@ -227,108 +227,117 @@ void e_filenames(void)
void e_global2(void) void e_global2(void)
{ {
clr_index(); clr_index();
set_color(WHITE, BLACK);
mvprintw( 4, 6, "1.4 EDIT GLOBAL PATHS - 2");
set_color(CYAN, BLACK);
mvprintw( 6, 2, "1. Magic's");
mvprintw( 7, 2, "2. DOS path");
mvprintw( 8, 2, "3. Unix path");
mvprintw( 9, 2, "4. LeaveCase");
mvprintw(10, 2, "5. Nodelists");
mvprintw(11, 2, "6. Inbound");
mvprintw(12, 2, "7. Prot inb.");
mvprintw(13, 2, "8. Outbound");
mvprintw(14, 2, "9. Out queue");
mvprintw(15, 2, "10. *.msgs");
mvprintw(16, 2, "11. Bad TIC's");
mvprintw(17, 2, "12. TIC queue");
mvprintw(18, 2, "13. TMail DOS");
mvprintw(19, 2, "14. TMail Win");
for (;;) {
set_color(WHITE, BLACK); set_color(WHITE, BLACK);
mvprintw( 4, 6, "1.4 EDIT GLOBAL PATHS - 2"); show_str( 6,16,64, CFG.req_magic);
set_color(CYAN, BLACK); show_str( 7,16,64, CFG.dospath);
mvprintw( 6, 2, "1. Magic's"); show_str( 8,16,64, CFG.uxpath);
mvprintw( 7, 2, "2. DOS path"); show_bool(9,16, CFG.leavecase);
mvprintw( 8, 2, "3. Unix path"); show_str(10,16,64, CFG.nodelists);
mvprintw( 9, 2, "4. LeaveCase"); show_str(11,16,64, CFG.inbound);
mvprintw(10, 2, "5. Ftp base"); show_str(12,16,64, CFG.pinbound);
mvprintw(11, 2, "6. Arealists"); show_str(13,16,64, CFG.outbound);
mvprintw(12, 2, "7. Ext. edit"); show_str(14,16,64, CFG.out_queue);
mvprintw(13, 2, "8. Rules dir"); show_str(15,16,64, CFG.msgs_path);
show_str(16,16,64, CFG.badtic);
show_str(17,16,64, CFG.ticout);
show_str(18,16,64, CFG.tmailshort);
show_str(19,16,64, CFG.tmaillong);
for (;;) { switch (select_menu(14)) {
set_color(WHITE, BLACK); case 0: return;
show_str( 6,16,64, CFG.req_magic); case 1: E_PTH( 6,16,64, CFG.req_magic, "The path to the ^magic filerequest^ files.", 0750)
show_str( 7,16,64, CFG.dospath); case 2: E_STR( 7,16,64, CFG.dospath, "The translated ^DOS^ drive and path, empty disables translation")
show_str( 8,16,64, CFG.uxpath); case 3: E_PTH( 8,16,64, CFG.uxpath, "The translated ^Unix^ path.", 0750)
show_bool(9,16, CFG.leavecase); case 4: E_BOOL(9,16, CFG.leavecase, "^Leave^ outbound flo filenames as is, ^No^ forces uppercase.")
show_str(10,16,64, CFG.ftp_base); case 5: E_PTH(10,16,64, CFG.nodelists, "The path to the ^nodelists^.", 0750)
show_str(11,16,64, CFG.alists_path); case 6: E_PTH(11,16,64, CFG.inbound, "The path to the ^inbound^ for unknown systems.", 0750)
show_str(12,16,64, CFG.externaleditor); case 7: E_PTH(12,16,64, CFG.pinbound, "The path to the ^nodelists^ for protected systems.", 0750)
show_str(13,16,64, CFG.rulesdir); case 8: E_PTH(13,16,64, CFG.outbound, "The path to the base ^outbound^ directory.", 0750)
case 9: E_PTH(14,16,64, CFG.out_queue, "The path to the ^temp outbound queue^ directory.", 0750)
switch(select_menu(8)) { case 10:E_PTH(15,16,64, CFG.msgs_path, "The path to the ^*.msgs^ directory.", 0750)
case 0: return; case 11:E_PTH(16,16,64, CFG.badtic, "The path to the ^bad tic files^.", 0750)
case 1: E_PTH( 6,16,64, CFG.req_magic, "The path to the ^magic filerequest^ files.", 0750) case 12:E_PTH(17,16,64, CFG.ticout, "The path to the ^outgoing TIC^ files.", 0750)
case 2: E_STR( 7,16,64, CFG.dospath, "The translated ^DOS^ drive and path, empty disables translation") case 13:if (strlen(CFG.tmailshort) == 0)
case 3: E_PTH( 8,16,64, CFG.uxpath, "The translated ^Unix^ path.", 0750) sprintf(CFG.tmailshort, "%s/var/tmail/short", getenv("MBSE_ROOT"));
case 4: E_BOOL(9,16, CFG.leavecase, "^Leave^ outbound flo filenames as is, ^No^ forces uppercase.") E_PTH(18,16,64, CFG.tmailshort, "The ^T-Mail 8.3 basepath^ (blank = disable)", 0770)
case 5: E_PTH(10,16,64, CFG.ftp_base, "The ^FTP home^ directory to strip of the real directory", 0750) case 14:if (strlen(CFG.tmaillong) == 0)
case 6: E_PTH(11,16,64, CFG.alists_path, "The path where ^area lists^ and ^filebone lists^ are stored.", 0750) sprintf(CFG.tmaillong, "%s/var/tmail/long", getenv("MBSE_ROOT"));
case 7: E_STR(12,16,64, CFG.externaleditor, E_PTH(19,16,64, CFG.tmaillong, "The ^T-Mail long basepath^ (blank = disable)", 0770)
"The full path and filename to the ^external message editor^ (blank=disable)") }
case 8: E_PTH(13,16,64, CFG.rulesdir, "The path where the ^arearules^ are stored", 0750) }
}
};
} }
void s_global(void) void s_global(void)
{ {
clr_index(); clr_index();
set_color(WHITE, BLACK); set_color(WHITE, BLACK);
mvprintw( 4, 6, "1.4 EDIT GLOBAL PATHS"); mvprintw( 4, 6, "1.4 EDIT GLOBAL PATHS");
set_color(CYAN, BLACK); set_color(CYAN, BLACK);
mvprintw( 6, 2, "1. BBS menus"); mvprintw( 6, 2, "1. BBS menus");
mvprintw( 7, 2, "2. Txtfiles"); mvprintw( 7, 2, "2. Txtfiles");
mvprintw( 8, 2, "3. Macro's"); mvprintw( 8, 2, "3. Macro's");
mvprintw( 9, 2, "4. Home dirs"); mvprintw( 9, 2, "4. Home dirs");
mvprintw(10, 2, "5. Nodelists"); mvprintw(10, 2, "5. Ftp base");
mvprintw(11, 2, "6. Inbound"); mvprintw(11, 2, "6. Arealists");
mvprintw(12, 2, "7. Prot inb."); mvprintw(12, 2, "7. Ext. edit");
mvprintw(13, 2, "8. Outbound"); mvprintw(13, 2, "8. Rules dir");
mvprintw(14, 2, "9. Out queue"); mvprintw(14, 2, "9. Next Screen");
mvprintw(15, 2, "10. *.msgs");
mvprintw(16, 2, "11. Bad TIC's");
mvprintw(17, 2, "12. TIC queue");
mvprintw(18, 2, "13. Next Screen");
} }
void e_global(void) void e_global(void)
{ {
s_global(); s_global();
for (;;) { for (;;) {
set_color(WHITE, BLACK); set_color(WHITE, BLACK);
show_str( 6,16,64, CFG.bbs_menus); show_str( 6,16,64, CFG.bbs_menus);
show_str( 7,16,64, CFG.bbs_txtfiles); show_str( 7,16,64, CFG.bbs_txtfiles);
show_str( 8,16,64, CFG.bbs_macros); show_str( 8,16,64, CFG.bbs_macros);
show_str( 9,16,64, CFG.bbs_usersdir); show_str( 9,16,64, CFG.bbs_usersdir);
show_str(10,16,64, CFG.nodelists); show_str(10,16,64, CFG.ftp_base);
show_str(11,16,64, CFG.inbound); show_str(11,16,64, CFG.alists_path);
show_str(12,16,64, CFG.pinbound); show_str(12,16,64, CFG.externaleditor);
show_str(13,16,64, CFG.outbound); show_str(13,16,64, CFG.rulesdir);
show_str(14,16,64, CFG.out_queue);
show_str(15,16,64, CFG.msgs_path);
show_str(16,16,64, CFG.badtic);
show_str(17,16,64, CFG.ticout);
switch(select_menu(13)) { switch (select_menu(9)) {
case 0: return; case 0: return;
case 1: E_PTH( 6,16,64, CFG.bbs_menus, "The path to the ^default menus^.", 0750) case 1: E_PTH( 6,16,64, CFG.bbs_menus, "The path to the ^default menus^.", 0750)
case 2: E_PTH( 7,16,64, CFG.bbs_txtfiles, "The path to the ^default textfiles^.", 0750) case 2: E_PTH( 7,16,64, CFG.bbs_txtfiles, "The path to the ^default textfiles^.", 0750)
case 3: E_PTH( 8,16,64, CFG.bbs_macros, "The path to the ^default macro templates^.", 0750) case 3: E_PTH( 8,16,64, CFG.bbs_macros, "The path to the ^default macro templates^.", 0750)
case 4: E_PTH( 9,16,64, CFG.bbs_usersdir, "The path to the ^users home^ directories.", 0770) case 4: E_PTH( 9,16,64, CFG.bbs_usersdir, "The path to the ^users home^ directories.", 0770)
case 5: E_PTH(10,16,64, CFG.nodelists, "The path to the ^nodelists^.", 0750) case 5: E_PTH(10,16,64, CFG.ftp_base, "The ^FTP home^ directory to strip of the real directory", 0750)
case 6: E_PTH(11,16,64, CFG.inbound, "The path to the ^inbound^ for unknown systems.", 0750) case 6: E_PTH(11,16,64, CFG.alists_path, "The path where ^area lists^ and ^filebone lists^ are stored.", 0750)
case 7: E_PTH(12,16,64, CFG.pinbound, "The path to the ^nodelists^ for protected systems.", 0750) case 7: E_STR(12,16,64, CFG.externaleditor, "The full path and filename to the ^external msg editor^ (blank=disable)")
case 8: E_PTH(13,16,64, CFG.outbound, "The path to the base ^outbound^ directory.", 0750) case 8: E_PTH(13,16,64, CFG.rulesdir, "The path where the ^arearules^ are stored", 0750)
case 9: E_PTH(14,16,64, CFG.out_queue, "The path to the ^temp outbound queue^ directory.", 0750) case 9: e_global2();
case 10:E_PTH(15,16,64, CFG.msgs_path, "The path to the ^*.msgs^ directory.", 0750) s_global();
case 11:E_PTH(16,16,64, CFG.badtic, "The path to the ^bad tic files^.", 0750) break;
case 12:E_PTH(17,16,64, CFG.ticout, "The path to the ^outgoing TIC^ files.", 0750) }
case 13:e_global2(); }
s_global();
break;
}
};
} }