Made the emails index configurable, to avoid data loss during tests.