[Rails] Accessing just the body of email in text format?

softwareengineer 99 softwareengineer99 at yahoo.com
Fri Feb 17 05:55:16 GMT 2006


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 just the body in text format.
  
  I appreciate your assistance.
  
  
  Thanks
  Frank
  
		
---------------------------------
Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060217/25e26567/attachment.html


More information about the Rails mailing list