Updated mail extension to fit with updated worker interface.
Updated mail extension to fit with updated worker interface.