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
5dae9d70
Commit
5dae9d70
authored
23 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Moved Internet sub-menu to top of Networks menu, improved option descriptions.
parent
8dfe2ac6
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
src/sbbs3/scfg/scfgnet.c
+39
-58
39 additions, 58 deletions
src/sbbs3/scfg/scfgnet.c
with
39 additions
and
58 deletions
src/sbbs3/scfg/scfgnet.c
+
39
−
58
View file @
5dae9d70
...
...
@@ -77,22 +77,6 @@ if((p=strchr(str,'.'))!=NULL)
addr
.
point
=
atoi
(
p
+
1
);
return
(
addr
);
}
#if 0
/****************************************************************************/
/* Returns an ASCII string for FidoNet address 'addr' */
/****************************************************************************/
char *faddrtoa(faddr_t addr)
{
static char str[25];
char point[25];
sprintf(str,"%u:%u/%u",addr.zone,addr.net,addr.node);
if(addr.point) {
sprintf(point,".%u",addr.point);
strcat(str,point); }
return(str);
}
#endif
uint
getsub
()
{
...
...
@@ -132,10 +116,10 @@ void net_cfg()
while
(
1
)
{
i
=
0
;
strcpy
(
opt
[
i
++
],
"Internet"
);
strcpy
(
opt
[
i
++
],
"QWK Packet Networks"
);
strcpy
(
opt
[
i
++
],
"FidoNet EchoMail and NetMail"
);
strcpy
(
opt
[
i
++
],
"PostLink Networks"
);
strcpy
(
opt
[
i
++
],
"Internet NetMail"
);
opt
[
i
][
0
]
=
0
;
SETHELP
(
WHERE
);
/*
...
...
@@ -145,7 +129,7 @@ This is the network configuration menu. Select the type of network
technology that you want to configure.
*/
i
=
ulist
(
WIN_ORG
|
WIN_ACT
|
WIN_CHE
,
0
,
0
,
0
,
&
net_dflt
,
0
,
"Networks"
,
opt
);
if
(
i
==
0
)
{
/* QWK net stuff */
if
(
i
==
1
)
{
/* QWK net stuff */
done
=
0
;
while
(
!
done
)
{
i
=
0
;
...
...
@@ -178,7 +162,7 @@ networked sub-boards. This default can be overridden on a per sub-board
basis with the sub-board configuration Network Options....
*/
uinput
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
nulstr
,
cfg
.
qnet_tagline
,
63
,
K_MSG
|
K_EDIT
);
,
cfg
.
qnet_tagline
,
70
,
K_MSG
|
K_EDIT
);
break
;
case
0
:
while
(
1
)
{
...
...
@@ -263,7 +247,7 @@ outgoing network packets and must be accurate.
qhub_edit
(
i
);
}
break
;
}
}
}
else
if
(
i
==
1
)
{
/* FidoNet Stuff */
else
if
(
i
==
2
)
{
/* FidoNet Stuff */
done
=
0
;
while
(
!
done
)
{
i
=
0
;
...
...
@@ -670,7 +654,7 @@ If you want the sending of NetMail to be free, set this value to 0.
,
str
,
10
,
K_EDIT
|
K_NUMBER
);
cfg
.
netmail_cost
=
atol
(
str
);
break
;
}
}
}
else
if
(
i
==
2
)
{
else
if
(
i
==
3
)
{
done
=
0
;
while
(
!
done
)
{
i
=
0
;
...
...
@@ -682,10 +666,7 @@ If you want the sending of NetMail to be free, set this value to 0.
/*
PostLink Networks:
From this menu you can configure the default tagline to use for
outgoing messages on QWK networked sub-boards, or you can select
Network Hubs... to add, delete, or configure QWK hubs that your system
calls to exchange packets with.
From this menu you can configure PostLink or PCRelay Networks.
*/
i
=
ulist
(
WIN_ACT
|
WIN_RHT
|
WIN_BOT
|
WIN_CHE
,
0
,
0
,
0
,
&
pnet_dflt
,
0
,
"PostLink Networks"
,
opt
);
...
...
@@ -796,36 +777,35 @@ This is the Site Name of this hub. It is used for only for reference.
phub_edit
(
i
);
}
break
;
}
}
}
else
if
(
i
==
3
)
{
/* Internet */
else
if
(
i
==
0
)
{
/* Internet */
done
=
0
;
while
(
!
done
)
{
i
=
0
;
sprintf
(
opt
[
i
++
],
"%-27.27s%s"
,
"System Address"
,
cfg
.
sys_inetaddr
);
sprintf
(
opt
[
i
++
],
"%-27.27s%.40s"
,
"
NetM
ail Semaphore"
,
cfg
.
inetmail_sem
);
,
"
E-m
ail Semaphore"
,
cfg
.
inetmail_sem
);
sprintf
(
opt
[
i
++
],
"%-27.27s%s"
,
"Allow Sending of
NetM
ail"
,
"Allow Sending of
E-m
ail"
,
cfg
.
inetmail_misc
&
NMAIL_ALLOW
?
"Yes"
:
"No"
);
sprintf
(
opt
[
i
++
],
"%-27.27s%s"
,
"Allow File Attachments"
,
cfg
.
inetmail_misc
&
NMAIL_FILE
?
"Yes"
:
"No"
);
sprintf
(
opt
[
i
++
],
"%-27.27s%s"
,
"Send
NetM
ail Using Alias"
,
"Send
E-m
ail Using Alias"
,
cfg
.
inetmail_misc
&
NMAIL_ALIAS
?
"Yes"
:
"No"
);
sprintf
(
opt
[
i
++
],
"%-27.27s%lu"
,
"Cost to Send
NetM
ail"
,
cfg
.
inetmail_cost
);
,
"Cost to Send
E-m
ail"
,
cfg
.
inetmail_cost
);
opt
[
i
][
0
]
=
0
;
SETHELP
(
WHERE
);
/*
Internet
NetMail
:
Internet:
This menu contains configuration options that pertain specifically to
Internet E-mail (NetMail). To utilize these options, you must own
a Synchronet compatible UUCP/Internet gateway (e.g. SyncUUCP).
Internet E-mail.
*/
i
=
ulist
(
WIN_ACT
|
WIN_MID
|
WIN_CHE
,
0
,
0
,
60
,
&
inet_dflt
,
0
,
"Internet
NetMail
"
,
opt
);
,
"Internet"
,
opt
);
savnum
=
0
;
switch
(
i
)
{
case
-
1
:
/* ESC */
...
...
@@ -836,8 +816,8 @@ a Synchronet compatible UUCP/Internet gateway (e.g. SyncUUCP).
/*
Sytem Internet Address:
If
your system
has an
Internet
mail feed, enter your system's Internet
address here
(e.g. joesbbs.com).
Enter
your system
's
Internet
address (hostname or IP address) here
(e.g. joesbbs.com).
*/
uinput
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
""
,
cfg
.
sys_inetaddr
,
60
,
K_EDIT
);
...
...
@@ -845,11 +825,11 @@ address here (e.g. joesbbs.com).
case
1
:
SETHELP
(
WHERE
);
/*
Internet
NetM
ail Semaphore File:
Internet
E-m
ail Semaphore File:
This is a filename that will be used as a semaphore (signal) to
your
Internet gateway (if supported) that new mail has been created
and the
message base should be re-scanned.
This is a filename that will be used as a semaphore (signal) to
any
external
Internet gateway
s
(if supported) that new mail has been created
and the
message base should be re-scanned.
*/
uinput
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
"Semaphore File"
,
cfg
.
inetmail_sem
,
50
,
K_EDIT
);
...
...
@@ -862,13 +842,13 @@ message base should be re-scanned.
opt
[
2
][
0
]
=
0
;
SETHELP
(
WHERE
);
/*
Allow Users to Send Internet
NetM
ail:
Allow Users to Send Internet
E-m
ail:
If you
r system has an Internet uplink and you want your users to be
allowed to send Internet NetMail, set this
option to Yes.
If you
want your users to be allowed to send Internet E-mail, set this
option to Yes.
*/
i
=
ulist
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,
"Allow Users to Send
NetM
ail"
,
opt
);
,
"Allow Users to Send
E-m
ail"
,
opt
);
if
(
!
i
&&
!
(
cfg
.
inetmail_misc
&
NMAIL_ALLOW
))
{
changes
=
1
;
cfg
.
inetmail_misc
|=
NMAIL_ALLOW
;
}
...
...
@@ -884,13 +864,13 @@ allowed to send Internet NetMail, set this option to Yes.
opt
[
2
][
0
]
=
0
;
SETHELP
(
WHERE
);
/*
Allow Users to Send Internet
NetM
ail File Attachments:
Allow Users to Send Internet
E-m
ail File Attachments:
If you
r system has an Internet uplink and you want your users to b
e
allowed to send Internet NetMail file
attachments, set this option to Yes.
If you
want your users to be allowed to send Internet E-mail with fil
e
attachments, set this option to Yes.
*/
i
=
ulist
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,
"Allow Users to Send
NetMail
File Attachments"
,
opt
);
,
"Allow Users to Send
E-mail with
File Attachments"
,
opt
);
if
(
!
i
&&
!
(
cfg
.
inetmail_misc
&
NMAIL_FILE
))
{
changes
=
1
;
cfg
.
inetmail_misc
|=
NMAIL_FILE
;
}
...
...
@@ -905,15 +885,15 @@ allowed to send Internet NetMail file attachments, set this option to Yes.
opt
[
2
][
0
]
=
0
;
SETHELP
(
WHERE
);
/*
Use Aliases in
NetM
ail:
Use Aliases in
Internet E-m
ail:
If you allow aliases on your system and wish users to have their
NetMail
contain their alias as the From User, set this option to
Yes. If you
want all
NetM
ail to be sent using users' real names, set this
option to
No.
If you allow aliases on your system and wish users to have their
Internet E-mail
contain their alias as the From User, set this option to
Yes. If you
want all
E-m
ail to be sent using users' real names, set this
option to
No.
*/
i
=
ulist
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
0
,
&
i
,
0
,
"Use Aliases in
NetM
ail"
,
opt
);
,
"Use Aliases in
Internet E-m
ail"
,
opt
);
if
(
!
i
&&
!
(
cfg
.
inetmail_misc
&
NMAIL_ALIAS
))
{
changes
=
1
;
cfg
.
inetmail_misc
|=
NMAIL_ALIAS
;
}
...
...
@@ -925,13 +905,14 @@ want all NetMail to be sent using users' real names, set this option to
ultoa
(
cfg
.
inetmail_cost
,
str
,
10
);
SETHELP
(
WHERE
);
/*
Cost in Credits to Send
NetM
ail:
Cost in Credits to Send
Internet E-m
ail:
This is the number of credits it will cost your users to send NetMail.
If you want the sending of NetMail to be free, set this value to 0.
This is the number of credits it will cost your users to send Internet
E-mail. If you want the sending of Internet E-mail to be free, set this
value to 0.
*/
uinput
(
WIN_MID
|
WIN_SAV
,
0
,
0
,
"Cost in Credits to Send
NetM
ail"
,
"Cost in Credits to Send
Internet E-m
ail"
,
str
,
10
,
K_EDIT
|
K_NUMBER
);
cfg
.
inetmail_cost
=
atol
(
str
);
break
;
}
}
}
...
...
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