Record the function handler as the handler for key. For the possible values of key, see get_content().
email.contentmanager/ContentManager.add_get_handler
ContentManager.add_get_handler