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
5a07b272
Commit
5a07b272
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Added additional bool parameter to msgbase get_msg_body call to enable rfc822
encoding of message text.
parent
236d6ccc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
exec/newslink.js
+5
-9
5 additions, 9 deletions
exec/newslink.js
exec/nntpservice.js
+2
-1
2 additions, 1 deletion
exec/nntpservice.js
with
7 additions
and
10 deletions
exec/newslink.js
+
5
−
9
View file @
5a07b272
...
...
@@ -232,6 +232,7 @@ for(i in area) {
body
=
msgbase
.
get_msg_body
(
false
,
ptr
,
true
/* remove ctrl-a codes */
,
true
/* rfc822 formatted text */
,
true
/* include tails */
);
if
(
body
==
null
)
{
printf
(
"
!FAILED to read message number %ld
"
,
ptr
);
...
...
@@ -262,20 +263,15 @@ for(i in area) {
,
hdr
.
from
,
antispam
,
hdr
.
from_net_addr
));
else
writeln
(
format
(
"
From:
\"
%s
\"
<%s
%s
@%s%s>
"
writeln
(
format
(
"
From:
\"
%s
\"
<%s@%s%s>
"
,
hdr
.
from
,
antispam
,
hdr
.
from
,
hdr
.
from
.
replace
(
/ /g
,
"
_
"
)
,
antispam
,
hdr
.
from_net_addr
));
}
else
if
(
hdr
.
from
.
indexOf
(
'
'
)
>
0
)
writeln
(
format
(
"
From:
\"
%s
\"
<
\"
%s%s
\"
@%s%s>
"
,
hdr
.
from
,
antispam
,
hdr
.
from
,
antispam
,
system
.
inetaddr
));
else
writeln
(
format
(
"
From:
\"
%s
\"
<%s
%s
@%s%s>
"
writeln
(
format
(
"
From:
\"
%s
\"
<%s@%s%s>
"
,
hdr
.
from
,
antispam
,
hdr
.
from
,
hdr
.
from
.
replace
(
/ /g
,
"
_
"
)
,
antispam
,
system
.
inetaddr
));
writeln
(
"
To:
"
+
hdr
.
to
);
writeln
(
"
X-Comment-To:
"
+
hdr
.
to
);
...
...
This diff is collapsed.
Click to expand it.
exec/nntpservice.js
+
2
−
1
View file @
5a07b272
...
...
@@ -296,7 +296,8 @@ while(client.socket.is_connected) {
hdr
=
msgbase
.
get_msg_header
(
false
,
current_article
);
if
(
cmd
[
0
].
toUpperCase
()
!=
"
HEAD
"
)
body
=
msgbase
.
get_msg_body
(
false
,
current_article
,
true
/* remove ctrl-a codes */
);
,
true
/* remove ctrl-a codes */
,
true
/* rfc822 formatted text */
);
/* Eliminate dupe loops
if(user.security.restrictions&UFLAG_Q && hdr!=null)
...
...
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