summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-02-06 14:58:55 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:19 +0100
commit3f2fe4c498be2a8066a23ce6fb8b763df8674f4c (patch)
treeca683f407ee77db0d76e16a0dec6b1fb69e4d064
parent047249affe4ae52fea392f7588b3fbd667b16d43 (diff)
Corrects a bug with commit f1f7a16b2d60f6496b13577184916e9f022f98e1
- when only junk mail, does show mail received. - and also, always count one empty record.
-rw-r--r--11_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh
index c0c251f..201a377 100644
--- a/11_Prompts.zsh
+++ b/11_Prompts.zsh
@@ -136,7 +136,7 @@ precmd ()
"$C_$COLOR_USER$_C"%n"$C_$COLOR_AROB$_C"@"$C_$COLOR_HOST$_C"%m $CURDIR$GITBRANCH "$C_$COLOR_DIES$_C"%#"$C_$COLOR_CMD$_C" "
# Mailcheck
- [ -s ~/.procmail/procmail.log ] && [ "`< ~/.procmail/procmail.log awk 'BEGIN {FS="From" ; MATCH=0} !/JUNK/ { MATCH++ } END { print MATCH }'`" -gt 0 ] && sbin/mails
+ [ -s ~/.procmail/procmail.log ] && [ `< ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=0} !/JUNK/ { HAM++ } END { print HAM }'` -gt 1 ] && sbin/mails
}
chpwd()