saveing inbox to local storage