discourse/spec/mailers
Martin Brennan c4ea158656
FIX: Improve tags in email subjects and add filter headers (#19760)
This commit does a couple of things:

1. Changes the limit of tags to include a subject for a
   notification email to the `max_tags_per_topic` setting
   instead of the arbitrary 3 limit
2. Adds both an X-Discourse-Tags and X-Discourse-Category
   custom header to outbound emails containing the tags
   and category from the subject, so people on mail clients
   that allow advanced filtering (i.e. not Gmail) can filter
   mail by tags and category, which is useful for mailing
   list mode users

c.f. https://meta.discourse.org/t/headers-for-email-notifications-so-that-gmail-users-can-filter-on-tags/249982/17
2023-01-06 10:03:02 +10:00
..
group_smtp_mailer_spec.rb SECURITY: BCC active user emails from group SMTP (#19725) 2023-01-05 06:07:50 +08:00
invite_mailer_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
rejection_mailer_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
subscription_mailer_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
test_mailer_spec.rb Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
user_notifications_spec.rb FIX: Improve tags in email subjects and add filter headers (#19760) 2023-01-06 10:03:02 +10:00
version_mailer_spec.rb DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00