Description: Don't quote header fields when calling Thunderbird from xdg-email The quotes mess up e-mail addresses (pelle@debian.org becomes "pelle@debian.org" <>). Author: pelle@debian.org Last-Update: 2015-09-14 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/scripts/xdg-email.in +++ b/scripts/xdg-email.in @@ -43,9 +43,9 @@ run_thunderbird() fi MAILTO=$(echo "$MAILTO" | sed 's/&/\n/g') - TO=$(echo -e $(echo "$MAILTO" | grep '^to=' | sed 's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }')) - CC=$(echo -e $(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }')) - BCC=$(echo -e $(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "\"%s\",",$0 }')) + TO=$(echo -e $(echo "$MAILTO" | grep '^to=' | sed 's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')) + CC=$(echo -e $(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')) + BCC=$(echo -e $(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }')) SUBJECT=$(echo "$MAILTO" | grep '^subject=' | tail -n 1) BODY=$(echo "$MAILTO" | grep '^body=' | tail -n 1) ATTACH=$(echo -e $(echo "$MAILTO" | grep '^attach=' | sed 's/^attach=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }' | sed 's/,$//')) @@ -53,13 +53,13 @@ run_thunderbird() if [ -z "$TO" ] ; then NEWMAILTO= else - NEWMAILTO="to='$TO'" + NEWMAILTO="to=$TO" fi if [ -n "$CC" ] ; then - NEWMAILTO="${NEWMAILTO},cc='$CC'" + NEWMAILTO="${NEWMAILTO},cc=$CC" fi if [ -n "$BCC" ] ; then - NEWMAILTO="${NEWMAILTO},bcc='$BCC'" + NEWMAILTO="${NEWMAILTO},bcc=$BCC" fi if [ -n "$SUBJECT" ] ; then NEWMAILTO="${NEWMAILTO},$SUBJECT"