Re: [SOLVED] How to get email notifications on a TWM?
Reply #3 –
there's a package called mutt-wizard-git
it has a script called "mailsync". it does all you want. you can run this is script with a cronjob.
you can get number of unread mail like this
unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)"