Merge remote-tracking branch 'github/master' into phoenix

This commit is contained in:
Tom Willemsen 2012-03-20 17:06:35 +01:00
commit ff81e2f66f

View file

@ -66,10 +66,10 @@ function print_tags() {
function print_mailboxes() { function print_mailboxes() {
declare -A mailnames declare -A mailnames
mailboxes=(ninthfloor gmail arch aethon ryuslash.org) mailboxes=(ninthfloor gmail arch aethon ryuslash.org)
mailnames=([ninthfloor]="9f" [gmail]="gm" [arch]="arc" [aethon]="aet" [ryuslash.org]="ryu") mailnames=([ninthfloor]="9f" [gmail]="gm" [aethon]="aet" [ryuslash.org]="ryu")
mailtxt="" mailtxt=""
for j in "${mailboxes[@]}"; do for j in "${mailboxes[@]}"; do
mailfile="$HOME/documents/mail/$j/INBOX/new/" mailfile="$HOME/documents/mail/$j/inbox/new/"
mailcnt=$(ls $mailfile | wc -l) mailcnt=$(ls $mailfile | wc -l)
if [ $mailcnt -gt 0 ]; then if [ $mailcnt -gt 0 ]; then