9 lines
366 B
Bash
9 lines
366 B
Bash
|
#!/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' ' '
|