5

How would I go about parsing new message subject lines non-interactively using Mutt?

Mutt is already configured and fetches mail from our Exchange server.

What I'd like is for an action to be triggered when a message arrives in my inbox with a certain subject line.

And this would have to be non-interactive, as it is for scripting purposes.

Any and all help is appreciated. I have Googled extensively but to no avail.

Thank you!

SirCharlo
  • 40,096

1 Answers1

6

Is is critical that it's mutt that does this? Performing actions when email arrives (that matches certain criteria) is otherwise precisely what procmail is for.

Here is a guide that shows you how to use fetchmail in conjunction with procmail to do filtering of emails that come from a remote mailbox:

http://fak3r.com/2011/07/07/howto-retrieve-email-with-fetchmail-and-forward-it-on-with-procmail/

Please disregard this answer is using mutt is essential.

Lakritsbollar
  • 951
  • 4
  • 7