discourse/spec/lib/email
Krzysztof Kotlarek b19583e253
FIX: Make system user fallback optional for category email (#35536)
Previously, when staged users were disabled and a category allowed
strangers via `email_in_allow_strangers`, incoming emails would
automatically fallback to using the system user to create topics.

Change introduced in this PR
https://github.com/discourse/discourse/pull/34655

This change adds a new hidden site setting
`email_in_allow_system_user_fallback` (default: false) that controls
this behavior. When disabled, emails from strangers will raise a
UserNotFoundError instead of creating topics as system user.
2025-10-22 15:01:36 +08:00
..
authentication_results_spec.rb DEV: Fix various rubocop lints (#24749) 2023-12-06 23:25:00 +01:00
cleaner_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
email_spec.rb DEV: Apply syntax_tree formatting to spec/* 2023-01-09 11:49:28 +00:00
message_builder_spec.rb FEATURE: Add X-Discourse-Sender Header to outgoing mail (#33123) 2025-06-10 10:45:31 +10:00
processor_spec.rb DEV: Incorrect site setting modifications in specs (#33708) 2025-07-19 01:36:51 +02:00
receiver_spec.rb FIX: Make system user fallback optional for category email (#35536) 2025-10-22 15:01:36 +08:00
renderer_spec.rb DEV: Reset DiscoursePluginRegistry after spec (#25369) 2024-01-22 08:51:36 -06:00
sender_spec.rb DEV: Preserve ids/classes in emails (#32084) 2025-03-31 20:58:45 +01:00
styles_spec.rb DEV: Preserve ids/classes in emails (#32084) 2025-03-31 20:58:45 +01:00