Hi, Mutt is an mail reader (MUA). It doesn't realized the features your want natively but you can add external tools:
* to fetch your mail automatically, you can use [offlineimap][1] or [isync][2]. * to analyze your mail content you can use [notmuch][3] (to do it client side) or [imapfilter][4] (to do it server side). there is many others tools but I don't know there name Regards [1]: https://www.offlineimap.org/ [2]: http://isync.sourceforge.net/ [3]: https://notmuchmail.org/ [4]: https://github.com/lefcha/imapfilter On Tue, Jun 9, 2020 at 7:52 AM Kia Niskavaara <kia.niskava...@gmail.com> wrote: > > Hi all > > I'm looking for a scriptable email client for linux cli. Specifically I > need to connect it to a Gmail account using IMAP IDLE so that I will be > able to find new emails almost immediately. And secondly, when new emails > arrive, I need a script that automatically parse the body of every email to > look if they match a specific regular expression - and if they match, then > another script should be executed. > > Is this possible with Mutt? Can someone point me in the right direction? > I've looked at the FAQ/Google, but couldn't find anything about this > scenario. > > Thank you > > Kia > -- *Thomas AUREL* ***** Please consider the environment before printing this e-mail *****