You have to subclass HTMLRendererIMAPCallback here.