We have a category of our Discourse instance set up as a “mailbox” for incoming emails (making use of the “Custom incoming email address” setting). This is working great, except for when two people send us an email with the same subject.
What I’d like is for Discourse to just create a new thread for each email, and I have “Allow topics with identical, duplicate titles.” turned on. What actually happens is that the second email gets rejected with a Email::Receiver::NoBodyDetectedError error. When I click on this error in the admin panel, I can clearly see content in the “body” box.
Is there something I can do to make this work? Or is it a bug?
Ah… sorry, the same subject thing may have been a red herring. But we are still getting a lot of emails rejected. This is what I see when I click the error, and there’s obviously content in the “body” box… is there a way of getting more info so I can work out why discourse can’t extract the content?
From the PM I sent @zogstrip many years ago, this is what we were trying to do:
A member of the public emails us at info@domain.invalid
This gets automatically forwarded to infotoforum@forum.domain.invalid
Discourse receives the mail, and creates a new topic in the “Info@” category. The “Custom incoming email address” for that category is set to “infotoforum@forum.domain.invalid”. The post is made as the “info@forum.domain.invalid” user, which is effectively a “system” account.
The convoluted forwarding was introduced because we wanted incoming email without staged users. We never want the people sending the emails to know that the Discourse forum exists. Judging by the lack of anyone else posting about this on Meta, I think it’s a pretty rare way to use Discourse .