mail
- Update the message ID parsing logic to use the mail gem - Update the code to improve readability