leave out drafts in unread messages

This commit is contained in:
Felix Van der Jeugt 2021-03-19 00:17:44 +01:00
parent 36faade27e
commit 09cfde6d20
No known key found for this signature in database
GPG Key ID: 58B209295023754D

5
yashrc
View File

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