I usually just copy the mail folders to a usb stick. Depending on your system they will be stored in your home folder - under 'mail' or as a hidden folder under 'kmail'. Also a good idea to copy your mail settings. These are stored in a hidden folder under your home directory .kde/share/config as:-