adds tests and listener for indexing mails created outside the user agent, see #103
fix for when a chash isnt found