Mail client now resumes processing of pending messages on open
Add some calls to get information about mail from client

Also fix some bugs in the proof of work segment of the mail processing
pipeline