Generate many email threads for testing purposes and persist them on an IMAP server. The script has no dependencies outside of Python's standard library.
- Provision an IMAP server and enable TLS, e.g. Stalwart.
- Create two users on it, e.g.
alice@stalwart.localhost
andbob@stalwart.localhost
.
- Edit the settings block at the beginning of mail_chain.py before running. The settings should be self-explanatory.
- Run the script and pass the desired amount of messages to generate, e.g.
mail_chain.py 100000
.