Open gbp opened 2 years ago
This appears to be an issue upstream when parsing emails with the mail gem. Seems to be since Ruby 2.7.5 which included mitigation for CVE-2021-41817.
There is a PR which might fix this issue https://github.com/mikel/mail/pull/1469
For the emails received by AsktheEU they all come from the same domain consilium.europa.eu
and is caused by leading spaces on the header rows after the Date
header. Such as:
Date: 27 Jan 2022 14:37:56 +0100
To: ask+request-xxx-xxx@asktheeu.org
From: "Postmaster Consilium" <xxx@consilium.europa.eu>
As a temporary fix I have corrected the raw emails by removing the spaces for the affect raw emails (IDs: 35358, 35361, 35685, 35766, 35795, 35896, 35952)
Another message has been received with the same issue - manually fixed again.
Created a PR in the AskTheEU theme to save doing this manual fix everytime
Still receiving emails with the same issue. PR is up for review
Seeing the same issue on WDTK now:
Date: 17 Nov 2022 17:57:03 +0000
To: snip
From: "Mail Delivery System" <snip>
Seeing this on the Netherlands admin too.