summaryrefslogtreecommitdiff
path: root/11_Prompts.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-02-22 11:36:20 +0100
committerHugues Hiegel <hugues@hiegel.fr>2008-03-07 14:15:20 +0100
commitb10f92db75915c74811001f447e369031e7d4ec7 (patch)
tree768b8b9e2205dfcb2fe165d68b7c4d6a754d8eda /11_Prompts.zsh
parentd9fbc58a384744a29246ce5b0f1a3d8cb74837b9 (diff)
Affiche "you got mail !" si on a du courrier non lu.
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 ##