commit 5a6d17355deeb3eebd4622402272b238bfde5e57 parent 5f0e4b3ff4d372364aa232004f719f04f2eaaed8 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Fri, 9 May 2014 01:47:55 +0200 local or remote email Diffstat:
my-mutt | | | 9 | ++++++++- |
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/my-mutt b/my-mutt @@ -3,5 +3,12 @@ # TODO: why the hell is this ls needed to make it work with urxvt?! echo sleep 0.01 -mutt -e "push '<limit>~(! ~D)<enter>G'" +if grep "^`hostname`$" ~/.mutt/local_email > /dev/null +then + # local email + mutt -e "push '<limit>~(! ~D)<enter>G'" +else + # remote email + mutt -F ~/.mutt/imap -e "push '<limit>~(! ~D)<enter>G'" +fi