Add message id getter
Merge pull request #393 from matthiasbeyer/add-message_id_getter

Add message id getter