# Unexplained Email::Receiver::InvalidPost errors

**URL:** https://meta.discourse.org/t/unexplained-email-invalidpost-errors/377793
**Category:** Bug
**Created:** [August 7, 2025, 8:31pm UTC](https://meta.discourse.org/t/unexplained-email-invalidpost-errors/377793 "2025-08-07T20:31:32Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [January 13, 2026, 3:57pm UTC](https://meta.discourse.org/t/unexplained-email-invalidpost-errors/377793/17 "2026-01-13T15:57:40Z")

</div>

> [@lavamind](#):
>
> The plaintext record of the email sent to Discourse from Mailman (`IncomingEmail`) is available [here](https://paste.lib3.net/lavamind/2026-01-12-6kqgZqUPAyl_aXR9SN1C538kPeOR6FA4DM6ReXtGUNc/stdin.txt)

Running that through `Email::Receiver.new(rawmessage).select_body` returns:

```plaintext
=> ["", "", 2]

```

so I’m pretty confident what’s happening here is that Discourse is incorrectly selecting an empty plain/text portion as the message body, probably this one:

```plaintext
--Sig_/gizYC_1dGsAzUHvksdaMIe2
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

```

which would be an invalid post.

We’ll need to do a bit of investigation on this and probably use it as a test case.

---

_[View the full topic](https://meta.discourse.org/t/unexplained-email-invalidpost-errors/377793)._
