This is a Python program to back up messages from a Fastmail mailbox via JMAP API to a local or network-attached directory.
Standing on the shoulders of the great work of Nathan Grigg[0], I've updated and extended it with a few new features. The README contains instructions for running it locally, or via Docker if you prefer.
Hope it's useful to someone, let me know if you encounter issues.