changed message number to the value provided by the mail api