[Tmail-talk] TMail preamble usage
charles
aquasync at gmail.com
Fri Feb 29 04:54:56 EST 2008
Hi Tmail chaps :)
A quick query about preamble usage in TMail. Its currently an alias for
body, which seems strange. I'd have thought that preamble is supposed to be
the converse to epilogue.
Eg:
>> mail = TMail::Mail.parse "Content-Type: multipart/related;
boundary=asdf\n\nThis is a mime message\n--asdf\nContent-Type:
text/plain\n\npart 1\n--asdf--\nEpilogue"
=> #<TMail::Mail port=#<TMail::StringPort:id=0x..fdbb86ab8> bodyport=nil>
>> mail.body
=> "part 1\n"
>> mail.parts.first.body
=> "part 1\n"
>> mail.quoted_body
=> "This is a mime message\n"
>> mail.preamble
=> "part 1\n"
>> q.epilogue
=> "Epilogue"
Is there a reason for this behaviour? I'm pretty sure rfc822 preamble is
just that first chunk...
Thanks,
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/tmail-talk/attachments/20080229/b77f74b5/attachment.html
More information about the Tmail-talk
mailing list