Cloudreve icon indicating copy to clipboard operation
Cloudreve copied to clipboard

Fix: Adapt to Gmail.

Open liaosunny123 opened this issue 1 year ago • 1 comments

Add Message-ID to the mail service header to adapt to services such as Gmail

liaosunny123 avatar Feb 13 '24 04:02 liaosunny123

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Feb 13 '24 04:02 CLAassistant

Is there any document on why this field will affect Gmail?

HFO4 avatar Feb 23 '24 10:02 HFO4

Is there any document on why this field will affect Gmail?

refer to https://datatracker.ietf.org/doc/html/rfc5322#section-3.6.4

Here: Though listed as optional in the table in section 3.6, every message SHOULD have a "Message-ID:" field. Furthermore, reply messages SHOULD have "In-Reply-To:" and "References:" fields as appropriate and as described below.

If you send email to Gmail with original settiings, you will got: host gmail-smtp-in.l.google.com[xxx] said: 550-5.7.1 [xxx] Messages missing a valid Message-ID header are not accepted. For more information, go to https://support.google.com/mail/?p=RfcMessageNonCompliant and review RFC 5322 specifications.

liaosunny123 avatar Feb 23 '24 13:02 liaosunny123

Thanks!

HFO4 avatar Feb 24 '24 13:02 HFO4