diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-10-08 17:32:54 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-10-08 17:32:54 +0200 |
commit | 9b669d0bc3e6c1c129ae2bb4f6720e7a19ed9b64 (patch) | |
tree | 1bdb66e9ea0ca86098e3a1da0a16ed1d7833443b /12_Prompts.zsh | |
parent | 40b37f258fd10a997ff71797ebb9e528977b73b4 (diff) |
dev.null as JUNK folder
Diffstat (limited to '12_Prompts.zsh')
-rw-r--r-- | 12_Prompts.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh index 62febfb..4a6c19e 100644 --- a/12_Prompts.zsh +++ b/12_Prompts.zsh @@ -76,7 +76,7 @@ old_precmd() # Mailcheck [ "$DEBUG" = "yes" ] && echo -n " Mails..." - MAILSTAT=$(eval echo "`[ -s ~/.procmail/procmail.log ] && < ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=-1 ; LISTES=0 } !/JUNK/ { HAM++ } /Listes|Newsletters|Notifications/ { LISTES++ } END { if ((HAM - LISTES) > 0) { print "$C_$prompt_colors[bar]$_C""-""$C_$mail_colors[unread]$_C""@" } else if (LISTES > 0) { print "$C_$prompt_colors[bar]$_C""-""$C_$mail_colors[listes]$_C""@" } }'`") + MAILSTAT=$(eval echo "`[ -s ~/.procmail/procmail.log ] && < ~/.procmail/procmail.log awk 'BEGIN {RS="From" ; HAM=-1 ; LISTES=0 } !/JUNK|dev.null/ { HAM++ } /Listes|Newsletters|Notifications/ { LISTES++ } END { if ((HAM - LISTES) > 0) { print "$C_$prompt_colors[bar]$_C""-""$C_$mail_colors[unread]$_C""@" } else if (LISTES > 0) { print "$C_$prompt_colors[bar]$_C""-""$C_$mail_colors[listes]$_C""@" } }'`") MAILSTATEXPAND=$(expand_text "$MAILSTAT") MAILSTATSIZE=${#MAILSTATEXPAND} [ "$DEBUG" = "yes" ] && echo |