--- ChangeLog | 4 ++++ src/git-lrde | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog index accd2e1..c43892d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-01-18 Roland Levillain roland@lrde.epita.fr + + * src/git-lrde (lrde_send_email): Handle multiple recipients. + 2009-02-17 Vincent Ordy ordy@lrde.epita.fr
git-lrde: Ignore quotes in email address. diff --git a/src/git-lrde b/src/git-lrde index efb62db..40950bf 100755 --- a/src/git-lrde +++ b/src/git-lrde @@ -114,12 +114,12 @@ lrde_send_email() test -n "$EMAIL" || die "No environment variable EMAIL set." sender="$FULLNAME <$EMAIL>"
- # Recipient. - # Look for a project mailing list e-mail address in Vcs helper. + # Recipient(s). + # Look for e-mail address(es) in Vcs helper. for f in . .. ../.. ../../..; do test -f "$f"/vcs/*.rb || continue recipient=`sed -n 's/.*mail.*[(.*@.*)].*/\1/p' "$f"/vcs/*.rb` - recipient=$(echo "$recipient" | sed "s/['"]//g") + recipient=$(echo "$recipient" | sed -e "s/['"]//g" -e "s/ /, /g") test -z "$recipient" || break done if test -z "$recipient"; then