Export the data from your mailbox from your e-mail program by backing up.
You can use a backup as an archive or import it into another e-mail program / computer.
We explain how to make a backup in the most used mail programs.
Also read: Import a backup from your mailbox into your mail program