From e0b712fb735b5b0208bdbcd0a55a74beb4ec81ca Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 12 Aug 2011 15:33:48 +0200 Subject: [PATCH] xdg-email: Pass unescaped addresses for Thunderbird 5 --- scripts/xdg-email.in | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in index bbfb604..0f34a57 100644 --- 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 "$MAILTO" | grep '^to=' | sed 's/^to=//' | awk '{ printf "%s,",$0 }') - CC=$(echo "$MAILTO" | grep '^cc=' | sed 's/^cc=//' | awk '{ printf "%s,",$0 }') - BCC=$(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//' | 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 "$MAILTO" | sed 's/^attach=/\n\nfile:\/\//g' | awk '/^file:/ { printf "%s,",$0 }' | sed 's/,$//') -- 1.7.6