Fixing headers for showing mails and indexing new docs