implement email status api

One part of #26.

r? @vladikoff