Added an utility method to delete all the email on the server.
Fixed the crash when subject is null.
Now there is a maximum number iterations for polling servers for
e-mails. Servers are polled every 2 seconds for 30 times.  Currently
hard-coded but as a constant so easy to make it a config.
Handling the case when direct messages are between the same domain is
added.