Displaying 1 result from an estimated 1 matches for "8a2583c5".
2006 Feb 17
2
Accessing just the body of email in text format?
I am interested in accessing the body of the email in text format using IMAP to receive emails.
  
  So far I have tried the following
  
      #body = imap.fetch(message_id, "BODY[TEXT]")
      #body = imap.fetch(message_id, ["BODY[]"])[0].attr[''BODY[]'']
  
  
  But both of the above give me body text + the headers including Content-Type etc. How can I access