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
82c56a44
Commit
82c56a44
authored
Dec 15, 2006
by
rswindell
Browse files
Display to/from names up to 25 chars in length and message subjects up to
50 chars in length (up from 10 and 20 each).
parent
2fedd915
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
web/root/msgs/msgs.ssjs
web/root/msgs/msgs.ssjs
+8
-6
No files found.
web/root/msgs/msgs.ssjs
View file @
82c56a44
...
...
@@ -8,6 +8,8 @@ if(msgbase.open!=undefined && msgbase.open()==false) {
}
var
ShowMsgs
=
GET_ALL_MESSAGES
;
var
MAX_NAME_LEN
=
25
;
var
MAX_SUBJ_LEN
=
50
;
if
(
file_exists
(
prefs_dir
+
format
(
"
%04d.html_prefs
"
,
user
.
number
)))
{
prefsfile
=
new
File
(
prefs_dir
+
format
(
"
%04d.html_prefs
"
,
user
.
number
));
...
...
@@ -244,9 +246,9 @@ if(DateDescending) {
if
(
hdr
==
null
)
continue
;
template
.
messages
[
displayed
.
toString
()]
=
hdr
;
template
.
messages
[
displayed
.
toString
()].
to
=
template
.
messages
[
displayed
.
toString
()].
to
.
substr
(
0
,
15
);
template
.
messages
[
displayed
.
toString
()].
from
=
template
.
messages
[
displayed
.
toString
()].
from
.
substr
(
0
,
15
);
template
.
messages
[
displayed
.
toString
()].
subject
=
template
.
messages
[
displayed
.
toString
()].
subject
.
substr
(
0
,
20
);
template
.
messages
[
displayed
.
toString
()].
to
=
template
.
messages
[
displayed
.
toString
()].
to
.
substr
(
0
,
MAX_NAME_LEN
);
template
.
messages
[
displayed
.
toString
()].
from
=
template
.
messages
[
displayed
.
toString
()].
from
.
substr
(
0
,
MAX_NAME_LEN
);
template
.
messages
[
displayed
.
toString
()].
subject
=
template
.
messages
[
displayed
.
toString
()].
subject
.
substr
(
0
,
MAX_SUBJ_LEN
);
template
.
messages
[
displayed
.
toString
()].
attachments
=
count_attachments
(
hdr
,
msgbase
.
get_msg_body
(
true
,
msgarray
[
last_offset
].
offset
));
template
.
messages
[
displayed
.
toString
()].
offset
=
msgarray
[
last_offset
].
offset
;
displayed
++
;
...
...
@@ -258,9 +260,9 @@ if(DateDescending) {
if
(
hdr
==
null
)
continue
;
template
.
messages
[
displayed
.
toString
()]
=
hdr
;
template
.
messages
[
displayed
.
toString
()].
to
=
template
.
messages
[
displayed
.
toString
()].
to
.
substr
(
0
,
15
);
template
.
messages
[
displayed
.
toString
()].
from
=
template
.
messages
[
displayed
.
toString
()].
from
.
substr
(
0
,
15
);
template
.
messages
[
displayed
.
toString
()].
subject
=
template
.
messages
[
displayed
.
toString
()].
subject
.
substr
(
0
,
20
);
template
.
messages
[
displayed
.
toString
()].
to
=
template
.
messages
[
displayed
.
toString
()].
to
.
substr
(
0
,
MAX_NAME_LEN
);
template
.
messages
[
displayed
.
toString
()].
from
=
template
.
messages
[
displayed
.
toString
()].
from
.
substr
(
0
,
MAX_NAME_LEN
);
template
.
messages
[
displayed
.
toString
()].
subject
=
template
.
messages
[
displayed
.
toString
()].
subject
.
substr
(
0
,
MAX_SUBJ_LEN
);
template
.
messages
[
displayed
.
toString
()].
attachments
=
count_attachments
(
hdr
,
msgbase
.
get_msg_body
(
true
,
msgarray
[
first_offset
].
offset
));
template
.
messages
[
displayed
.
toString
()].
offset
=
msgarray
[
first_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