Fix smtp subject empty encoded fix, ES 5 min timeout

* Empty smtp subject encodings caused glib warnings or crashes
* Increased ES query timeout from 30s to 5 minutes
* email.subject is a case sensitive field