From: Eric Hodel Date: 2007-02-15T04:32:54+09:00 Subject: Re: help with IMAP documentation On Feb 14, 2007, at 10:05, barjunk wrote: > Being new to ruby, I'm having a little trouble getting my mind around > the documentation for net/imap, located here: > > http://www.ruby-doc.org/stdlib/libdoc/net/imap/rdoc/index.html > > I understand that if I do: > > messagestruct = imap.uid_fetch(10,["BODYSTRUCTURE"])[0] > > I will get a FetchData object and further processing, like: > > message = messagestruct.attr["BODYSTRUCTURE"].parts[0].subtype > > would provide me the type of message (Plain, Html, etc) part 0 is. > > But I don't get what I'm 'doing'. What words would describe the above > commands? You'll have to pass the message through a library like TMail to do further processing on the body.