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
55fc2b2a
Commit
55fc2b2a
authored
5 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Add Fid-related log/stats files to "Operator" G-files section (optionally)
parent
3bf7a4a0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/init-fidonet.js
+37
-6
37 additions, 6 deletions
exec/init-fidonet.js
with
37 additions
and
6 deletions
exec/init-fidonet.js
+
37
−
6
View file @
55fc2b2a
...
...
@@ -530,7 +530,7 @@ while(!file_getcase(echolist_fname) && !aborted()) {
}
echolist_fname
=
file_getcase
(
echolist_fname
)
if
(
echolist_fname
&&
file_size
(
echolist_fname
)
>
0
&&
confirm
(
"
Import
EchoList (
"
+
echolist_fname
+
"
) into Message Group:
"
+
netname
))
{
&&
confirm
(
"
Import EchoList (
"
+
echolist_fname
+
"
) into Message Group:
"
+
netname
))
{
print
(
"
Importing
"
+
echolist_fname
);
system
.
exec
(
system
.
exec_dir
+
"
scfg
"
+
"
-import=
"
+
echolist_fname
...
...
@@ -592,7 +592,7 @@ if(your.node === 9999) {
/* SEND AREAFIX NETMAIL */
/************************/
if
(
your
.
node
!==
9999
&&
confirm
(
"
Create an
AreaFix request to link ALL EchoMail areas with
"
&&
confirm
(
"
Send
AreaFix request to link ALL EchoMail areas with
"
+
fidoaddr
.
to_str
(
hub
)))
{
var
msgbase
=
new
MsgBase
(
"
mail
"
);
if
(
msgbase
.
open
()
==
false
)
{
...
...
@@ -613,6 +613,40 @@ if(your.node !== 9999
print
(
"
AreaFix NetMail message created successfully.
"
);
}
/**************************************************************/
/* Add links to logs/stats files to "Operator" G-file section */
/**************************************************************/
function
add_gfile
(
fname
,
desc
,
tail
)
{
function
file_append
(
fname
,
text
)
{
var
file
=
new
File
(
fname
);
if
(
!
file
.
open
(
"
at
"
))
{
alert
(
"
Error
"
+
file
.
error
+
"
opening
"
+
file
.
name
);
return
false
;
}
file
.
writeAll
(
text
);
file
.
close
();
return
true
;
}
var
file
=
new
File
(
system
.
data_dir
+
"
text/operator.ini
"
);
if
(
!
file
.
open
(
file
.
exists
?
'
r+
'
:
'
w+
'
))
{
alert
(
"
Error
"
+
file
.
error
+
"
opening
"
+
file
.
name
);
return
false
;
}
var
section
=
"
%j
"
+
fname
;
if
(
file
.
iniGetObject
(
section
)
==
null
&&
confirm
(
"
Add
"
+
desc
))
{
if
(
file
.
iniSetObject
(
section
,
{
desc
:
"
Fido:
"
+
desc
,
tail
:
tail
}))
print
(
"
Added
"
+
fname
+
"
to
"
+
file
.
name
);
}
file
.
close
();
}
print
(
"
Updating the 'Operator' Text File Section:
"
);
add_gfile
(
"
sbbsecho.log
"
,
"
NetMail and EchoMail import/export activity log
"
,
500
);
add_gfile
(
"
badareas.lst
"
,
"
Unrecognized received EchoMail area list
"
);
add_gfile
(
"
echostats.ini
"
,
"
Detailed EchoMail statistics
"
);
add_gfile
(
"
binkstats.ini
"
,
"
Detailed BinkP (mail/file transfer) statistics
"
);
/***********************/
/* DISPLAY FINAL NOTES */
/***********************/
...
...
@@ -625,10 +659,7 @@ if(your.node == 9999) {
print
(
"
assigned to you.
"
);
print
();
}
print
(
"
See your 'data/sbbsecho.log' file for mail import/export activity.
"
);
print
(
"
See your 'data/badareas.lst' file for unrecognized received EchoMail areas.
"
);
print
(
"
See your 'data/echostats.ini' file for detailed EchoMail statistics.
"
);
print
(
"
See your 'data/binkstats.ini' file for detailed BinkP statistics.
"
);
print
(
"
See your 'Events' log output for outbound BinkP connections.
"
);
print
(
"
See your 'Services' log output for inbound BinkP connections.
"
);
print
(
"
Use exec/echocfg for follow-up FidoNet-related configuration.
"
);
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