Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
f9c63981
Commit
f9c63981
authored
9 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Updated to reflect my latest decisions on key names in sbbsecho.ini:
VerboseAndCamelCase instead of terse_c_style names.
parent
5c4c90ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/sbbsecho_upgrade.js
+42
-29
42 additions, 29 deletions
exec/sbbsecho_upgrade.js
with
42 additions
and
29 deletions
exec/sbbsecho_upgrade.js
+
42
−
29
View file @
f9c63981
...
...
@@ -133,19 +133,27 @@ if(!file.open("w")) {
}
file
.
writeln
(
"
; Converted from
"
+
cfgfile
+
"
using
"
+
js
.
exec_file
+
"
"
+
REVISION
);
file
.
writeln
(
"
check_path =
"
+
!
Boolean
(
bool_opts
[
"
nopathcheck
"
])),
delete
bool_opts
[
"
nopathcheck
"
];
file
.
writeln
(
"
fwd_circular =
"
+
!
Boolean
(
bool_opts
[
"
nocircularfwd
"
])),
delete
bool_opts
[
"
nocircularfwd
"
];
file
.
writeln
(
"
kill_empty_netmail =
"
+
Boolean
(
bool_opts
[
"
kill_empty
"
])),
delete
bool_opts
[
"
kill_empty
"
];
file
.
writeln
(
"
add_from_echolists_only =
"
+
Boolean
(
bool_opts
[
"
elist_only
"
])),
delete
bool_opts
[
"
elist_only
"
];
file
.
writeln
(
"
CheckPathsForDupes =
"
+
!
Boolean
(
bool_opts
[
"
nopathcheck
"
])),
delete
bool_opts
[
"
nopathcheck
"
];
delete
bool_opts
[
"
nocircularfwd
"
];
file
.
writeln
(
"
KillEmptyNetmail =
"
+
Boolean
(
bool_opts
[
"
kill_empty
"
])),
delete
bool_opts
[
"
kill_empty
"
];
file
.
writeln
(
"
AreaAddFromEcholistsOnly =
"
+
Boolean
(
bool_opts
[
"
elist_only
"
])),
delete
bool_opts
[
"
elist_only
"
];
file
.
writeln
(
"
SecureEchomail =
"
+
Boolean
(
bool_opts
[
"
secure_echomail
"
])),
delete
bool_opts
[
"
secure_echomail
"
];
file
.
writeln
(
"
BinkleyStyleOutbound =
"
+
Boolean
(
bool_opts
[
"
flo_mailer
"
])),
delete
bool_opts
[
"
flo_mailer
"
];
file
.
writeln
(
"
TruncateBundles =
"
+
Boolean
(
bool_opts
[
"
trunc_bundles
"
])),
delete
bool_opts
[
"
trunc_bundles
"
];
file
.
writeln
(
"
FuzzyNetmailZones =
"
+
Boolean
(
bool_opts
[
"
fuzzy_zone
"
])),
delete
bool_opts
[
"
fuzzy_zone
"
];
file
.
writeln
(
"
StripLineFeeds =
"
+
Boolean
(
bool_opts
[
"
strip_lf
"
])),
delete
bool_opts
[
"
strip_lf
"
];
file
.
writeln
(
"
ConvertTearLines =
"
+
Boolean
(
bool_opts
[
"
convert_tear
"
])),
delete
bool_opts
[
"
convert_tear
"
];
for
(
var
i
in
bool_opts
)
if
(
i
)
file
.
writeln
(
i
+
"
= true
"
);
file
.
writeln
();
file
.
writeln
(
"
notify_user =
"
+
parseInt
(
value_opts
[
"
notify
"
])),
delete
value_opts
[
"
notify
"
];
file
.
writeln
(
"
zone_blind =
"
+
Boolean
(
value_opts
[
"
zone_blind
"
]));
delete
value_opts
[
"
notify
"
];
if
(
value_opts
[
"
sysop_alias
"
])
file
.
writeln
(
"
SysopAliasList =
"
+
value_opts
[
"
sysop_alias
"
]),
delete
value_opts
[
"
sysop_alias
"
];
file
.
writeln
(
"
ZoneBlind =
"
+
Boolean
(
value_opts
[
"
zone_blind
"
]));
if
(
parseInt
(
value_opts
[
"
zone_blind
"
]))
file
.
writeln
(
"
z
one
_b
lind
_t
hreshold =
"
+
parseInt
(
value_opts
[
"
zone_blind
"
])),
delete
value_opts
[
"
zone_blind
"
];
if
(
value_opts
[
"
log
"
]
&&
value_opts
[
"
log
"
].
charAt
(
0
)
==
'
0
'
)
file
.
writeln
(
"
log = 0x
"
+
value_opts
[
"
log
"
]),
delete
value_opts
[
"
log
"
];
file
.
writeln
(
"
Z
one
B
lind
T
hreshold =
"
+
parseInt
(
value_opts
[
"
zone_blind
"
])),
delete
value_opts
[
"
zone_blind
"
];
if
(
value_opts
[
"
log
"
])
delete
value_opts
[
"
log
"
];
if
(
value_opts
[
"
log_level
"
])
file
.
writeln
(
"
LogLevel =
"
+
value_opts
[
"
log_level
"
]),
delete
value_opts
[
"
log_level
"
];
if
(
!
value_opts
[
"
inbound
"
]
&&
value_opts
[
"
outbound
"
])
{
...
...
@@ -153,33 +161,38 @@ if(!value_opts["inbound"] && value_opts["outbound"]) {
alert
(
"
Setting inbound dir to best guess (no longer using SCFG setting):
"
+
inbound
);
file
.
writeln
(
"
inbound =
"
+
inbound
);
}
if
(
value_opts
[
"
secure_inbound
"
])
file
.
writeln
(
"
SecureInbound =
"
+
value_opts
[
"
secure_inbound
"
]),
delete
value_opts
[
"
secure_inbound
"
];
if
(
value_opts
[
"
arcsize
"
])
file
.
writeln
(
"
BundleSize =
"
+
value_opts
[
"
arcsize
"
]),
delete
value_opts
[
"
arcsize
"
];
if
(
value_opts
[
"
pktsize
"
])
file
.
writeln
(
"
PacketSize =
"
+
value_opts
[
"
pktsize
"
]),
delete
value_opts
[
"
pktsize
"
];
for
(
var
i
in
value_opts
)
if
(
i
)
file
.
writeln
(
i
+
"
=
"
+
value_opts
[
i
]);
for
(
var
i
in
nodelist
)
{
file
.
writeln
();
file
.
writeln
(
"
[node:
"
+
i
+
"
]
"
);
file
.
writeln
(
"
\t
c
omment =
"
);
file
.
writeln
(
"
\t
C
omment =
"
);
if
(
nodelist
[
i
].
pkttype
)
file
.
writeln
(
"
\t
packet_type =
"
+
nodelist
[
i
].
pkttype
);
file
.
writeln
(
"
\t
packet_pwd =
"
+
(
nodelist
[
i
].
pktpwd
||
""
));
file
.
writeln
(
"
\t
areafix_pwd =
"
+
(
nodelist
[
i
].
areafix_pwd
||
""
));
file
.
writeln
(
"
\t
inbox =
"
);
file
.
writeln
(
"
\t
outbox =
"
);
file
.
writeln
(
"
\t
notify =
"
+
Boolean
(
nodelist
[
i
].
send_notify
));
file
.
writeln
(
"
\t
passive =
"
+
Boolean
(
nodelist
[
i
].
passive
));
file
.
writeln
(
"
\t
direct =
"
+
Boolean
(
nodelist
[
i
].
direct
));
file
.
writeln
(
"
\t
status =
"
+
(
nodelist
[
i
].
crash
?
"
crash
"
:
nodelist
[
i
].
hold
?
"
hold
"
:
"
normal
"
));
file
.
writeln
(
"
\t
packer =
"
+
(
nodelist
[
i
].
usepacker
||
"
none
"
));
file
.
writeln
(
"
\t
keys =
"
+
nodelist
[
i
].
keys
.
join
(
"
,
"
));
file
.
writeln
(
"
\t
PacketType =
"
+
nodelist
[
i
].
pkttype
);
file
.
writeln
(
"
\t
PacketPwd =
"
+
(
nodelist
[
i
].
pktpwd
||
""
));
file
.
writeln
(
"
\t
AreafixPwd =
"
+
(
nodelist
[
i
].
areafix_pwd
||
""
));
file
.
writeln
(
"
\t
Notify =
"
+
Boolean
(
nodelist
[
i
].
send_notify
));
file
.
writeln
(
"
\t
Passive =
"
+
Boolean
(
nodelist
[
i
].
passive
));
file
.
writeln
(
"
\t
Direct =
"
+
Boolean
(
nodelist
[
i
].
direct
));
file
.
writeln
(
"
\t
Status =
"
+
(
nodelist
[
i
].
crash
?
"
crash
"
:
nodelist
[
i
].
hold
?
"
hold
"
:
"
normal
"
));
file
.
writeln
(
"
\t
Packer =
"
+
(
nodelist
[
i
].
usepacker
||
"
none
"
));
file
.
writeln
(
"
\t
Keys =
"
+
nodelist
[
i
].
keys
.
join
(
"
,
"
));
}
for
(
var
i
in
packer
)
{
file
.
writeln
();
file
.
writeln
(
"
[packer:
"
+
packer
[
i
].
name
+
"
]
"
);
file
.
writeln
(
"
\t
s
ig
_o
ffset =
"
+
packer
[
i
].
offset
);
file
.
writeln
(
"
\t
s
ig =
"
+
packer
[
i
].
sig
);
file
.
writeln
(
"
\t
p
ack =
"
+
packer
[
i
].
pack
);
file
.
writeln
(
"
\t
u
npack =
"
+
packer
[
i
].
unpack
);
file
.
writeln
(
"
\t
S
ig
O
ffset =
"
+
packer
[
i
].
offset
);
file
.
writeln
(
"
\t
S
ig =
"
+
packer
[
i
].
sig
);
file
.
writeln
(
"
\t
P
ack =
"
+
packer
[
i
].
pack
);
file
.
writeln
(
"
\t
U
npack =
"
+
packer
[
i
].
unpack
);
}
for
(
var
i
in
echolist
)
{
var
elist
=
echolist
[
i
];
...
...
@@ -194,10 +207,10 @@ for(var i in echolist) {
file
.
writeln
();
file
.
writeln
(
"
[echolist:
"
+
elist
.
shift
()
+
"
]
"
);
file
.
writeln
(
"
\t
k
eys =
"
+
elist
.
join
(
"
,
"
));
file
.
writeln
(
"
\t
h
ub =
"
+
hub
.
addr
);
file
.
writeln
(
"
\t
p
wd =
"
+
hub
.
pwd
);
file
.
writeln
(
"
\t
f
wd =
"
+
Boolean
(
forward
));
file
.
writeln
(
"
\t
K
eys =
"
+
elist
.
join
(
"
,
"
));
file
.
writeln
(
"
\t
H
ub =
"
+
hub
.
addr
);
file
.
writeln
(
"
\t
P
wd =
"
+
hub
.
pwd
);
file
.
writeln
(
"
\t
F
wd =
"
+
Boolean
(
forward
));
}
file
.
close
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment