From b10f92db75915c74811001f447e369031e7d4ec7 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 22 Feb 2008 11:36:20 +0100 Subject: Affiche "you got mail !" si on a du courrier non lu. --- 11_Prompts.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '11_Prompts.zsh') 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 ## -- cgit v1.2.3