gogs / gogs/gogs

MISSING_MID (Message-Id) on outgoing emails

Open
#5,147 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

👋 good first issue 🔨 enhancement 🙇‍♂️ help wanted
Dominant language
Go
Stars
47.8k
Forks
5.1k
Avg merge
7h 23m
Merged PRs (30d)
5

Description

At least in the Admin Panel -> Configuration -> Send Test Email the email is missing the Message-Id header and gets hit by rspamd / spamassassin rules MISSING_MID. Relevant spam headers follow:

Date: Tue, 03 Apr 2018 20:22:49 +0000
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Rspamd-Bar: +++
X-Rspamd-Report: MIME_HTML_ONLY(0.2) MISSING_MID(2.5) MV_CASE(0.5)
X-Rspamd-Score: 3.2
Subject: *****SPAM***** Gogs Test Email!

It also doesn't help that the email only has one content-type text/html.

More info on MISSING_MID

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the email from Admin Panel → Configuration → Send Test Email and inspect its headers. Trace the outgoing email path and verify the resulting message includes a Message-Id header; also check the reported single text/html content type. Done means the test email no longer triggers MISSING_MID.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.