Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
e77d3aa3
Commit
e77d3aa3
authored
Dec 09, 2004
by
deuce
Browse files
Read only headers that are used.
parent
305c75fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
web/root/msgs/msgs.ssjs
web/root/msgs/msgs.ssjs
+8
-4
No files found.
web/root/msgs/msgs.ssjs
View file @
e77d3aa3
...
...
@@ -105,10 +105,14 @@ else {
template
.
group
=
msg_area
.
grp
[
msg_area
.
sub
[
sub
].
grp_name
];
}
for
(
displayed
=
0
;
displayed
<
max_messages
&&
last_offset
>=
0
&&
msgarray
[
last_offset
].
hdr
!=
null
;
last_offset
--
)
{
if
(
msgarray
[
last_offset
].
hdr
.
subject
==
''
)
msgarray
[
last_offset
].
hdr
.
subject
=
"
-- No Subject --
"
;
template
.
messages
[
displayed
.
toString
()]
=
msgarray
[
last_offset
].
hdr
;
for
(
displayed
=
0
;
displayed
<
max_messages
&&
last_offset
>=
0
;
last_offset
--
)
{
var
hdr
=
msgbase
.
get_msg_header
(
true
,
msgarray
[
last_offset
].
offset
);
if
(
hdr
==
null
)
continue
;
msgarray
[
last_offset
].
hdr
!=
null
if
(
hdr
.
subject
==
''
)
hdr
.
subject
=
"
-- No Subject --
"
;
template
.
messages
[
displayed
.
toString
()]
=
hdr
;
template
.
messages
[
displayed
.
toString
()].
attachments
=
count_attachments
(
msgarray
[
last_offset
].
hdr
,
msgbase
.
get_msg_body
(
true
,
msgarray
[
last_offset
].
offset
,
true
,
true
));
template
.
messages
[
displayed
.
toString
()].
offset
=
msgarray
[
last_offset
].
offset
;
displayed
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment