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
91c304b7
Commit
91c304b7
authored
May 02, 2019
by
rswindell
Browse files
Use require() to get the definitions we need instead of conditional load()ing
or copy/pasted definitions (e.g. RFC822HEADER).
parent
059f5dff
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
exec/load/822header.js
exec/load/822header.js
+1
-4
exec/load/mailproc_util.js
exec/load/mailproc_util.js
+3
-6
exec/load/newsutil.js
exec/load/newsutil.js
+2
-7
No files found.
exec/load/822header.js
View file @
91c304b7
const
RFC822HEADER
=
0xb0
;
// from smbdefs.h
const
SMTPRECEIVED
=
0xd3
;
const
FIDOSEENBY
=
0xa2
;
const
FIDOPATH
=
0xa3
;
require
(
"
utf8_ascii.js
"
,
'
utf8_ascii
'
);
require
(
"
smbdefs.js
"
,
'
RFC822HEADER
'
);
MsgBase
.
HeaderPrototype
.
get_rfc822_header
=
function
(
force_update
,
unfold
)
{
...
...
exec/load/mailproc_util.js
View file @
91c304b7
...
...
@@ -4,12 +4,9 @@
// $Id$
if
(
!
js
.
global
||
js
.
global
.
NET_INTERNET
==
undefined
)
load
(
"
sbbsdefs.js
"
);
if
(
!
js
.
global
||
js
.
global
.
mail_get_name
==
undefined
)
load
(
"
mailutil.js
"
);
// mail_get_name() and mail_get_address()
const
RFC822HEADER
=
0xb0
;
// from smbdefs.h
require
(
"
sbbsdefs.js
"
,
'
NET_INTERNET
'
);
require
(
"
smbdefs.js
"
,
'
RFC822HEADER
'
);
require
(
"
mailutil.js
"
,
'
mail_get_name
'
);
// Parses raw RFC822-formatted messages for use with SMTP Mail Processors
// Returns an array of header fields parsed from the msgtxt
...
...
exec/load/newsutil.js
View file @
91c304b7
...
...
@@ -5,13 +5,8 @@
// $Id$
if
(
!
js
.
global
||
js
.
global
.
mail_get_name
==
undefined
)
load
(
"
mailutil.js
"
);
FIDOCTRL
=
0xa0
// from smbdefs.h
FIDOSEENBY
=
0xa2
// from smbdefs.h
FIDOPATH
=
0xa3
// from smbdefs.h
RFC822HEADER
=
0xb0
// from smbdefs.h
require
(
"
mailutil.js
"
,
'
mail_get_name
'
);
require
(
"
smbdefs.js
"
,
'
RFC822HEADER
'
);
function
write_news_header
(
hdr
,
writeln
)
{
...
...
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