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
c0f7272e
Commit
c0f7272e
authored
1 year ago
by
Eric Oulashin
Committed by
Rob Swindell
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
DDMsgReader: When forwarding a message, the subject can now be edited before sending the message
parent
c8cd0993
No related branches found
No related tags found
2 merge requests
!463
MRC mods by Codefenix (2024-10-20)
,
!262
DDMsgReader: When forwarding a message, the subject can now be edited before sending the message
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xtrn/DDMsgReader/DDMsgReader.js
+19
-6
19 additions, 6 deletions
xtrn/DDMsgReader/DDMsgReader.js
xtrn/DDMsgReader/readme.txt
+2
-2
2 additions, 2 deletions
xtrn/DDMsgReader/readme.txt
xtrn/DDMsgReader/revision_history.txt
+4
-0
4 additions, 0 deletions
xtrn/DDMsgReader/revision_history.txt
with
25 additions
and
8 deletions
xtrn/DDMsgReader/DDMsgReader.js
+
19
−
6
View file @
c0f7272e
...
...
@@ -99,6 +99,8 @@
* 2023-02-24 Eric Oulashin Version 1.65
* Ctrl-C can now be used to cancel message scans. Output from the scan
* is now word-wrapped to the terminal width.
* 2023-03-02 Eric Oulashin Version 1.66
* Now allows editing the subject when forwarding a message
*/
"use strict";
...
...
@@ -204,8 +206,8 @@ var ansiterm = require("ansiterm_lib.js", 'expand_ctrl_a');
// Reader version information
var READER_VERSION = "1.6
5
";
var READER_DATE = "2023-0
2-24
";
var READER_VERSION = "1.6
6
";
var READER_DATE = "2023-0
3-02
";
// Keyboard key codes for displaying on the screen
var UP_ARROW = ascii(24);
...
...
@@ -14360,15 +14362,20 @@ function DigDistMsgReader_ForwardMessage(pMsgHdr, pMsgBody)
var retStr = "";
console.
print("\x01n")
;
console.
attributes = "N"
;
console.crlf();
console.print("\x01cUser name/number/email address\x01h:\x01n");
console.crlf();
var msgDest = console.getstr(console.screen_columns - 1, K_LINE);
console.
print("\x01n")
;
console.
attributes = "N"
;
console.crlf();
if (msgDest.length > 0)
{
// Let the user change the subject if they want
var subjPromptText = bbs.text(SubjectPrompt);
console.putmsg(subjPromptText);
var msgSubject = console.getstr(pMsgHdr.subject, console.screen_columns - console.strlen(subjPromptText) - 1, K_LINE | K_EDIT);
var tmpMsgbase = new MsgBase("mail");
if (tmpMsgbase.open())
{
...
...
@@ -14403,7 +14410,13 @@ function DigDistMsgReader_ForwardMessage(pMsgHdr, pMsgBody)
}
newMsgBody += "From: " + pMsgHdr.from + "\n";
newMsgBody += "To: " + pMsgHdr.to + "\n";
newMsgBody += "Subject: " + pMsgHdr.subject + "\n";
if (msgSubject == pMsgHdr.subject)
newMsgBody += "Subject: " + pMsgHdr.subject + "\n";
else
{
newMsgBody += "Subject: " + msgSubject + "\n";
newMsgBody += "(Original subject: " + pMsgHdr.subject + ")\n";
}
newMsgBody += "==================================\n\n";
newMsgBody += pMsgBody;
...
...
@@ -14460,7 +14473,7 @@ function DigDistMsgReader_ForwardMessage(pMsgHdr, pMsgBody)
// the message. The destination ("to" informatoin) will be filled in
// according to the destination type.
var destMsgHdr = { to_net_type: NET_NONE, from: user.name,
replyto: user.name, subject: "Fwd: " + pMsgHdr.subject
};
replyto: user.name, subject: "Fwd: " +
msgSubject }; //
pMsgHdr.subject
if (user.netmail.length > 0)
{
destMsgHdr.replyto_net_addr = user.netmail;
...
...
This diff is collapsed.
Click to expand it.
xtrn/DDMsgReader/readme.txt
+
2
−
2
View file @
c0f7272e
Digital Distortion Message Reader
Version 1.6
4
Release date: 2023-0
2
-0
9
Version 1.6
6
Release date: 2023-0
3
-0
2
by
...
...
This diff is collapsed.
Click to expand it.
xtrn/DDMsgReader/revision_history.txt
+
4
−
0
View file @
c0f7272e
...
...
@@ -5,6 +5,10 @@ Revision History (change log)
=============================
Version Date Description
------- ---- -----------
1.66 2023-03-02 When forwarding a message, the subject can now be edited
before sending the message
1.65 2023-02-24 Ctrl-C can now be used to cancel message scans. Output
from the scan is now word-wrapped to the terminal width.
1.64 2023-02-09 When reading personal email (received or sent), as a
loadable module, now it can allow reading another user's
mail (for the sysop when deleting a user account).
...
...
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