commit d59605544fd954b75a71a3f88be38be132644555 parent 4d84acc605e2444a3dcb716a5b78b65bfe4c8036 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 6 Aug 2019 22:47:34 +0200 Show git emails in mailstatus Diffstat:
M | .local/bin/mailstatus | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.local/bin/mailstatus b/.local/bin/mailstatus @@ -3,8 +3,8 @@ maildir=~/.mail if [ ! -d $maildir ]; then exit 0 fi -#newmails=$(find $maildir/*/INBOX/new $maildir/*/git/new -type f) -newmails=$(find $maildir/*/INBOX/new -type f) +newmails=$(find $maildir/*/INBOX/new $maildir/*/git/new -type f) +#newmails=$(find $maildir/*/INBOX/new -type f) numbernewmails=$(echo "$newmails" | wc -w | sed 's/ *//') mailboxes="$(echo "$newmails" | tr ' ' '\n' | \ sed 's/.*\/mail\///;s/\/INBOX.*//;s/adamsgaard\/git.*/git/')"