author | Haavard Skinnemoen <hskinnemoen@atmel.com> | |
Wed, 23 Aug 2006 10:02:59 +0000 (03:02 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 23 Aug 2006 10:04:01 +0000 (03:04 -0700) | ||
commit | 68d42c41ef33cde500307660bb64a1c74f62711e | |
tree | cf7a05a9c7fe66a174932ae32e6d71e5a71720c4 | tree | snapshot |
parent | 44c10841ea3edeef47cc6be0fdba5058344e2e95 | commit | diff |
git-send-email: Don't set author_not_sender from Cc: lines
When an mbox-style patch contains a Cc: line in the header,
git-send-email will check the address against the sender specified
on the command line. If they don't match, sender_not_author will
be set to the address obtained from the Cc line.
When this happens, git-send-email inserts a From: line at the
beginning of the message body with the address obtained from the
Cc line in the header, and the sender might be accused of forging
patch authors.
This patch fixes this by only updating sender_not_author when
processing From: lines, not when processing Cc: lines.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When an mbox-style patch contains a Cc: line in the header,
git-send-email will check the address against the sender specified
on the command line. If they don't match, sender_not_author will
be set to the address obtained from the Cc line.
When this happens, git-send-email inserts a From: line at the
beginning of the message body with the address obtained from the
Cc line in the header, and the sender might be accused of forging
patch authors.
This patch fixes this by only updating sender_not_author when
processing From: lines, not when processing Cc: lines.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | diff | blob | history |