{"thread":{"id":"61613","subject":"[PATCH] git-send-email: Use sanitized address when reading mbox body","startedAt":"2024-06-10T12:21:25Z","lastAt":"2024-06-10T12:21:25Z","messageCount":1,"participants":["csókás"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"496764","messageId":"20240610122034.656108-3-csokas.bence@prolan.hu","threadId":"61613","inReplyTo":null,"subject":"[PATCH] git-send-email: Use sanitized address when reading mbox body","fromName":"","fromEmail":"csókás","sentAt":"2024-06-10T12:20:36Z","receivedAt":"2024-06-10T12:21:25Z","isPatch":true,"sender":{"key":"csókás","avatar":null},"body":"Commas and other punctuation marks in 'Cc: ', 'Signed-off-by: '\netc. lines mess with git-send-email. In parsing the mbox headers,\nthis is handled by calling `sanitize_address()`. This function\nis called when parsing the message body as well, but was only\nused for comparing it to $author. Now we add it to @cc too.\n\nSigned-off-by: Csókás, Bence <csokas.bence@prolan.hu>\n---\n git-send-email.perl | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/git-send-email.perl b/git-send-email.perl\nindex f0be4b4560..72044e5ef3 100755\n--- a/git-send-email.perl\n+++ b/git-send-email.perl\n@@ -1847,9 +1847,9 @@ sub pre_process_file {\n \t\t\t\t\t$what, $_) unless $quiet;\n \t\t\t\tnext;\n \t\t\t}\n-\t\t\tpush @cc, $c;\n+\t\t\tpush @cc, $sc;\n \t\t\tprintf(__(\"(body) Adding cc: %s from line '%s'\\n\"),\n-\t\t\t\t$c, $_) unless $quiet;\n+\t\t\t\t$sc, $_) unless $quiet;\n \t\t}\n \t}\n \tclose $fh;\n-- \n2.34.1\n\n\n"}]}