It initially seemed easy enough, but turned out it was not. I moved a customer to a new host, and she wanted a copy of all her emails on the old host.
So I ssh’d into both and copied over the /mail directory, which contained all her emails. Now I had a copy of all her email on the new server.
The mail directory structure is:
Within the cur directory are message files with names such as