Strips the trailing comma as required by Thunderbird 3: ATTACH=$(echo "$MAILTO" | sed 's/^attach=/\n\nfile:\/\//g' | awk '/^file:/ { printf "%s,",$0 }') ATTACH=$(echo "$ATTACH" | sed 's/,$//')
Strips the trailing comma as required by Thunderbird 3: /\n\nfile: \/\//g' | awk '/^file:/ { printf "%s,",$0 }')
ATTACH=$(echo "$MAILTO" | sed 's/^attach=
ATTACH=$(echo "$ATTACH" | sed 's/,$//')