From tnt at banza.net Sun Dec 6 08:20:10 2009 From: tnt at banza.net (T.N.T.) Date: Sun, 06 Dec 2009 14:20:10 +0100 Subject: [Tmail-talk] How to handle rfc822-parts? Message-ID: <4B1BAF8A.1060908@banza.net> Hello list I could not find anything about this question in the archive. I am wondering why TMail parses multipart mails recursively, but does not provide a TMail::Mail-object for message/rfc822 parts. As far as I see I have to do something like: if part.content_type == 'message/rfc822' mo = TMail::Mail.parse part.body ... end to access possibly present sub-parts. Am I missing something? Ano Regards, T. From tnt at banza.net Sun Dec 6 08:49:48 2009 From: tnt at banza.net (T.N.T.) Date: Sun, 06 Dec 2009 14:49:48 +0100 Subject: [Tmail-talk] What means a content_type of nil? Message-ID: <4B1BB67C.7020303@banza.net> Hello again I accidentally touched my track-pad and my last mail was sent before I finished it. I have an email with a part that has no Content-Type-header (it obviously should be text/plain). Is this legal? And should I can rely on that such parts are 'text/plain'? Or should I better ignore these parts? There seems to be an hardly overviewable diversity of species in the email-world (excuse my English). I have found some email examples from 1993 from Mark Crispin et al who invented the IMAP-protocol. Are there some more up-to-date samples somewhere? Regards, T.