ProtonMail / proton-bridge

Proton Mail Bridge application
GNU General Public License v3.0
1.11k stars 145 forks source link

git send-email patches mangled by `Content-Transfer-Encoding: quoted-printable` #461

Open zamaudio opened 5 months ago

zamaudio commented 5 months ago

I am using git send-email to mail code patches to a mailing list. Our maintainer uses plain mbox format to read patch emails. Therefore, we need the transfer encoding header to be preserved so that the patch can flow unmangled.

Expected Behavior

Content-Transfer-Encoding header should be preserved if set.

Current Behavior

Content-Transfer-Encoding is always set to quoted-printable.

Possible Solution

Remove the line of code that overwrites the header? Or make it detect some values of X-Mailer and preserve the header if that is set.

Version Information

Proton Mail Bridge 3.8.2 with git send-email 2.30.2

LBeernaertProton commented 5 months ago

Hey @zamaudio thanks for the report. Could you provide us with a sample message that arrives on Bridge's SMTP server so we can investigate further?

You can capture the SMTP input with:

bridge -l=trace --log-smtp > capture.log

Note that the above log will contain sensitive information, it's advised to delete everything but the SMTP when submitting.