From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web11.3284.1575433866728075736 for ; Tue, 03 Dec 2019 20:31:06 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: nathaniel.l.desimone@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Dec 2019 20:31:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,276,1571727600"; d="scan'208";a="213696470" Received: from orsmsx107.amr.corp.intel.com ([10.22.240.5]) by orsmga003.jf.intel.com with ESMTP; 03 Dec 2019 20:31:06 -0800 Received: from orsmsx155.amr.corp.intel.com (10.22.240.21) by ORSMSX107.amr.corp.intel.com (10.22.240.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Dec 2019 20:31:05 -0800 Received: from orsmsx114.amr.corp.intel.com ([169.254.8.67]) by ORSMSX155.amr.corp.intel.com ([169.254.7.211]) with mapi id 14.03.0439.000; Tue, 3 Dec 2019 20:31:05 -0800 From: "Nate DeSimone" To: "devel@edk2.groups.io" Subject: Public-Service-Announcement: send-email issues with Git 2.22.0+ Thread-Topic: Public-Service-Announcement: send-email issues with Git 2.22.0+ Thread-Index: AdWqWds9URDLS1o3Qn2EICWO9UQWFw== Importance: high X-Priority: 1 Date: Wed, 4 Dec 2019 04:31:04 +0000 Message-ID: <02A34F284D1DA44BB705E61F7180EF0AB5C14981@ORSMSX114.amr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzU5NDkzNDgtMWUwMi00YjQxLWFlNTItOGMwYzU4MzFjNzNkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMHFMMnkxZWVOVGx5M3BOT1VPK244aVFKekZjWlwvZm54M0hQME56WFRRZGQ4ZmRPN3pqckVZS2szNERxRFwveHR3In0= x-ctpclassification: CTP_NT x-originating-ip: [10.22.254.138] MIME-Version: 1.0 Return-Path: nathaniel.l.desimone@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Everyone, I have been dealing with a very frustrating issue recently where all of my = "CR LF" line endings get erroneously converted into "LF LF" once I send my = patch to the mailing list. I have discovered the root cause for this proble= m. The issue is the following commit to git itself: https://github.com/git/git/commit/5983ddc165221c3ec2a4299b65cfb2ecc1ce7765 This change is present in git version 2.20.0 or later, per the release note= s: https://github.com/git/git/blob/v2.22.0/Documentation/RelNotes/2.22.0.txt With this change, if you leave sendemail.transferEncoding set to the defaul= t value of "auto", then git will inspect the body of your email. If it find= s a '\r' character in the message, then it converts the entire message cont= ent into Quoted-Printable encoding. It appears that when groups.io converts= the QP encoding back to text format, the '\r' characters somehow become '\= n'. To workaround this make sure to set the following configuration option: git config --global sendemail.transferEncoding 8bit This will prevent send-email from converting the message into QP encoding, = allowing the patches to pass through to the mailing list unharmed. Hope tha= t saves other people a few hours of frustration. Regards, Nate