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
583789f0
Commit
583789f0
authored
1 month ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Include sent mail messages in "mail" newsgroup too
parent
19557fbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/nntpservice.js
+8
-8
8 additions, 8 deletions
exec/nntpservice.js
with
8 additions
and
8 deletions
exec/nntpservice.js
+
8
−
8
View file @
583789f0
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
// -d debug output
// -d debug output
// -f filter bogus client IP addresses
// -f filter bogus client IP addresses
// -na no anonymous logins (requires user authentication)
// -na no anonymous logins (requires user authentication)
// -mail expose
user's
email in "mail" newsgroup
to non-Guest users
// -mail expose
non-Guest user's sent/received
email in "mail" newsgroup
// -nolimit unlimited message lengths
// -nolimit unlimited message lengths
// -notag do not append tear/tagline to local messages for Q-rest accounts
// -notag do not append tear/tagline to local messages for Q-rest accounts
// -ascii convert ex-ASCII to ASCII
// -ascii convert ex-ASCII to ASCII
...
@@ -142,7 +142,7 @@ function count_msgs(msgbase)
...
@@ -142,7 +142,7 @@ function count_msgs(msgbase)
if
(
idx
.
attr
&
MSG_VOTE
)
if
(
idx
.
attr
&
MSG_VOTE
)
continue
;
continue
;
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
idx
.
to
!=
user
.
number
)
if
(
idx
.
to
!=
user
.
number
&&
idx
.
from
!=
user
.
number
)
continue
;
continue
;
}
}
if
(
first
==
0
)
if
(
first
==
0
)
...
@@ -524,7 +524,7 @@ while(client.socket.is_connected && !quit) {
...
@@ -524,7 +524,7 @@ while(client.socket.is_connected && !quit) {
if
(
idx
.
attr
&
MSG_VOTE
)
if
(
idx
.
attr
&
MSG_VOTE
)
continue
;
continue
;
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
idx
.
to
!=
user
.
number
)
if
(
idx
.
to
!=
user
.
number
&&
idx
.
from
!=
user
.
number
)
continue
;
continue
;
}
}
writeln
(
idx
.
number
);
writeln
(
idx
.
number
);
...
@@ -570,7 +570,7 @@ while(client.socket.is_connected && !quit) {
...
@@ -570,7 +570,7 @@ while(client.socket.is_connected && !quit) {
if
(
hdr
.
attr
&
MSG_VOTE
)
if
(
hdr
.
attr
&
MSG_VOTE
)
continue
;
continue
;
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
hdr
.
to_ext
!=
user
.
number
)
if
(
hdr
.
to_ext
!=
user
.
number
&&
hdr
.
from_ext
!=
user
.
number
)
continue
;
continue
;
}
}
writeln
(
format
(
"
%u
\t
%s
\t
%s
\t
%s
\t
%s
\t
%s
\t
%u
\t
%u
\t
Xref:%s
"
writeln
(
format
(
"
%u
\t
%s
\t
%s
\t
%s
\t
%s
\t
%s
\t
%u
\t
%u
\t
Xref:%s
"
...
@@ -624,7 +624,7 @@ while(client.socket.is_connected && !quit) {
...
@@ -624,7 +624,7 @@ while(client.socket.is_connected && !quit) {
if
(
hdr
.
attr
&
MSG_VOTE
)
if
(
hdr
.
attr
&
MSG_VOTE
)
continue
;
continue
;
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
hdr
.
to_ext
!=
user
.
number
)
if
(
hdr
.
to_ext
!=
user
.
number
&&
hdr
.
from_ext
!=
user
.
number
)
continue
;
continue
;
}
}
var
field
=
""
;
var
field
=
""
;
...
@@ -734,7 +734,7 @@ while(client.socket.is_connected && !quit) {
...
@@ -734,7 +734,7 @@ while(client.socket.is_connected && !quit) {
break
;
break
;
}
}
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
msgbase
.
attributes
&
SMB_EMAIL
)
{
if
(
hdr
.
to_ext
!=
user
.
number
)
{
if
(
hdr
.
to_ext
!=
user
.
number
&&
hdr
.
from_ext
!=
user
.
number
)
{
writeln
(
"
430 message not for you
"
);
writeln
(
"
430 message not for you
"
);
break
;
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