1 2 3 4 5 6
#!/bin/bash # support spaces after "mailto:" even if they are probably wrong mailto=$(printf "%s" "$1" | sed -r 's#^mailto:\s*#mailto:#') term-open mutt "$mailto"