E-mail naar meerdere groepen

AI-generated summary

The discussion revolves around an issue with Discourse’s email-in functionality, where incoming emails sent to multiple groups only generate a single message for the first matching group, rather than creating separate messages for each group. Parad0x describes the problem in detail, involving a single POP3 mailbox with multiple aliases and corresponding Discourse groups. While emails with one recipient are handled correctly, those with multiple recipients result in only the first group being notified. The user seeks a solution or workaround, noting that a similar but different issue was discussed in an older topic. evantill confirms the same problem on version 2.6.0.beta5 and asks how to help fix it. Parad0x expresses relief at not being alone in this issue. evantill suggests the issue may stem from the email receiver loop in the code, which only processes the first matching destination, referencing a specific line in the Discourse repository.

Problem summary

Incoming Email to multiple groups is only generating one new message for the first group.

Invironment

  • External: One POP3-Mailbox
  • External: Multiple aliases for that one Mailbox ('group-a@domain.de, 'group-b@domain.de ,…)
  • Discourse: Multiple discourse-groups with different configured emailadress for incoming emails

Behavior

  • External: One email to 'group-b@domain.de creates one email in the mailbox
  • External: One email to multiple recipients ('group-a@domain.de + 'group-b@domain.de) creates one email in the mailbox with multiple recipients in the mailheader
  • Discourse: Single incoming Emails with only one recipient ('group-c@domain.de) generate one new message for the right group :white_check_mark:
  • Discourse: Single incoming Email with multiple recipients generates one new message for the first group :warning:

Example / Usecase

Sender 'a@external.de sends an email to 'b@external.de + 'group-a@doamin.de + 'group-b@domain.de.
A few minutes later there is a new discourse message with group-a as recipient / member of the message. Group-b will not be notified and can not access the message.


I could’t find a setting like “handle each recipient separately”.
Does someone else has the same Problem? Is it possible to implement such a setting or is there a workaround besinde useing multiple mailboxes (There is a monthly price per mailbox)

Please help. I’ve searched many hours now and am stucked in a dead end.

There is an old Topic Email-in to multiple categories that has a similarly problem but not quite identical. On that old topic there should be many topics in different categories. In my scenario there should be one message for many groups. Like if you write a message manually and add multiple groups manally to that message. So everyone can reply on that one location.


P.S: I hat to mark all emails with ’ because I wasn’t allowed to use many links as new user. The mails are send without the ’

Does anyone has a tip? Even if there is no solution. Please point me in a direction :wink:
Do you need more info?

Hi,

We have discovered the same problem here.

  • Discourse version 2.6.0.beta5

How can we help to solve this bug ?

I’m glad not to be the only one :wink:

Our Version: 2.6.0.beta6

We had no luck in solving or finding the corse of this.

It seems that the mail receiver loop on the destinations and only handle the first matching destination ( if I understand well):