Comment 24 for bug 515386

Fixed by adding the second line:
ATTACH=$(echo "$MAILTO" | sed 's/^attach=/\n\nfile:\/\//g' | awk '/^file:/ { printf "%s,",$0 }')
ATTACH=$(echo "$ATTACH" | sed 's/,$//')