bin-utils/newmail_ol.sh

9 lines
366 B
Bash
Raw Permalink Normal View History

2015-05-30 16:42:42 +00:00
#!/bin/bash
# source newmail: http://code.burningsoda.com/newmail
# https://github.com/roblillack/newmail/
# print Maildir folders containing unread mails with count, on one line
newmail .mail 2>/dev/null | grep -v archives | awk '{print $2"("$1")"}' | tr '\n' ' '
newmail .mail/RSS 2>/dev/null | grep -v archives | awk '{print "RSS/"$2"("$1")"}' | tr '\n' ' '