Maildir and IMAP folder processing with user-defined Python scripts