I'm writing a script to send mails from a mailbox on a remote server and a script to check if the mails are received at another remote server. For this I have configured mutt.
What I now need is to list all mails from the mailbox with a specified subject from the command line. I couldn't find a command option to list mails from cli so I think I have to configure mutt to use Maildir and
grep files but I'm not sure if that's the best way to achieve my goal.