Setting index upon message save.