Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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.

share|improve this question
up vote 1 down vote accepted

Check out the "Burst digest messages" applescript. From its description:

This AppleScript for Mail will take one or more selected digest messages (messages formatted as either multipart/digest (MIME digest) according to RFC2046 or simple digest as defined by RFC1153) and extract the individual messages from the digest message - this is especially useful if you are subscribed to a mailing list in digest format but want to reply to a single message in the digest rather than the digest message itself.

(found this via list of Mail plug-ins)

share|improve this answer

I may damage my reputation for this but if you run Windows on your Mac, perhaps you could import your mail into Outlook Express 6, close this and run express-archiver (download from which is very powerful and can save each of your emails as a plain text file with all of the header information, encoded attachments (or them placed in a folder if you want). It also has powerful renaming options to give each file.

Not a Mac solution but may do what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.