Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-252

Interpolate variables in the Subject: line of email templates as well

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2, 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Environment:
      Tested on MacOSX/Java 1.5.0/Oracle, but trust me, it doesn't matter.
    • Attachments:
      1
    • Comments:
      1

      Description

      Email templates have positional parameters supplied by the code that invokes each template, which replace markers such as "

      {0}

      " in the text. This has only been done for the message body.

      It can be helpful to have event-specific information in the subject line of a message to help administrators sift through dozens of notifications. This simple patch extends the marker interpolation to subject lines as well. It also applies the specified character set to the subject line, which had not been done before, and might be considered a bug.

      See attached patch for the code. It was made against 1.5.2 sources.

        Attachments

          Activity

            People

            • Assignee:
              stuartlewis Stuart Lewis
              Reporter:
              lcs Larry Stone
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: