User MKorndoerfer reported that Discourse stopped processing incoming emails, with logs showing Email::Receiver::EmptyEmailError and no entries in the rejected list. The issue persisted despite a small inbox (~30 emails) and the setting to delete processed emails being enabled as suggested. thoka speculated it might relate to timeouts or empty emails, and proposed patching processor.rb to skip blank mails or removing the failing Sidekiq job — cautioning to backup first. pfaffman noted that if the patch worked, it should be reported as a bug. MKorndoerfer later confirmed the mail server was experiencing issues, including read timeouts, and after consulting their host, identified a single problematic email as the root cause — moving it resolved processing for all other emails. MKorndoerfer offered to share the raw email privately for debugging. zogstrip requested the email for further investigation, highlighting its potential value for improving email handling in Discourse.
Just wait. It seems that the mail server is acting up. In addition to the empty mail error, I also get a read timeout, which I originally didn’t associate with the email process, but it is.
I’m currently talking with my mail hoster, who confirmed that there seems to be something wrong in his side.
Ok, we found the culprit. It was a single mail, as soon as I moved that mail into a separate folder, the rest of the mails were processed correctly.
An IMAP client can see that mail just fine. I’d send that mail’s raw contents (incl. headers and all) in a private message, if you want, so you can check and debug the reason for hanging the process.