OJS 3.5 — Discussion emails: sender not identifiable and the "reply in the system" notice is easy to mis

Context

We rely on editorial Discussions to keep all communication and files tracked at the submission level, including tasks delegated to collaborators. Being able to see every discussion attached to an article is essential for monitoring progress across many journals.

Issue

Since moving from 3.3 to 3.5, discussion notification emails have two problems that push authors to reply by email instead of using the system (breaking our tracking):

  1. Sender not identifiable. With force_dmarc_compliant_from enabled (required for our DMARC setup), the From is rewritten to the generic default_envelope_sender. If dmarc_compliant_from_displayname is empty, the recipient sees only a generic address with no name. In 3.3 the sender (and journal) were visible.
  2. The “reply in the system” notice is weak and only at the bottom. It comes from the locale string emails.footer.unsubscribe.discussion, which Mailable::buildView() always appends at the end of the body. In longer messages it goes unnoticed, so authors reply by email instead.

See the screenshot below: the “From” field shows only a generic editorial@... address with no sender name, and the “Reply to this comment” notice is a small line at the very bottom, easy to miss.

(screenshot attached)

What we tried

  • Setting dmarc_compliant_from_displayname = '%n via %s' restores a sender name (note: %s is the site title, not the journal/context name).
  • We can restyle the footer text (e.g. a highlighted box) via the Custom Locale plugin, but it stays at the bottom — there seems to be no supported way to move it above the message body, since these emails are Mailable classes with the body set programmatically (->body($note->contents)), not editable templates.

Questions

  • Is there a supported way to show the discussion sender’s name in these emails by default (e.g. {$senderName})?
  • Would the team consider making the “reply in system” notice more prominent/placeable above the body, or exposing it as an editable email template?
  • Is a hook (e.g. Mailable::build) the intended extension point for customizing discussion email bodies, or is there a better one?

Thanks in advance.

What application are you using?
For example, OJS 3.5.0-5