Newer
Older
}
}
if (msk == MSK_DEL || msk == MSK_CUT) {
if(msk == MSK_CUT)
memcpy(&savnodecfg, &cfg.nodecfg[i], sizeof(nodecfg_t));
cfg.nodecfgs--;
if(cfg.nodecfgs<=0) {
cfg.nodecfgs=0;
}
for(u=i;u<cfg.nodecfgs;u++)
memcpy(&cfg.nodecfg[u],&cfg.nodecfg[u+1]
}
if (msk == MSK_COPY) {
memcpy(&savnodecfg,&cfg.nodecfg[i],sizeof(nodecfg_t));
}
if (msk == MSK_PASTE) {
if(!new_node(i))
continue;
memcpy(&cfg.nodecfg[i],&savnodecfg,sizeof(nodecfg_t));
}
while(1) {
uifc.helpbuf=
"~ Linked Node Settings ~\n"
"\n"
"`Address` is the FidoNet-style address in the Zone:Net/Node (3D) or\n"
" Zone:Net/Node.Point (4D) format. The wildcard word '`ALL`' may be used\n"
" in place of one of the fields to create a node configuration which\n"
" will apply to *all* nodes matching that address pattern.\n"
" e.g. '`1:ALL`' matches all nodes within FidoNet Zone 1.\n"
"\n"
"`Name` is name of the system operator of the configured node. This is used\n"
" as the destination name for AreaFix Notification NetMail messages.\n"
"\n"
"`Comment` is a note to yourself about this node. Setting this to the\n"
" BBS name or official FidoNet title corresponding with the configured\n"
" node can be a helpful reminder to yourself later.\n"
"\n"
"`Archive Type` is the name of an archive type corresponding with one of\n"
" your configured archive types or '`None`'. This archive type will\n"
" be used when creating EchoMail bundles or if `None`, raw/uncompressed\n"
" EchoMail packets will be sent to this node.\n"
" This setting may be managed by the node using AreaFix requests.\n"
"\n"
"`Packet Type` is the type of outbound packet generated for this node.\n"
" Incoming packet types are automatically detected from among the list\n"
" of supported packet types (`2`, `2.2`, `2e`, and `2+`).\n"
" The default outbound packet type is `2+`.\n"
"\n"
"`Packet Password` is an optional password that may be added to outbound\n"
" packets for this node. Incoming packet passwords are compared with\n"
" this password value. If this password is blank/empty and `Strict\n"
" Packet Passwords` are enabled, then incoming packets from this node\n"
" must also have no password. Packet passwords are case insensitive.\n"
" This setting may be managed by the node using AreaFix requests.\n"
"\n"
"`Session Password` is the password that will be used for authenticated\n"
" BinkP sessions with this node. Session passwords are case sensitive.\n"
" This password is only used by BinkIT (if you choose to use it).\n"
"\n"
"`TIC File Password` is an optional password that may be configured here\n"
" (and in your `sbbsecho.ini` file) for use by `tickit.js` when creating\n"
" or authenticating `.TIC` files.\n"
" This setting may be managed by the node using AreaFix requests.\n"
"\n"
"`AreaFix Support` is a toggle that determines whether or not this node\n"
" may send AreaFix NetMail requests to your system to perform remote\n"
" area and account management.\n"
"\n"
"`AreaFix Password` is an optional password used to authenticate inbound\n"
" AreaFix NetMail requests (Remote Area Management) from this node.\n"
" AreaFix Passwords are case insensitive.\n"
" This setting may be managed by the node using AreaFix requests.\n"
"\n"
"`EchoList Keys` is a list of keys which enable AreaFix access to one or\n"
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
" more additional EchoLists.\n"
"\n"
"`Status` is the default mode for sending mail to this node: `Normal`, `Hold`\n"
" (wait for pickup) or `Crash` (immediate).\n"
"\n"
"`Direct` determines whether to connect to this node directly (whenever\n"
" possible) when sending mail to this node.\n"
"\n"
"`Passive` is used to temporarily disable (pause) the packing and sending\n"
" of EchoMail for this node. The opposite of Passive is `Active`.\n"
" This setting may be managed by the node using AreaFix requests.\n"
"\n"
"`Send Notify List` is used to flag nodes that you want notified via\n"
" NetMail of their current AreaFix settings whenever SBBSecho is run\n"
" with the '`G`' option.\n"
"\n"
"`Uplink for Message Groups` is an optional list of Message Groups (short\n"
" names) for which this node is a hub/uplink for your system. This\n"
" setting is used in combination with the `Auto Add Sub-boards` feature\n"
" to auto-link hubs with the newly added areas in your Area File.\n"
"\n"
"`Local Address` is an optional local system address (AKA) to use when\n"
" sending packets to this node. When a Local Address is not specified\n"
" SBBSecho will automatically choose the local address that matches\n"
" the destination address (zone and net number) the closest\n"
" (Best Match).\n"
"\n"
"`Route To` is only used in Binkley-Style Outbound (BSO/FLO) operating\n"
" mode and is used to set the FTN address to route mail for this node.\n"
"\n"
"`Inbox Directory` is only used in BSO operating mode and is an optional\n"
" alternate directory to search for incoming files from this node\n"
" (e.g. used in combination with BinkD's ibox setting).\n"
"\n"
"`Outbox Directory` is only used in BSO operating mode and is an optional\n"
" alternate directory to place outbound files for this node (e.g. used\n"
" in combination with BinkD's obox setting).\n"
"\n"
"`BinkP Settings` are settings specific to BinkP/BinkIT mailer operation.\n"
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Address"
,faddrtoa(&cfg.nodecfg[i].addr));
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Domain"
,cfg.nodecfg[i].domain);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Name"
,cfg.nodecfg[i].name);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Comment"
,cfg.nodecfg[i].comment);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Archive Type"
,cfg.nodecfg[i].archive == SBBSECHO_ARCHIVE_NONE ?
"None":cfg.nodecfg[i].archive->name);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Packet Type"
,pktTypeStringList[cfg.nodecfg[i].pkt_type]);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Packet Password"
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Session Password"
,cfg.nodecfg[i].sesspwd);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","TIC File Password"
,cfg.nodecfg[i].ticpwd);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","AreaFix Support"
,cfg.nodecfg[i].areafix ? "Yes" : "No");
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","AreaFix Password"
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","EchoList Keys"
,strListCombine(cfg.nodecfg[i].keys,str,sizeof(str),","));
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Status"
,mailStatusStringList[cfg.nodecfg[i].status]);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Direct"
,cfg.nodecfg[i].direct ? "Yes":"No");
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Passive"
,cfg.nodecfg[i].passive ? "Yes":"No");
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Send Notify List"
,cfg.nodecfg[i].send_notify ? "Yes" : "No");
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Uplink for Message Groups"
,strListCombine(cfg.nodecfg[i].grphub,str,sizeof(str),","));
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Local Address (AKA)"
,cfg.nodecfg[i].local_addr.zone
? faddrtoa(&cfg.nodecfg[i].local_addr) : "Best Match");
if(cfg.flo_mailer) {
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s","Route To"
if(!faddr_contains_wildcard(&cfg.nodecfg[i].addr)) {
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s", "Inbox Directory", cfg.nodecfg[i].inbox);
snprintf(opt[j++],MAX_OPLN-1,"%-30.30s %s", "Outbox Directory", cfg.nodecfg[i].outbox);
strcpy(opt[j++], "BinkP Settings...");
}
,cfg.nodecfg[i].name[0] ? cfg.nodecfg[i].name : faddrtoa(&cfg.nodecfg[i].addr));
uifc_winmode_t wmode = WIN_MID|WIN_ACT|WIN_SAV|WIN_EXTKEYS;
if(i > 0)
wmode |= WIN_LEFTKEY;
if(i + 1 < (int)cfg.nodecfgs)
wmode |= WIN_RIGHTKEY;
k=uifc.list(wmode,0,0,72,&nodeop,&nodeopbar,str,opt);
if(k==-1)
break;
switch(k) {
case -CIO_KEY_LEFT-2:
if(i > 0)
i--;
break;
case -CIO_KEY_RIGHT-2:
if(i + 1 < (int)cfg.nodecfgs)
i++;
break;
"~ Address ~\n\n"
"This is the FidoNet style address of this linked node.\n";
SAFECOPY(str,faddrtoa(&cfg.nodecfg[i].addr));
,"Node Address (ALL wildcard allowed)",str
,25,K_EDIT|K_UPPER)>0)
cfg.nodecfg[i].addr=atofaddr(str);
"~ Domain ~\n\n"
"This is the domain portion of the 5D FTN address of this linked node\n"
"(e.g. '`fidonet`'). FTN domains are limited to 8 characters and must not\n"
"contain the characters '@' or '.'.\n"
"\n"
"This setting is currently not used by SBBSecho but is available and\n"
"managed here for 5D address use by BinkIT.";
uifc.input(WIN_MID|WIN_SAV,0,0
,"Domain"
,cfg.nodecfg[i].domain, sizeof(cfg.nodecfg[i].domain)-1
,K_EDIT);
break;
case __COUNTER__:
uifc.helpbuf=
"~ Name ~\n\n"
"This is an optional NetMail destination name for the node (e.g. the sysop's name).\n"
"This is used for AreaFix Notification NetMail messages.\n";
uifc.input(WIN_MID|WIN_SAV,0,0
,"Name"
,cfg.nodecfg[i].name,sizeof(cfg.nodecfg[i].name)-1
,K_EDIT);
break;
case __COUNTER__:
"~ Comment ~\n\n"
"This is an optional comment for the node (e.g. the sysop's name).\n"
"This is used for informational purposes only.\n";
uifc.input(WIN_MID|WIN_SAV,0,0
,"Comment"
,cfg.nodecfg[i].comment,sizeof(cfg.nodecfg[i].comment)-1
,K_EDIT);
break;
"~ Archive Type ~\n\n"
"This is the archive type that will be used for compressing packets\n"
"into archive bundles for this node.\n";
int cur=cfg.arcdefs;
for(u=0;u<cfg.arcdefs;u++) {
if(cfg.nodecfg[i].archive == &cfg.arcdef[u])
cur=u;
strcpy(opt[u],cfg.arcdef[u].name);
strcpy(opt[u++],"None");
opt[u][0]=0;
,"Archive Type",opt);
if(k==-1)
break;
if((unsigned)k>=cfg.arcdefs)
cfg.nodecfg[i].archive = &cfg.arcdef[k];
uifc.changes=TRUE;
"~ Packet Type ~\n\n"
"This is the packet header type that will be used in mail packets\n"
"created for this node. SBBSecho defaults to creating `Type-2+` packets.\n"
"\n"
j=cfg.nodecfg[i].pkt_type;
k=uifc.list(WIN_RHT|WIN_SAV,0,0,0,&j,0,"Packet Type"
if(k==-1)
break;
cfg.nodecfg[i].pkt_type=k;
"~ Packet Password ~\n\n"
"This is an optional password that SBBSecho will place into packets\n"
"destined for this node.\n"
"\n"
"Packet passwords are `case-insensitive`";
uifc.input(WIN_MID|WIN_SAV,0,0
,"Packet Password (optional)"
,cfg.nodecfg[i].pktpwd,sizeof(cfg.nodecfg[i].pktpwd)-1
,K_EDIT|K_UPPER);
"~ Session Password ~\n\n"
"This is an optional password that BinkIT will use for authenticated\n"
"BinkP sessions with this node.\n"
"\n"
"Session passwords are `case-sensitive`";
uifc.input(WIN_MID|WIN_SAV,0,0
,"Session Password"
,cfg.nodecfg[i].sesspwd,sizeof(cfg.nodecfg[i].sesspwd)-1
,K_EDIT);
break;
case __COUNTER__:
uifc.helpbuf=
"This is an optional password that tickit.js will use for creating\n"
uifc.input(WIN_MID|WIN_SAV,0,0
,"TIC File Password (optional)"
,cfg.nodecfg[i].ticpwd,sizeof(cfg.nodecfg[i].ticpwd)-1
,K_EDIT|K_UPPER);
break;
case __COUNTER__:
uifc.helpbuf=
"~ AreaFix Support ~\n\n"
"If you wish for this node to be able to remotely query or change their\n"
"configuration via `AreaFix` NetMail messages, set to option to `Yes`.\n";
k = cfg.nodecfg[i].areafix;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"AreaFix Support",uifcYesNoOpts)) {
case 0: cfg.nodecfg[i].areafix = true; uifc.changes=TRUE; break;
case 1: cfg.nodecfg[i].areafix = false; uifc.changes=TRUE; break;
}
break;
case __COUNTER__:
uifc.helpbuf=
"~ AreaFix Password ~\n\n"
"This is the password that will be used by this node when doing remote\n"
"AreaManager / AreaFix functions.\n";
uifc.input(WIN_MID|WIN_SAV,0,0
,cfg.nodecfg[i].password,sizeof(cfg.nodecfg[i].password)-1
,K_EDIT|K_UPPER);
"These are a named-keys to be given to this node allowing access to one\n"
"or more of the configured `EchoLists` for remote area-add requests.\n";
for(j=0; cfg.nodecfg[i].keys!=NULL && cfg.nodecfg[i].keys[j]!=NULL ;j++)
strcpy(opt[j],cfg.nodecfg[i].keys[j]);
opt[j][0]=0;
k=uifc.list(WIN_SAV|WIN_INS|WIN_DEL|WIN_ACT|
WIN_XTR|WIN_INSACT|WIN_DELACT|WIN_RHT
if(k==-1)
break;
if((k&MSK_ON)==MSK_INS) {
k&=MSK_OFF;
if(uifc.input(WIN_MID|WIN_SAV,0,0
strListInsert(&cfg.nodecfg[i].keys, str, k);
uifc.changes=TRUE;
}
if((k&MSK_ON)==MSK_DEL) {
k&=MSK_OFF;
strListRemove(&cfg.nodecfg[i].keys, k);
uifc.changes=TRUE;
}
,str,SBBSECHO_MAX_KEY_LEN,K_EDIT|K_UPPER);
strListReplace(cfg.nodecfg[i].keys, k, str);
uifc.changes=TRUE;
}
"~ Mail Status ~\n\n"
"Set the mail status for this node: `Normal`, `Hold`, or `Crash`.\n";
j=cfg.nodecfg[i].status;
k=uifc.list(WIN_RHT|WIN_SAV,0,0,0,&j,0,"Mail Status"
,mailStatusStringList);
if(k==-1)
break;
if(cfg.nodecfg[i].status!=k) {
cfg.nodecfg[i].status=k;
uifc.changes=TRUE;
}
k = !cfg.nodecfg[i].direct;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Direct Delivery",uifcYesNoOpts)) {
case 0: cfg.nodecfg[i].direct = true; uifc.changes=TRUE; break;
case 1: cfg.nodecfg[i].direct = false; uifc.changes=TRUE; break;
}
k = !cfg.nodecfg[i].passive;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Passive Node",uifcYesNoOpts)) {
case 0: cfg.nodecfg[i].passive = true; uifc.changes=TRUE; break;
case 1: cfg.nodecfg[i].passive = false; uifc.changes=TRUE; break;
}
k = !cfg.nodecfg[i].send_notify;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Send AreaFix Notifications",uifcYesNoOpts)) {
case 0: cfg.nodecfg[i].send_notify = true; uifc.changes=TRUE; break;
case 1: cfg.nodecfg[i].send_notify = false; uifc.changes=TRUE; break;
}
break;
"~ Uplink for Message Groups ~\n\n"
"These are Message Group short names (as configured in SCFG) for which\n"
"this linked node is your system's uplink (hub).\n"
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
"\n"
"Use of this setting allows your hub to be automatically linked with new\n"
"areas when new Sub-boards (within a listed group) are auto-added to the\n"
"Area File."
;
while(1) {
for(j=0; cfg.nodecfg[i].grphub!=NULL && cfg.nodecfg[i].grphub[j]!=NULL ;j++)
strcpy(opt[j],cfg.nodecfg[i].grphub[j]);
opt[j][0]=0;
k=uifc.list(WIN_SAV|WIN_INS|WIN_DEL|WIN_ACT|
WIN_XTR|WIN_INSACT|WIN_DELACT|WIN_RHT
,0,0,0,&k,0,"Uplink for Message Groups",opt);
if(k==-1)
break;
if((k&MSK_ON)==MSK_INS) {
k&=MSK_OFF;
if(uifc.input(WIN_MID|WIN_SAV,0,0
,"Message Group (short name)",str,LEN_GSNAME
,/* kmode: */0) < 1)
continue;
strListInsert(&cfg.nodecfg[i].grphub, str, k);
uifc.changes=TRUE;
}
if((k&MSK_ON)==MSK_DEL) {
k&=MSK_OFF;
strListRemove(&cfg.nodecfg[i].grphub, k);
uifc.changes=TRUE;
}
SAFECOPY(str,cfg.nodecfg[i].grphub[k]);
uifc.input(WIN_MID|WIN_SAV,0,0,"Message Group (short name)"
,str,LEN_GSNAME,K_EDIT|K_UPPER);
strListReplace(cfg.nodecfg[i].grphub, k, str);
uifc.changes=TRUE;
continue;
}
break;
case __COUNTER__:
SAFECOPY(str,faddrtoa(&cfg.nodecfg[i].local_addr));
if(uifc.input(WIN_MID|WIN_SAV,0,0
,"Local Source Address (AKA) to Use",str
,25,K_EDIT) >= 0) {
if(str[0])
cfg.nodecfg[i].local_addr = atofaddr(str);
else
cfg.nodecfg[i].local_addr.zone = 0;
uifc.changes=TRUE;
uifc.helpbuf=
"~ Route To ~\n\n"
"When using a BSO/FLO type mailer, this is the Fido address to route mail\n"
"for this node(s) to.\n"
"\n"
"This option is normally only used with wildcard type node entries\n"
"(e.g. `ALL`, or `1:ALL`, `2:ALL`, etc.) and is used to route non-direct\n"
"NetMail packets to your uplink node (hub).\n";
SAFECOPY(str,faddrtoa(&cfg.nodecfg[i].route));
,"Node Address to Route To",str
if(str[0])
cfg.nodecfg[i].route=atofaddr(str);
else
cfg.nodecfg[i].route.zone=0;
uifc.input(WIN_MID|WIN_SAV,0,0,"Inbound FileBox Directory"
,cfg.nodecfg[i].inbox, sizeof(cfg.nodecfg[i].inbox)-1
,K_EDIT);
break;
uifc.input(WIN_MID|WIN_SAV,0,0,"Outbound FileBox Directory"
,cfg.nodecfg[i].outbox, sizeof(cfg.nodecfg[i].outbox)-1
,K_EDIT);
case __COUNTER__:
binkp_settings(&cfg.nodecfg[i]);
break;
}
while(1) {
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Non-secure Inbound Directory"
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Secure Inbound Directory"
,cfg.secure_inbound[0] ? cfg.secure_inbound : DEFAULT_SECURE_INBOUND);
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Outbound Directory"
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Bad Area File"
,cfg.badareafile[0] ? cfg.badareafile : DEFAULT_BAD_AREA_FILE);
,cfg.logfile[0] ? cfg.logfile : DEFAULT_LOG_FILE);
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Echo Statistics File"
,cfg.echostats[0] ? cfg.echostats : DEFAULT_ECHOSTATS_FILE);
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Temporary File Directory"
,cfg.temp_dir[0] ? cfg.temp_dir : DEFAULT_TEMP_DIR);
snprintf(opt[i++],MAX_OPLN-1,"%-30.30s %s","Outgoing Semaphore File"
,cfg.outgoing_sem);
uifc.helpbuf=
"~ Paths and Filenames ~\n\n"
"From this menu you can configure the paths and filenames that SBBSecho\n"
"will use during its operation (e.g. importing and exporting messages).\n";
j=uifc.list(WIN_ACT|WIN_SAV,0,0,0,&path_opt,0
,"Paths and Filenames",opt);
if(j==-1)
break;
case 0:
"~ Non-secure Inbound Directory ~\n\n"
"This is the path where your FTN mailer stores, and where SBBSecho will\n"
"look for, incoming files (potentially including message bundles and\n"
"packets) from unauthenticated (non-secure) mailer sessions.\n"
"\n"
"Default value is `" DEFAULT_INBOUND "`."
uifc.input(WIN_L2R|WIN_SAV,0,0,"Non-secure Inbound Directory"
break;
case 1:
"~ Secure Inbound Directory ~\n\n"
"This is the path where your FTN mailer stores, and where SBBSecho will\n"
"look for, incoming message bundles and packets for `Secure` (password\n"
"protected) sessions.\n"
"\n"
"Default value is `" DEFAULT_SECURE_INBOUND "`."
;
uifc.input(WIN_L2R|WIN_SAV,0,0,"Secure Inbound Directory"
,cfg.secure_inbound,sizeof(cfg.secure_inbound)-1
,K_EDIT);
break;
case 2:
"~ Outbound Directory ~\n\n"
"This is the path where your FTN mailer will look for, and where SBBSecho\n"
"will place, outgoing message bundles and packets.\n"
"\n"
"In Binkley-Style Outbound mode, this serves as the base directory\n"
"name for special foreign zone and point destination nodes as well."
break;
case 3:
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
"~ Area File ~\n\n"
"This is the path of the file SBBSecho will use as your primary\n"
"list of FidoNet-style message areas (default is `data/areas.bbs`).\n"
"\n"
"Each line in the file defines an FTN message area (echo) of the format:\n"
"\n"
" <`code`> <`tag`> [[`link`] [`link`] [...]]\n"
"\n"
"Each field is separated by one or more white-space characters:\n"
"\n"
" `<code>` is the Synchronet `internal code` for the local sub-board\n"
" `<tag>` is the network's agreed-upon `echo tag` for the message area\n"
" `[link]` is an `FTN address` to send and receive messages for this area\n"
" (there may be many linked nodes for each area)\n"
" (often your FTN uplink/hub may be the only linked node)\n"
"\n"
"Example Area Line:\n"
"\n"
" `FIDO_BBS_CARN BBS_CARNIVAL 1:218/700`\n"
"\n"
"Notes:\n"
"\n"
" `*` Only the `<code>` and `<tag>` fields are required\n"
" `*` The `<code>` and `<tag>` fields are case in-sensitive\n"
" `*` The `[link]` fields must be 2D, 3D, or 4D FidoNet-style node addresses\n"
" `*` The '`<`' and '`>`', '`[`' and '`]`' characters are not part of the syntax\n"
" `*` Lines beginning with a semicolon (`;`) are ignored (i.e. comments)\n"
" `*` Leading white-space characters are ignored\n"
" `*` Blank lines are ignored\n"
" `*` A `<tag>` value of `*` indicates a `bad echo` (unknown) area\n"
" `*` A `<code>` value of `P` indicates a pass-through message area\n"
" `*` This file may be import/exported to/from your `Message Areas` in `SCFG`\n"
" `*` This file may be remotely modified by authorized nodes using `AreaFix`\n"
"\n"
"Default value is `" DEFAULT_AREA_FILE "`."
break;
case 4:
"~ Bad Area File ~\n\n"
"This is the path of the file SBBSecho will use to record the names\n"
"(echo tags) and descriptions of FTN message areas (echoes) that your\n"
"system has received EchoMail for, but does not carry locally. The\n"
"default path/filename is `" DEFAULT_BAD_AREA_FILE "`.\n"
"\n"
"Notes:\n"
"\n"
" `*` The descriptions of the areas will only be included if the\n"
" corresponding echo tags can be located in one of your configured\n"
" `EchoLists`.\n"
"\n"
" `*` The format of the file is the same as `BACKBONE.NA` and suitable for\n"
" importing into a Synchronet Message Group using `SCFG`.\n"
"\n"
" `*` SBBSecho will automatically sort and maintain this list, removing\n"
" areas if they are added to your configuration (`SCFG->Message Areas`)\n"
" and your `Area File`.\n"
,cfg.badareafile,sizeof(cfg.badareafile)-1
,K_EDIT);
break;
case 5:
uifc.helpbuf=
"~ Log File ~\n\n"
"This is the path of the file SBBSecho will use to log information each\n"
"time it is run (default is `" DEFAULT_LOG_FILE "`)."
;
uifc.helpbuf=
"~ EchoStats File ~\n\n"
"This is the path of the file SBBSecho will use to track statistics for\n"
"EchoMail message areas (default is `" DEFAULT_ECHOSTATS_FILE "`)."
;
uifc.input(WIN_L2R|WIN_SAV,0,0,"EchoStats File"
,cfg.echostats,sizeof(cfg.echostats)-1
,K_EDIT);
case 7:
uifc.helpbuf=
"~ Temporary File Directory ~\n\n"
"This is the directory where SBBSecho will store temporary files that\n"
"it creates and uses during its run-time (default is `" DEFAULT_TEMP_DIR "`)."
;
,cfg.temp_dir,sizeof(cfg.temp_dir)-1
,K_EDIT);
case 8:
uifc.helpbuf=
"~ Outgoing Semaphore File ~\n\n"
"This is an optional file to create/touch whenever there are new outbound\n"
"files created or updated by SBBSecho."
;
uifc.input(WIN_L2R|WIN_SAV,0,0,"Outgoing Sem File"
,cfg.outgoing_sem,sizeof(cfg.outgoing_sem)-1
,K_EDIT);
}
"~ NetMail Settings ~\n"
"\n"
"`Sysop Aliases` is a comma-separated list of names by which the sysop\n"
" (user #1) may receive NetMail messages, in addition to the alias\n"
" and real name associated with their BBS user account.\n"
" This setting defaults to just '`SYSOP`'.\n"
"\n"
"`Default Recipient` is the name of the user account you wish to receive\n"
" inbound NetMail messages that have been addressed to an unrecognized\n"
" user name or alias.\n"
"\n"
"`Fuzzy Zone Operation` when set to `Yes`, if SBBSecho receives an inbound\n"
" netmail with `NO` international zone information, it will compare the\n"
" net/node of the destination to the net/node information in your AKAs\n"
" and assume the (source and destination) zone of a matching AKA.\n"
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
" This setting defaults to `No`.\n"
"\n"
"`Kill/Ignore Empty NetMail Messages` will instruct SBBSecho to simply\n"
" discard (not import or export) NetMail messages without any body.\n"
" This setting defaults to `Yes`.\n"
"\n"
"`Delete Processed NetMail Messages` will instruct SBBSecho to delete\n"
" NetMail messages/files after they have been sent or imported.\n"
" When set to `No`, SBBSecho will mark them as Sent or Received instead.\n"
" This setting defaults to `Yes`.\n"
"\n"
"`Ignore NetMail Destination Address` will instruct SBBSecho to treat\n"
" all NetMail as though it is destined for one of your systems's FTN\n"
" addresses (AKAs) and potentially import it.\n"
" This setting defaults to `No`.\n"
"\n"
"`Ignore Netmail 'Sent' Attribute` will instruct SBBSecho to export\n"
" NetMail messages even when their 'Sent' attribute flag is set.\n"
" This setting `should not` be set to `Yes` when `Delete NetMail` is\n"
" disabled.\n"
" This setting defaults to `No`.\n"
"\n"
"`Ignore Netmail 'KillSent' Attribute` will instruct SBBSecho to ignore\n"
" this attribute flag and will `not` delete Sent NetMail.\n"
" This setting defaults to `No`.\n"
"\n"
"`Ignore Netmail 'Received' Attribute` will instruct SBBSecho to import\n"
" NetMail messages even when their 'Received' attribute flag is set.\n"
" This setting defaults to `No`.\n"
"\n"
"`Ignore NetMail 'Local' Attribute` will instruct SBBSecho to import\n"
" NetMail messages even when their 'Local' attribute flag is set.\n"
" This setting defaults to `No`.\n"
"\n"
"`Maximum Age of Imported NetMail` allows you to optionally set an age\n"
" limit of NetMail messages that may be imported.\n"
" This setting defaults to `None` (no maximum age).\n"
strListCombine(cfg.sysop_alias_list, sysop_aliases, sizeof(sysop_aliases)-1, ",");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%s", "Sysop Aliases",sysop_aliases);
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%s", "Default Recipient"
,cfg.default_recipient);
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Fuzzy Zone Operation"
,cfg.fuzzy_zone ? "Yes":"No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Kill/Ignore Empty NetMail "
"Messages",cfg.kill_empty_netmail ? "Yes":"No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Delete Processed NetMail"
,cfg.delete_netmail ? "Yes":"No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Ignore NetMail Destination Address"
,cfg.ignore_netmail_dest_addr ? "Yes" : "No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Ignore NetMail 'Sent' Attribute"
,cfg.ignore_netmail_sent_attr ? "Yes" : "No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Ignore NetMail 'KillSent' Attribute"
,cfg.ignore_netmail_kill_attr ? "Yes" : "No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Ignore NetMail 'Received' Attribute"
,cfg.ignore_netmail_recv_attr ? "Yes" : "No");
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%-3.3s","Ignore NetMail 'Local' Attribute"
,cfg.ignore_netmail_local_attr ? "Yes" : "No");
if(cfg.max_netmail_age)
snprintf(opt[i++],MAX_OPLN-1,"%-40.40s%s","Maximum Age of Imported NetMail" , str);
j=uifc.list(WIN_ACT|WIN_SAV,0,0,0,&netmail_opt,0,"NetMail Settings",opt);
if(j==-1)
break;
switch(j) {
case 0:
"~ Sysop Aliases ~\n\n"
"This is a comma-separated list of additional `To` names that the sysop\n"
"(user #1) can receive netmail by. When specifying multiple aliases,\n"
"they must be separated by a single comma and no extra white-space\n"
"(e.g. \"SYSOP,COORDINATOR\"). The default value is just `SYSOP`.\n";
if(uifc.input(WIN_MID|WIN_BOT|WIN_SAV,0,0,"Sysop Aliases (comma separated)"
,sysop_aliases
,sizeof(sysop_aliases)-1,K_EDIT|K_UPPER) >= 0) {
strListFree(&cfg.sysop_alias_list);
cfg.sysop_alias_list = strListSplit(NULL, sysop_aliases, ",");
}
uifc.input(WIN_MID|WIN_SAV,0,0,"Default Recipient"
,cfg.default_recipient, sizeof(cfg.default_recipient)-1
,K_EDIT|K_UPPER);
k = !cfg.fuzzy_zone;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Fuzzy Zone Operation",uifcYesNoOpts)) {
case 0: cfg.fuzzy_zone = true; break;
case 1: cfg.fuzzy_zone = false; break;
}
k = !cfg.kill_empty_netmail;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Delete Empty NetMail",uifcYesNoOpts)) {
case 0: cfg.kill_empty_netmail = true; break;
case 1: cfg.kill_empty_netmail = false; break;
}
k = !cfg.delete_netmail;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Delete Processed NetMail",uifcYesNoOpts)) {
case 0: cfg.delete_netmail = true; break;
case 1: cfg.delete_netmail = false; break;
}
break;
case 5:
k = !cfg.ignore_netmail_dest_addr;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Ignore NetMail Destination Address",uifcYesNoOpts)) {
case 0: cfg.ignore_netmail_dest_addr = true; break;
case 1: cfg.ignore_netmail_dest_addr = false; break;
}
break;
case 6:
k = !cfg.ignore_netmail_sent_attr;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Ignore NetMail 'Sent' Attribute",uifcYesNoOpts)) {
case 0: cfg.ignore_netmail_sent_attr = true; break;
case 1: cfg.ignore_netmail_sent_attr = false; break;
}
break;
case 7:
k = !cfg.ignore_netmail_kill_attr;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Ignore NetMail 'KillSent' Attribute",uifcYesNoOpts)) {
case 0: cfg.ignore_netmail_kill_attr = true; break;
case 1: cfg.ignore_netmail_kill_attr = false; break;
}
break;
case 8:
k = !cfg.ignore_netmail_recv_attr;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Ignore NetMail 'Received' Attribute",uifcYesNoOpts)) {
case 0: cfg.ignore_netmail_recv_attr = true; break;
case 1: cfg.ignore_netmail_recv_attr = false; break;
}
break;
k = !cfg.ignore_netmail_local_attr;
switch(uifc.list(WIN_MID|WIN_SAV,0,0,0,&k,0
,"Ignore NetMail 'Local' Attribute",uifcYesNoOpts)) {
case 0: cfg.ignore_netmail_local_attr = true; break;
case 1: cfg.ignore_netmail_local_attr = false; break;
}
break;
"~ Maximum Age of Imported NetMail ~\n\n"
"Maximum age of NetMail that may be imported. The age is based\n"
"on the date supplied in the message header and may be incorrect in some\n"
"conditions (e.g. erroneous software or incorrect system date).\n"
"Set this value to `0` to disable this feature (no maximum age imposed)."
;
if(cfg.max_netmail_age)
if(uifc.input(WIN_MID|WIN_BOT|WIN_SAV,0,0,"Maximum NetMail Age"
,str, 10, K_EDIT) >= 0)
cfg.max_netmail_age = (ulong)parse_duration(str);
break;
}
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
"~ EchoMail Settings ~\n"
"\n"
"`Area Manager` is the BBS user name or alias to notify (via email) of\n"
" AreaFix activities and errors. This setting defaults to `SYSOP`.\n"
"\n"
"`Maximum Packet Size` is the largest packet file size that SBBSecho will\n"
" normally create (in bytes).\n"
" This settings defaults to `250K` (250 Kilobytes, or 256,000 bytes).\n"
"\n"
"`Maximum Bundle Size` is the largest bundle file size that SBBSecho will\n"
" normally create (in bytes).\n"
" This settings defaults to `250K` (250 Kilobytes, or 256,000 bytes).\n"
"\n"
"`Secure Operation` tells SBBSecho to check the Area File (e.g. areas.bbs)\n"
" to insure that the packet origin (FTN address) of EchoMail messages\n"
" is already linked to the EchoMail area where the message was posted.\n"
" This setting defaults to `No`.\n"
"\n"
"`Notify Users of Received EchoMail` tells SBBSecho to send telegrams\n"
" (short messages) to BBS users when EchoMail addressed to their name\n"
" or alias has been imported into a message base that the user has\n"
" access to read.\n"
"\n"
"`Convert Existing Tear Lines` tells SBBSecho to convert any tear lines\n"
" (`---`) existing in outgoing EchoMail message text to `===`.\n"
"`Automatically Add New Subs to Area List`, when enabled, instructs\n"
" SBBSecho to detect newly added Sub-boards in any Message Groups that\n"
" are listed with a `Linked Node` as their hub/uplink and add those new\n"
" Sub-boards as new areas to your Area List and optionally, Area File.\n"
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
"\n"
"`Allow Nodes to Add Areas from Area File` when set to `Yes` allows linked\n"
" nodes to add areas listed in your Area File (e.g. `areas.bbs`).\n"
" When set to `No`, only areas found in one or more `EchoLists` may be\n"
" added via AreaFix, provided the linked node has access.\n"
" This setting defaults to `Yes`.\n"
"\n"
"`Maximum Backups to Maintain of Area File` defines the number of backup\n"
" versions SBBSecho will maintain of your Area File (e.g. `areas.bbs`).\n"
"\n"
"`Circular Path Detection` when `Enabled` will cause SBBSecho, during\n"
" EchoMail import, to check the PATH kludge lines for any of the\n"
" system's AKAs and if found (indicating a message loop), not import\n"
" the message.\n"
"\n"
"`Relay Filtered Messages` controls whether or not incoming messages that\n"
" have been filtered (e.g. due to maximum message age restrictions)\n"
" are to be forwarded to downlinks.\n"
"\n"
"`Outbound Bundle Attachments` may be either `Deleted` (killed) or `Truncated`\n"
" (changed to 0-bytes in length) after being sent by your mailer.\n"
" This only controls the bundle prefix that is written to the FLO\n"
" files (`#` for truncate, `^` for delete).\n"
"\n"
"`Zone Blind SEEN-BY and PATH Lines` when `Enabled` will cause SBBSecho\n"
" to assume that node numbers are not duplicated across zones and\n"
" that a net/node combination in either of these Kludge lines should\n"
" be used to identify a specific node regardless of which zone that\n"
" node is located (thus breaking the rules of FidoNet 3D addressing).\n"
"\n"
"`Maximum Age of Imported EchoMail` allows you to optionally set an age\n"
" limit of EchoMail messages that may be imported.\n"
" This setting defaults to `60 days`.\n"
"\n"
"`Require Area-Linked Nodes to be Configured` allows you to specify\n"
" whether or not each linked node in the area file must be configured\n"
" in the `Linked Nodes` list.\n"
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s", "Area Manager",cfg.areamgr);
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%luK","Maximum Packet Size"
,cfg.maxpktsize/1024UL);
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%luK","Maximum Bundle Size"
,cfg.maxbdlsize/1024UL);
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%-3.3s","Secure Operation"
,cfg.secure_echomail ? "Yes":"No");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%-3.3s","Notify Users of Received EchoMail"
,cfg.echomail_notify ? "Yes":"No");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%-3.3s","Convert Existing Tear Lines"
,cfg.convert_tear ? "Yes":"No");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Automatically Add New Subs "
"to Area List", cfg.auto_add_subs ? (cfg.auto_add_to_areafile ? "List/File":"List Only"):"No");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%-3.3s","Allow Nodes to Add Areas "
"from Area File",cfg.add_from_echolists_only ? "No":"Yes");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%u","Maximum Backups to Maintain of Area File"
,cfg.areafile_backups);
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Circular Path Detection"
,cfg.check_path ? "Enabled" : "Disabled");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Relay Filtered Messages"
,cfg.relay_filtered_msgs ? "Yes" : "No");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Outbound Bundle Attachments"
,cfg.trunc_bundles ? "Truncate" : "Delete");
if(cfg.zone_blind)
sprintf(str,"Zones 1-%u", cfg.zone_blind_threshold);
else
SAFECOPY(str,"Disabled");
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Zone Blind SEEN-BY and PATH Lines", str);
if(cfg.max_echomail_age)
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Maximum Age of Imported EchoMail", str);
snprintf(opt[i++],MAX_OPLN-1,"%-45.45s%s","Require Area-Linked Nodes to be Configured"
,cfg.require_linked_node_cfg ? "Yes" : "No");
j=uifc.list(WIN_ACT|WIN_SAV,0,0,0,&echomail_opt,0,"EchoMail Settings",opt);