This commit is contained in:
Adrian Amaglio 2022-02-18 00:09:18 +01:00
parent cf8d9f0026
commit 692abca1db

5
address Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
khard email "$@" | grep -E -o "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b"
s="$@"
[ "$#" -gt 0 ] && notmuch address "$@" | grep -i "$s"