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
08fa3cb0
Commit
08fa3cb0
authored
5 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Fix indentation, call fullpath() on outbound roots.
parent
b9688f6d
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/binkit.js
+16
-15
16 additions, 15 deletions
exec/binkit.js
with
16 additions
and
15 deletions
exec/binkit.js
+
16
−
15
View file @
08fa3cb0
// $Id$
// $Id$
// vi: tabstop=
4
// vi: tabstop=
8 softtabstop=8 shiftwidth=8 noexpandtab
/*
/*
* Intentionally simple "Advanced BinkleyTerm Style Outbound"
* Intentionally simple "Advanced BinkleyTerm Style Outbound"
* mailer.
* mailer.
...
@@ -863,23 +863,24 @@ function run_outbound(ran)
...
@@ -863,23 +863,24 @@ function run_outbound(ran)
function
addDir
(
dir
)
{
function
addDir
(
dir
)
{
var
bdir
=
backslash
(
dir
);
var
bdir
=
backslash
(
dir
);
bdir
=
fullpath
(
bdir
);
if
(
outbound_dirs
.
indexOf
(
bdir
)
==
-
1
)
outbound_dirs
.
push
(
bdir
);
if
(
outbound_dirs
.
indexOf
(
bdir
)
==
-
1
)
outbound_dirs
.
push
(
bdir
);
}
}
function
addPoints
(
dir
)
{
function
addPoints
(
dir
)
{
var
pnts
=
directory
(
backslash
(
dir
)
+
'
*.pnt
'
,
false
);
var
pnts
=
directory
(
backslash
(
dir
)
+
'
*.pnt
'
,
false
);
pnts
.
forEach
(
function
(
pdir
)
{
pnts
.
forEach
(
function
(
pdir
)
{
if
(
pdir
.
search
(
/
[\\\/][
0-9a-z
]{8}
.pnt$/
)
>=
0
&&
file_isdir
(
pdir
))
{
if
(
pdir
.
search
(
/
[\\\/][
0-9a-z
]{8}
.pnt$/
)
>=
0
&&
file_isdir
(
pdir
))
{
addDir
(
pdir
);
addDir
(
pdir
);
}
else
{
}
else
{
log
(
LOG_WARNING
,
"
Unhandled/Unexpected point path '
"
+
pdir
+
"
'.
"
);
log
(
LOG_WARNING
,
"
Unhandled/Unexpected point path '
"
+
pdir
+
"
'.
"
);
}
}
});
});
}
}
if
(
file_isdir
(
oroot
))
{
if
(
file_isdir
(
oroot
))
{
addDir
(
oroot
);
addDir
(
oroot
);
addPoints
(
oroot
);
addPoints
(
oroot
);
}
else
{
}
else
{
log
(
LOG_NOTICE
,
"
Skipping non-existent outbound directory:
"
+
oroot
);
log
(
LOG_NOTICE
,
"
Skipping non-existent outbound directory:
"
+
oroot
);
return
;
return
;
...
@@ -892,13 +893,13 @@ function run_outbound(ran)
...
@@ -892,13 +893,13 @@ function run_outbound(ran)
if
(
ext
.
search
(
/^
\.[
0-9a-f
]
+$/
)
==
0
)
{
if
(
ext
.
search
(
/^
\.[
0-9a-f
]
+$/
)
==
0
)
{
if
(
file_isdir
(
dir
))
{
if
(
file_isdir
(
dir
))
{
addDir
(
dir
);
addDir
(
dir
);
addPoints
(
dir
);
addPoints
(
dir
);
}
else
{
}
else
{
log
(
LOG_WARNING
,
"
Unexpected file in outbound '
"
+
dir
+
"
'.
"
);
log
(
LOG_WARNING
,
"
Unexpected file in outbound '
"
+
dir
+
"
'.
"
);
}
}
}
else
{
}
else
{
log
(
LOG_WARNING
,
"
Unhandled outbound '
"
+
dir
+
"
'.
"
);
log
(
LOG_WARNING
,
"
Unhandled outbound '
"
+
dir
+
"
'.
"
);
}
}
});
});
});
});
log
(
LOG_DEBUG
,
"
Outbound dirs:
"
+
JSON
.
stringify
(
outbound_dirs
,
null
,
0
));
log
(
LOG_DEBUG
,
"
Outbound dirs:
"
+
JSON
.
stringify
(
outbound_dirs
,
null
,
0
));
...
...
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