Index: scripts/xdg-email =================================================================== RCS file: /cvs/portland/portland/xdg-utils/scripts/xdg-email,v retrieving revision 1.49 diff -u -r1.49 xdg-email --- scripts/xdg-email 22 Apr 2010 10:47:13 -0000 1.49 +++ scripts/xdg-email 30 Apr 2010 11:37:03 -0000 @@ -396,7 +396,7 @@ BCC=$(echo "$MAILTO" | grep '^bcc=' | sed 's/^bcc=//' | 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 }') + ATTACH=$(echo "$MAILTO" | sed 's/^attach=/\n\nfile:\/\//g' | awk '/^file:/ { printf "%s,",$0 }' | sed 's/,$//') if [ -z "$TO" ] ; then NEWMAILTO=