Skip to content
Snippets Groups Projects
Commit 93c94a26 authored by Eric Oulashin's avatar Eric Oulashin Committed by Rob Swindell
Browse files

DDMsgReader: When forwarding a message, now prepends the subject with "Fwd: "...

DDMsgReader: When forwarding a message, now prepends the subject with "Fwd: " before editing the subject.
parent 5d1d586f
No related branches found
No related tags found
2 merge requests!463MRC mods by Codefenix (2024-10-20),!264DDMsgReader: When forwarding a message, now prepends the subject with "Fwd: " before editing the subject.
...@@ -49,5 +49,8 @@ msgListSort=Received ...@@ -49,5 +49,8 @@ msgListSort=Received
; Whether or not to convert Y-style MCI attribute codes to Synchronet attribute codes ; Whether or not to convert Y-style MCI attribute codes to Synchronet attribute codes
convertYStyleMCIAttrsToSync=true convertYStyleMCIAttrsToSync=true
; Whether or not to prepend the subject for forwarded messages with "Fwd: "
prependFowardMsgSubject=true
; The theme file name (for colors, strings, etc.) ; The theme file name (for colors, strings, etc.)
themeFilename=DefaultTheme.cfg themeFilename=DefaultTheme.cfg
\ No newline at end of file
...@@ -1099,6 +1099,9 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs) ...@@ -1099,6 +1099,9 @@ function DigDistMsgReader(pSubBoardCode, pScriptArgs)
// Whether or not to use the scrollbar in the enhanced message reader // Whether or not to use the scrollbar in the enhanced message reader
this.useEnhReaderScrollbar = true; this.useEnhReaderScrollbar = true;
   
// Whether or not to prepend the subject for forwarded messages with "Fwd: "
this.prependFowardMsgSubject = true;
this.cfgFilename = "DDMsgReader.cfg"; this.cfgFilename = "DDMsgReader.cfg";
// Check the command-line arguments for a custom configuration file name // Check the command-line arguments for a custom configuration file name
// before reading the configuration file. Defaults to the current user // before reading the configuration file. Defaults to the current user
...@@ -8296,6 +8299,8 @@ function DigDistMsgReader_ReadConfigFile() ...@@ -8296,6 +8299,8 @@ function DigDistMsgReader_ReadConfigFile()
} }
else if (settingUpper == "CONVERTYSTYLEMCIATTRSTOSYNC") else if (settingUpper == "CONVERTYSTYLEMCIATTRSTOSYNC")
this.convertYStyleMCIAttrsToSync = (valueUpper == "TRUE"); this.convertYStyleMCIAttrsToSync = (valueUpper == "TRUE");
else if (settingUpper == "PREPENDFOWARDMSGSUBJECT")
this.prependFowardMsgSubject = (valueUpper == "TRUE");
} }
} }
   
...@@ -14371,10 +14376,12 @@ function DigDistMsgReader_ForwardMessage(pMsgHdr, pMsgBody) ...@@ -14371,10 +14376,12 @@ function DigDistMsgReader_ForwardMessage(pMsgHdr, pMsgBody)
console.crlf(); console.crlf();
if (msgDest.length > 0) if (msgDest.length > 0)
{ {
// Let the user change the subject if they want // Let the user change the subject if they want (prepend it with "Fwd: " for forwarded
// and let the user edit the subject
var subjPromptText = bbs.text(SubjectPrompt); var subjPromptText = bbs.text(SubjectPrompt);
console.putmsg(subjPromptText); console.putmsg(subjPromptText);
var msgSubject = console.getstr(pMsgHdr.subject, console.screen_columns - console.strlen(subjPromptText) - 1, K_LINE | K_EDIT); var initialMsgSubject = (this.prependFowardMsgSubject ? "Fwd: " + pMsgHdr.subject : pMsgHdr.subject);
var msgSubject = console.getstr(initialMsgSubject, console.screen_columns - console.strlen(subjPromptText) - 1, K_LINE | K_EDIT);
   
var tmpMsgbase = new MsgBase("mail"); var tmpMsgbase = new MsgBase("mail");
if (tmpMsgbase.open()) if (tmpMsgbase.open())
......
...@@ -708,6 +708,10 @@ convertYStyleMCIAttrsToSync Whether or not to convert Y-style MCI ...@@ -708,6 +708,10 @@ convertYStyleMCIAttrsToSync Whether or not to convert Y-style MCI
attribute codes to Synchronet attribute attribute codes to Synchronet attribute
codes. Valid values are true and false. codes. Valid values are true and false.
prependFowardMsgSubject Whether or not to prepend the subject for
forwarded messages with "Fwd: ". Valid
values are true and false. Defaulse to
true.
themeFilename The name of the configuration file to themeFilename The name of the configuration file to
use for colors & string settings use for colors & string settings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment