I am receiving some bundled emails whose text bodies are delimited by dashes. I would prefer to have each body content in a separate mail, replacing the subject with maybe the first string of the body to identify it better.
In the good old days I would use fetchmail+procmail+formail+regular expressions to do this in the time the MTA is passing the mail to the local MUA.
Is there a way to accomplish the same thing in Mail.app using its filtering rules while talking to an IMAP server? I've checked /Library/Scripts/Mail Scripts but didn't find anything close other than the script that creates new mail, but that requires user input.