move createMessageHeader to MessageViewer
Summary:
as we need to execute the function from within the renderer, the
best way that came into my mind, was to use functional methods.
Test Plan: run tests
Reviewers: KDE PIM, vkrause
Tags: KDE PIM
Differential Revision: https://phabricator.kde.org/D8891