diff options
author | Jay Soffian <jaysoffian@gmail.com> | 2009-02-14 23:32:14 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-14 21:48:38 -0800 |
commit | 5012699d9840fe34fe0838ea0d529c2f32f76b82 (patch) | |
tree | 55e117003757090ec687360a2f918e8e514a3257 /git-quiltimport.sh | |
parent | send-email: allow send-email to run outside a repo (diff) | |
download | tgif-5012699d9840fe34fe0838ea0d529c2f32f76b82.tar.xz |
send-email: handle multiple Cc addresses when reading mbox message
When git format-patch is given multiple --cc arguments, it generates a
Cc header that looks like:
Cc: first@example.com,
second@example.com,
third@example.com
Before this commit, send-email was unable to handle such a message as it
did not handle folded header lines, nor multiple recipients in a Cc
line.
This patch:
- Unfolds header lines by pre-processing the header before extracting
any of its fields.
- Handles Cc lines with multiple recipients.
- Adds use of Mail::Address if available for splitting Cc line and
the "Who should the emails be sent to?" prompt", with fall back to
existing split_addrs() function.
- Tests the new functionality and adds two tests for detecting whether
"From:" appears correctly in message body when patch author differs
from patch sender.
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-quiltimport.sh')
0 files changed, 0 insertions, 0 deletions