Script: SetSubject - jobisoft/quicktext GitHub Wiki

Set subject dynamically, for example based on the current subject or any other Quicktext variable.

Script

let subject = this.mVariables[0];

if (this.mWindow.document.getElementById('msgSubject')) {
  this.mWindow.document.getElementById('msgSubject').value = subject;
}

Usage

Adding "RE: " to the current subject:

[SCRIPT=SetSubject](/jobisoft/quicktext/wiki/RE:-[[SUBJECT)]]