bin-utils/newmail_ol.sh
2015-05-30 18:42:42 +02:00

9 lines
366 B
Bash
Executable File

#!/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' ' '