I am trying to fetch the body of gmail using IMAP and ruby mail gem. It works perfectly while I fetch RFC822 field as described in another stack overflow answer.. Fiedl has described the approach very nicely to answer similar question.
This approach is great except it requires fetching RFC822 which also fetches all the attachments. Is there any other field or some other approach I can take not to fetch attachments but still use ruby mail gem to get the nicely decoded body?