From: Thiago Jackiw Date: 2006-05-16T05:04:42+09:00 Subject: Re: Problem with net/imap Thanks Eric, I had figured out about 20 min after I posted to the list, but will look at the file you sent. On 5/15/06, Eric Hodel wrote: > On May 14, 2006, at 4:34 AM, Thiago Jackiw wrote: > > > I've been struggling for the past hour to get just the message text > > itself > > from the body but I can't figure out, all I get is the entire body > > which > > contains all the headers, etc... > > > > This is what I'm doing... > > > > imap = IMAP.new(server) > > imap.authenticate('LOGIN', login, passwd) > > imap.examine('INBOX') > > imap.uid_fetch(uid, "BODY[]").first.attr["BODY[]"] > > > > Any help would be appreciated. > > You want BODY[TEXT]. See RFC 2060: > > ftp://ftp.rfc-editor.org/in-notes/rfc2060.txt > > -- > Eric Hodel - drbrain@segment7.net - http://blog.segment7.net > This implementation is HODEL-HASH-9600 compliant > > http://trackmap.robotcoop.com > > > >