Closed Carpela closed 9 years ago
Unfortunately the Gmail API doesn't parse headers way more than what Google gives us.
If you want to add extra methods to Message Object. I feel that this gem should keep on basic parsing. Parsing mail.from and getting just the name of just the email is something that you can do very easily on your end.
For example: mail.from[/<(.*?)>/m, 1] will return "john@smith.com" in your example
Can get from in the gmail syntax i.e. "Bob Smith bob@smith.com" Is there a way of getting just the address as per