Mailing list mode user not getting emails and not appearing in skipped_email_logs

AI-generated summary

A user set to mailing list mode is not receiving some email notifications, despite other users on the same domain receiving them. The emails are missing from both the email_logs and skipped_email_logs tables. The issue seems to be related to topics that were initially created in a secured category and then moved to a public one. wesochuck suspects that this might be a condition in the email notification path that is being missed.

We have a user who is set for mailing list mode but still doesn’t get some emails. The email notification for the post/topic doesn’t appear in the email_logs table for them NOR does it appear in the skipped_email_logs table for their user_id.

So far, they’ve only mentioned missing emails one category, but they DO get some email notices from that category. Other users on the same email domain get the notices.

We’re not exactly sure when this started, but they did change their username years ago, so I thought it might be this issue, but it seems that in the end that wasn’t traced to a username change.

I checked /logs too. Any other suggestions for logs we might look at to see why Discourse isn’t generating some email notices for them?

I think we’ve narrowed this down to when there is a topic that was started in a “secured” category (like Staff) and then moved to a public one. So, we’ll draft something and then put it in a public category and those are the alerts these folks are missing.

Does anyone know that area of the code base well enough to see if that is a condition that could be getting missed in the email notification path?