Email into group sends empty notification

AI-generated summary

Users carlokok and tobiaseigen reported a bug in the latest Discourse version where emailing a group creates a “staged” user and triggers an empty notification email. carlokok noted these staged users appear in gray in the admin list. zogstrip identified the issue and pointed to a previous fix, while carlokok clarified there were two distinct problems: staging the user and adding them to the group with a mail notification. zogstrip pushed a specific fix for the notification and suggested a manual workaround to disable emails for staged users matching group addresses. After carlokok expressed satisfaction with the feature despite the bugs, carlokok encountered a related issue with duplicate accounts generated from alias email addresses. zogstrip confirmed the fix applies if the reply_by_email_address setting is configured correctly. carlokok later noted the fix worked for the direct address but not the alias. Finally, zogstrip implemented an automatic solution to disable emails for these staged users, eliminating the need for manual workarounds.

Very latest discourse.

Discourse adds an entry for when email groups:
@carlokok INVITED @SUPPORT2 4 HOURS AGO

and does an explicit, empty email for that:

Update: Looks like it adds a staged user for the target address (support2) of a gruop and then sends an empty notification about that.

「いいね!」 2

Where do these staged users live? Can they be viewed in the admin User list?

I am testing this out too.

They’re in the users list, but they show as light gray.

「いいね!」 1

What version are you running? This was fixed by

https://github.com/discourse/discourse/commit/61cc776fdd08bc692ea2391a10d84c06c096906a

@zogstrip: FIX: message_archived? not set correctly for groups · discourse/discourse@665fc44 · GitHub

Note that there are two issues here:

  • It stages a user for the “incoming email” for a group
  • It adds the user to the group as extra user and mails about it

Just pushed a fix about that specific issue :wink:

https://github.com/discourse/discourse/commit/735017dd9fb846a2b5418935355f1f9fda493b41


Also, you might want to disable emails (both “Send me an email when someone messages me” and “Send me an email when someone quotes me, replies to my post, mentions my @username, or invites me to a topic”) for all the staged users with email matching a group’s incoming email. I might make this automatic but for now a manual workaround is enough.

「いいね!」 3

Cool. Ofc this fix will hide the notification issue.

Btw: really impressed with this feature. Reported a few issues but really liking it so far.

「いいね!」 1

Got a bunch of “Carlo_Kok” accounts now for email addresses like:

3d6bfe09ec4c581e1d252a331982@talk.remobjects.com

(talk.remobjects.com is my incoming email domain). Will this fix that too?

What does your “reply_by_email_address” setting look like?

If it’s %{reply_key}@talk.remobjects.com then yes :wink:

thanks. Upgrading now :slight_smile:

I think I understand now. I email to sales@remobjects.com which is an alias to something@talk.remobjects.com. The fix seems to work for the last one directly, but not the first one, which is the incoming address for the group.

I actually did make it automatic because it wasn’t that hard and was annoying the hell out of me :smiling_imp:

https://github.com/discourse/discourse/commit/4a17cdc1e49288dff957a46ba516b7bd65be3ae5

「いいね!」 2