The context menu shown when right-clicking on an e-mail address in the header of a message should offer the option to add the address (and name, if available) to the addressbook.
Trojitá is no longer maintained, please switch to a maintained alternative like https://apps.kde.org/kmail2/ Sorry for the inconveniences.