So you want to customize subject format for standard emails? Great, let’s get started!

The subject for standard emails can be customized from: Admin / Settings / Email / email subject

Available formatting options are:

%{optional_re}[%{site_name}] %{optional_pm}%{optional_cat}%{topic_title}

  • %{optional_re} → Re: (applicable if the post is a Reply)

  • %{site_name} → Community Title

  • %{optional_pm} → [PM] (applicable if the post is a Personal Message)

  • %{optional_cat} → [category] / [category/subcategory] {not applicable for uncategorized topics and PM)

  • %{topic_title} → Topic title

Complied subject for typical email notification:

[Community Title] [category] Topic title

Please note that a trailing whitespace will automatically be appended to %{optional_re}, %{optional_pm} and %{optional_cat}.

For Example, let’s consider this post:

https://meta.discourse.org/t/how-to-update-to-discourse-1-0/19328

The email subject formatting for Reply notification of above topic will be:

  • %{optional_re} → Re:

  • %{site_name} → Discourse Meta

  • %{optional_pm} → (Not Applicable)

  • %{optional_cat} → [howto]

  • %{topic_title} → How to update to Discourse 1.0?

Complied subject for the above topic will be:

Re: [Discourse Meta] [howto] How to update to Discourse 1.0?

That’s it! You have successfully customized subject format for standard emails.

Source: https://meta.discourse.org/t/customize-subject-format-for-standard-emails/20801