diff --git a/.config/zsh/functions.zsh b/.config/zsh/functions.zsh index af2fc0d..5d98681 100755 --- a/.config/zsh/functions.zsh +++ b/.config/zsh/functions.zsh @@ -104,6 +104,7 @@ mnew () { mbsync -V $profile mlist -s "$maildir"/INBOX | msort -dr | mseq -S fi + minc "$maildir/INBOX" > /dev/null } # Get full mail for current profile including threads @@ -117,4 +118,11 @@ mall () { mbsync -V $profile mlist "$maildir"/INBOX | mthread -r -S "$sent" | mseq -S fi + minc "$maildir/INBOX" > /dev/null +} + +# Set mail as read +mread() { + mflag -S $1 + mseq -f : | mseq -S }