summaryrefslogtreecommitdiff
path: root/11_Prompts.zsh
diff options
context:
space:
mode:
Diffstat (limited to '11_Prompts.zsh')
-rw-r--r--11_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/11_Prompts.zsh b/11_Prompts.zsh
index f8fde5e..34f60e4 100644
--- a/11_Prompts.zsh
+++ b/11_Prompts.zsh
@@ -92,7 +92,7 @@ precmd ()
errorsize=4
# Mailcheck
- MAILSTAT="`[ -s ~/.procmail/procmail.log ] && < ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=-1} !/JUNK/ { HAM++ } END { if (HAM > 0) { print "-You got mail !-" } }'`"
+ MAILSTAT="`[ -s ~/.procmail/procmail.log -a $(find ~/Mail -type f -iwholename "*/new/*" | wc -l) -ne 0 ] && < ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=-1} !/JUNK/ { HAM++ } END { if (HAM > 0) { print "-You got mail !-" } }'`"
## SVN TRACKING ##