KMail → Mails selection will only backup mails in your Local Folders, it will backup IMAP settings and download messages upon restore. If you have emails on a IMAP server you wish to be backed up, you should use Folder Archive Agent to archive those emails to a local folder.