Rework get_message()

Signed-off-by: Tomas Hozza <thozza@redhat.com>