summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-02-04 17:41:57 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:19 +0100
commit047249affe4ae52fea392f7588b3fbd667b16d43 (patch)
treefe758248f08886f8cd300eaf300f0c25dab65a21
parent803f9fb507ba489ca91596880f7a16c741e551b9 (diff)
Only display new mails when it's not junk mail. :)
-rw-r--r--11_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh
index 315058d..c0c251f 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 ] && sbin/mails
+ [ -s ~/.procmail/procmail.log ] && [ "`< ~/.procmail/procmail.log awk 'BEGIN {FS="From" ; MATCH=0} !/JUNK/ { MATCH++ } END { print MATCH }'`" -gt 0 ] && sbin/mails
}
chpwd()