Implement some features in private messages plugin (#245)