commit 0976eae933d3ecc54bd17061b8a847f980fda669
parent 93ab2b7b990393367e46cd0274d61603758bee38
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Mon, 9 Mar 2015 16:14:41 +0100
only look at first part of hostname
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/my-mutt b/my-mutt
@@ -4,7 +4,7 @@
# http://unix.stackexchange.com/q/90399
echo
sleep 0.04
-if grep "^`hostname`$" ~/.mutt/local_email > /dev/null
+if grep "^`hostname | cut -d '.' -f1`$" ~/.mutt/local_email > /dev/null
then
# local email
# -e "push '<limit>~(! ~D)<enter>G'"