The MailSubscriptions implementation should be straightforward. The subscriptions are implemented as a simple tuple data structure, and they are accessible via the annotations adapter. Note that the implementation makes no assumption about the type of annotation that is going to be used; that is, you might use the AttributeAnnotations out of pure convenience, but the data could just as well be stored in LDAP without having any effect on the MailSubscriptions implementation.
Because there is no need to create a new module, you should add the following code to the message.py file: