On Jan 4, 2008 6:25 PM, Bira <u.alberton at gmail.com>
wrote:> Hello,
>
> First, I would like to apologize for asking a question which may be
> obvious to the people here. I tried searching the documentation at
> tmail.rubyforge.org, but I couldn''t find any answers.
>
> How does TMail handle forwarded messages? I''ve seen something in
the
> documentation about creating forwards, but I want to do the opposite -
> given an e-mail message which contains one or more forwarded messages,
> how do I acess them?
>
> If the answer is indeed in the documentation, where could I find it? :)
To prove I''m not a help vampire, here is what I managed to find out
since sending out the first message:
This is an example from the RDoc for TMail::Mail.create_forward:
mail = TMail::Mail.load("my_email")
forward_email = mail.create_forward
forward_email.class #=> TMail::Mail
forward_email.content_type #=> "multipart/mixed"
forward_email.body #=> "Attachment: (unnamed)"
forward_email.encoded #=> Returns the original email as a MIME
attachment
Trying it out in IRB, I see that forward_mail.encoded returns a
string. Is there a similar method that returns a TMail::Mail object?
Again in IRB, I tried "re-parsing" this string using
TMail::Mail.parse, but I feel it didn''t come out quite as it should.
If there isn''t an already-made method for this, could someone give a
few starting tips on how to implement one myself, or point to some
documentation that does?
--
Bira
http://compexplicita.blogspot.com
http://sinfoniaferida.blogspot.com
--
Bira
http://compexplicita.blogspot.com
http://sinfoniaferida.blogspot.com