leave out drafts in unread messages
This commit is contained in:
parent
36faade27e
commit
09cfde6d20
5
yashrc
5
yashrc
@ -44,8 +44,7 @@ prompt_date() {
|
|||||||
date +%H:%M:%S
|
date +%H:%M:%S
|
||||||
}
|
}
|
||||||
prompt_mail() {
|
prompt_mail() {
|
||||||
#unread="$(mpick -t '! seen' | wc -l)"
|
unread="$(mlist -ds $(mdirs /data/mail) | wc -l)"
|
||||||
unread="$(mlist -s $(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"
|
||||||
}
|
}
|
||||||
@ -65,7 +64,7 @@ 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 -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"
|
alias minbox="mdirs /data/mail | mlist -dt | mpick -t 'flagged || ! seen' | msort -d | mthread | mseq -S && mscan"
|
||||||
|
|
||||||
# There is only one vis
|
# There is only one vis
|
||||||
|
Loading…
Reference in New Issue
Block a user