do not count/show unprocessed mails

This commit is contained in:
Felix Van der Jeugt 2021-04-26 13:43:06 +02:00
parent 75678bbeeb
commit 2639f68780
No known key found for this signature in database
GPG Key ID: 58B209295023754D

6
yashrc
View File

@ -44,7 +44,7 @@ prompt_date() {
date +%H:%M:%S date +%H:%M:%S
} }
prompt_mail() { prompt_mail() {
unread="$(mlist -ds $(mdirs /data/mail) | wc -l)" unread="$(mlist -nds $(mdirs /data/mail) | wc -l)"
[ "$unread" -eq 1 ] && printf ' (1 mail)' [ "$unread" -eq 1 ] && printf ' (1 mail)'
[ "$unread" -gt 1 ] && printf ' (%s mails)' "$unread" [ "$unread" -gt 1 ] && printf ' (%s mails)' "$unread"
} }
@ -64,8 +64,8 @@ alias ll="lr -Fl1Ghov"
alias marchive="mflag -fSt" alias marchive="mflag -fSt"
alias mspam="mflag -fST" alias mspam="mflag -fST"
alias mkeep="mflag -FSt" alias mkeep="mflag -FSt"
alias munread="mdirs /data/mail | mlist -ds | mseq -S && mscan" alias munread="mdirs /data/mail | mlist -nds | mseq -S && mscan"
alias minbox="mdirs /data/mail | mlist -dt | mpick -t 'flagged || ! seen' | msort -d | mthread | mseq -S && mscan" alias minbox="mdirs /data/mail | mlist -ndt | mpick -t 'flagged || ! seen' | msort -d | mthread | mseq -S && mscan"
# There is only one vis # There is only one vis
alias vim="vis" alias vim="vis"