ts wrote:
>>>>>> "E" == Ed Lau <ted_spam / mac.com> writes:
> 
> E> But what about a multi-part MIME message?
> 
>  You have an example in comp.lang.ruby
> 
>  Thread  "Retrieve email attachments using Net::IMAP"
> 
>       message <rfcbqtd3zqv.fsf / moulon.inra.fr>
> 
>  For example
> 
>       puts imap.fetch(message_id, "BODY[2]")
> 
> 
> 
> Guy Decoux

Thanks! BODY[1] for the plain text version is exactly what I needed. I 
didn't know you could access the various parts of the body using array 
index notation.

--Ed

-- 
Posted via http://www.ruby-forum.com/.