4 # Mutt Mailto Handler for XDG Environment
5 # From https://github.com/NoSuck/MuttMailto
7 if [[ "$1" == mailto:* ]] ; then
11 sValidAttributes=( "Subject" )
12 for sAttribute in "${sValidAttributes[@]}" ; do
13 sHit="$( echo "$sEnd" | sed "s/^.*&$sAttribute=\([^&]*\).*/$sAttribute=\1/" )"
14 if [[ "$sEndNew" ]] ; then
15 sEndNew="$sEndNew&$sHit"
21 sNewMailto="$sStart$sEndNew"
22 # Modify as necessary.
23 i3-sensible-terminal -e /bin/sh -c "mutt -F ~/.mutt/mutt.uk.ac.aber.maf54_online ${sNewMailto:+ \"$sNewMailto\"}" &