diff --git a/ChangeLog b/ChangeLog index 96a210c9..4ad42596 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ $Id$ 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 diff --git a/mbsetup/m_global.c b/mbsetup/m_global.c index 49dabf7c..f459fdb1 100644 --- a/mbsetup/m_global.c +++ b/mbsetup/m_global.c @@ -227,108 +227,117 @@ void e_filenames(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); - 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. Ftp base"); - mvprintw(11, 2, "6. Arealists"); - mvprintw(12, 2, "7. Ext. edit"); - mvprintw(13, 2, "8. Rules dir"); + show_str( 6,16,64, CFG.req_magic); + show_str( 7,16,64, CFG.dospath); + show_str( 8,16,64, CFG.uxpath); + show_bool(9,16, CFG.leavecase); + show_str(10,16,64, CFG.nodelists); + show_str(11,16,64, CFG.inbound); + show_str(12,16,64, CFG.pinbound); + show_str(13,16,64, CFG.outbound); + 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); + show_str(18,16,64, CFG.tmailshort); + show_str(19,16,64, CFG.tmaillong); - for (;;) { - set_color(WHITE, BLACK); - show_str( 6,16,64, CFG.req_magic); - show_str( 7,16,64, CFG.dospath); - show_str( 8,16,64, CFG.uxpath); - show_bool(9,16, CFG.leavecase); - show_str(10,16,64, CFG.ftp_base); - show_str(11,16,64, CFG.alists_path); - show_str(12,16,64, CFG.externaleditor); - show_str(13,16,64, CFG.rulesdir); - - switch(select_menu(8)) { - case 0: return; - case 1: E_PTH( 6,16,64, CFG.req_magic, "The path to the ^magic filerequest^ files.", 0750) - case 2: E_STR( 7,16,64, CFG.dospath, "The translated ^DOS^ drive and path, empty disables translation") - case 3: E_PTH( 8,16,64, CFG.uxpath, "The translated ^Unix^ path.", 0750) - case 4: E_BOOL(9,16, CFG.leavecase, "^Leave^ outbound flo filenames as is, ^No^ forces uppercase.") - 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.alists_path, "The path where ^area lists^ and ^filebone lists^ are stored.", 0750) - case 7: E_STR(12,16,64, CFG.externaleditor, - "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) - } - }; + switch (select_menu(14)) { + case 0: return; + case 1: E_PTH( 6,16,64, CFG.req_magic, "The path to the ^magic filerequest^ files.", 0750) + case 2: E_STR( 7,16,64, CFG.dospath, "The translated ^DOS^ drive and path, empty disables translation") + case 3: E_PTH( 8,16,64, CFG.uxpath, "The translated ^Unix^ path.", 0750) + case 4: E_BOOL(9,16, CFG.leavecase, "^Leave^ outbound flo filenames as is, ^No^ forces uppercase.") + case 5: E_PTH(10,16,64, CFG.nodelists, "The path to the ^nodelists^.", 0750) + case 6: E_PTH(11,16,64, CFG.inbound, "The path to the ^inbound^ for unknown systems.", 0750) + case 7: E_PTH(12,16,64, CFG.pinbound, "The path to the ^nodelists^ for protected systems.", 0750) + 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) + case 10:E_PTH(15,16,64, CFG.msgs_path, "The path to the ^*.msgs^ directory.", 0750) + case 11:E_PTH(16,16,64, CFG.badtic, "The path to the ^bad tic files^.", 0750) + case 12:E_PTH(17,16,64, CFG.ticout, "The path to the ^outgoing TIC^ files.", 0750) + case 13:if (strlen(CFG.tmailshort) == 0) + sprintf(CFG.tmailshort, "%s/var/tmail/short", getenv("MBSE_ROOT")); + E_PTH(18,16,64, CFG.tmailshort, "The ^T-Mail 8.3 basepath^ (blank = disable)", 0770) + case 14:if (strlen(CFG.tmaillong) == 0) + sprintf(CFG.tmaillong, "%s/var/tmail/long", getenv("MBSE_ROOT")); + E_PTH(19,16,64, CFG.tmaillong, "The ^T-Mail long basepath^ (blank = disable)", 0770) + } + } } void s_global(void) { - clr_index(); - set_color(WHITE, BLACK); - mvprintw( 4, 6, "1.4 EDIT GLOBAL PATHS"); - set_color(CYAN, BLACK); - mvprintw( 6, 2, "1. BBS menus"); - mvprintw( 7, 2, "2. Txtfiles"); - mvprintw( 8, 2, "3. Macro's"); - mvprintw( 9, 2, "4. Home dirs"); - 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. Next Screen"); + clr_index(); + set_color(WHITE, BLACK); + mvprintw( 4, 6, "1.4 EDIT GLOBAL PATHS"); + set_color(CYAN, BLACK); + mvprintw( 6, 2, "1. BBS menus"); + mvprintw( 7, 2, "2. Txtfiles"); + mvprintw( 8, 2, "3. Macro's"); + mvprintw( 9, 2, "4. Home dirs"); + mvprintw(10, 2, "5. Ftp base"); + mvprintw(11, 2, "6. Arealists"); + mvprintw(12, 2, "7. Ext. edit"); + mvprintw(13, 2, "8. Rules dir"); + mvprintw(14, 2, "9. Next Screen"); } void e_global(void) { - s_global(); + s_global(); - for (;;) { - set_color(WHITE, BLACK); - show_str( 6,16,64, CFG.bbs_menus); - show_str( 7,16,64, CFG.bbs_txtfiles); - show_str( 8,16,64, CFG.bbs_macros); - show_str( 9,16,64, CFG.bbs_usersdir); - show_str(10,16,64, CFG.nodelists); - show_str(11,16,64, CFG.inbound); - show_str(12,16,64, CFG.pinbound); - show_str(13,16,64, CFG.outbound); - 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); + for (;;) { + set_color(WHITE, BLACK); + show_str( 6,16,64, CFG.bbs_menus); + show_str( 7,16,64, CFG.bbs_txtfiles); + show_str( 8,16,64, CFG.bbs_macros); + show_str( 9,16,64, CFG.bbs_usersdir); + show_str(10,16,64, CFG.ftp_base); + show_str(11,16,64, CFG.alists_path); + show_str(12,16,64, CFG.externaleditor); + show_str(13,16,64, CFG.rulesdir); - switch(select_menu(13)) { - case 0: return; - 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 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 5: E_PTH(10,16,64, CFG.nodelists, "The path to the ^nodelists^.", 0750) - case 6: E_PTH(11,16,64, CFG.inbound, "The path to the ^inbound^ for unknown systems.", 0750) - case 7: E_PTH(12,16,64, CFG.pinbound, "The path to the ^nodelists^ for protected systems.", 0750) - 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) - case 10:E_PTH(15,16,64, CFG.msgs_path, "The path to the ^*.msgs^ directory.", 0750) - case 11:E_PTH(16,16,64, CFG.badtic, "The path to the ^bad tic files^.", 0750) - case 12:E_PTH(17,16,64, CFG.ticout, "The path to the ^outgoing TIC^ files.", 0750) - case 13:e_global2(); - s_global(); - break; - } - }; + switch (select_menu(9)) { + case 0: return; + 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 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 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.alists_path, "The path where ^area lists^ and ^filebone lists^ are stored.", 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.rulesdir, "The path where the ^arearules^ are stored", 0750) + case 9: e_global2(); + s_global(); + break; + } + } }