From 10757a104a3a22893b67047215dc946f74fbdd68 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 28 Jul 2012 14:14:21 +0200 Subject: zprofile: new mail: ignore spam / Trash --- etc/.zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/.zprofile b/etc/.zprofile index 37d9aa0..17a2caf 100644 --- a/etc/.zprofile +++ b/etc/.zprofile @@ -24,7 +24,7 @@ function { setopt local_options setopt hist_subst_pattern - new_mail=(~/Maildir/**/new(DFN:h:s/*\\/Maildir\\/./)) + new_mail=(~/Maildir/**/new~*/.(spam|Trash)*(DFN:h:s/*\\/Maildir\\/./)) if (( $#new_mail )); then pr_info "Unread mail in: ${(j(, ))new_mail}" -- cgit v1.2.3