Python script that runs commands against all e-mail messages in specified IMAP mail folders