From matt.simpson3 at gmail.com Thu Feb 12 14:31:41 2009 From: matt.simpson3 at gmail.com (Matt Simpson) Date: Thu, 12 Feb 2009 13:31:41 -0600 Subject: [Tmail-talk] Urgent issue with parsing from address Message-ID: Hi, I have an email manager app, and I am having an issue with one of the email?s ?from? header address. As you can see below, I am receiving a inaccurate results for the from address with this email?s header. Any ideas on what I should look in to, I can?t seem to find a solution for this one. I?ve attached the email. >> include ?tmail? >> email = TMail::Mail.parse(STDIN.read) ... Paste the attached email ... => # bodyport=nil> >> email.from => nil >> email.from_addrs => [] >> email.header_string(?from?) => ?? >> email.header_string(?From?) => ?? >> email.to => ["mxc.cxxxxxxxe at exxxxxxxr.com"] Thanks, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: raw_email.eml Type: application/octet-stream Size: 3600 bytes Desc: not available URL: From jemminger at gmail.com Thu Feb 12 17:36:49 2009 From: jemminger at gmail.com (jeff emminger) Date: Thu, 12 Feb 2009 17:36:49 -0500 Subject: [Tmail-talk] Urgent issue with parsing from address In-Reply-To: References: Message-ID: <8b109c50902121436j2e540a3r1224764aec211110@mail.gmail.com> Seems to be choking on the < > chars in "From: flname at DOMain.com " Changing it to "From: flname at DOMain.com" fixes it for me. I'm no expert on RFC822 but I think it is proper syntax to have "alias " From jemminger at gmail.com Thu Feb 12 17:38:03 2009 From: jemminger at gmail.com (jeff emminger) Date: Thu, 12 Feb 2009 17:38:03 -0500 Subject: [Tmail-talk] Urgent issue with parsing from address In-Reply-To: <8b109c50902121436j2e540a3r1224764aec211110@mail.gmail.com> References: <8b109c50902121436j2e540a3r1224764aec211110@mail.gmail.com> Message-ID: <8b109c50902121438m71fc9631m739743c9d7d05ef1@mail.gmail.com> > I'm no expert on RFC822 but I think it is proper syntax to have "alias > " > Meaning that I would expect what you have in your example mail to be OK, and that TMail is not parsing correctly. I could be wrong though :) From raasdnil at gmail.com Thu Feb 12 21:10:01 2009 From: raasdnil at gmail.com (Mikel Lindsaar) Date: Fri, 13 Feb 2009 13:10:01 +1100 Subject: [Tmail-talk] Urgent issue with parsing from address In-Reply-To: References: Message-ID: <57a815bf0902121810u5b0def43rf61ff65faaec9232@mail.gmail.com> On Fri, Feb 13, 2009 at 6:31 AM, Matt Simpson wrote: > I have an email manager app, and I am having an issue with one of the > email's 'from' header address. > > As you can see below, I am receiving a inaccurate results for the from > address with this email's header. Any ideas on what I should look in to, I > can't seem to find a solution for this one. I've attached the email. What version of TMail are you using? >> TMail::VERSION::STRING => "1.2.3" >> data = File.read('test') => (your email) >> mail = TMail::Mail.parse(data) => # bodyport=nil> >> mail.from => ["flname at domain.com"] Works fine... Mikel -- http://lindsaar.net/ Rails, RSpec and Life blog.... From matt.simpson3 at gmail.com Fri Feb 13 14:27:26 2009 From: matt.simpson3 at gmail.com (Matt Simpson) Date: Fri, 13 Feb 2009 13:27:26 -0600 Subject: [Tmail-talk] Urgent issue with parsing from address In-Reply-To: <57a815bf0902121810u5b0def43rf61ff65faaec9232@mail.gmail.com> Message-ID: Same as you: >> RUBY_VERSION => "1.8.6" >> TMail::VERSION::STRING => "1.2.3" >> RAILS_GEM_VERSION => "2.1.2" Also, I opened the email in Mozilla Thunderbird, Microsoft Entourage and Apple Mail and it renders no problem. however I still cannot parse out the from address. > From: Mikel Lindsaar > Reply-To: "tmail-talk at rubyforge.org" > Date: Fri, 13 Feb 2009 13:10:01 +1100 > To: "tmail-talk at rubyforge.org" > Subject: Re: [Tmail-talk] Urgent issue with parsing from address > > On Fri, Feb 13, 2009 at 6:31 AM, Matt Simpson wrote: >> I have an email manager app, and I am having an issue with one of the >> email's 'from' header address. >> >> As you can see below, I am receiving a inaccurate results for the from >> address with this email's header. Any ideas on what I should look in to, I >> can't seem to find a solution for this one. I've attached the email. > > What version of TMail are you using? > >>> TMail::VERSION::STRING > => "1.2.3" >>> data = File.read('test') > => (your email) >>> mail = TMail::Mail.parse(data) > => # bodyport=nil> >>> mail.from > => ["flname at domain.com"] > > Works fine... > > Mikel > > -- > http://lindsaar.net/ > Rails, RSpec and Life blog.... > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk From matt.simpson3 at gmail.com Fri Feb 13 14:28:09 2009 From: matt.simpson3 at gmail.com (Matt Simpson) Date: Fri, 13 Feb 2009 13:28:09 -0600 Subject: [Tmail-talk] Urgent issue with parsing from address In-Reply-To: <8b109c50902121438m71fc9631m739743c9d7d05ef1@mail.gmail.com> Message-ID: Well, I've opened the email in Microsoft Entourage, Mozilla Thunderbird and Apple Mail and no issues. > From: jeff emminger > Reply-To: "tmail-talk at rubyforge.org" > Date: Thu, 12 Feb 2009 17:38:03 -0500 > To: "tmail-talk at rubyforge.org" > Subject: Re: [Tmail-talk] Urgent issue with parsing from address > >> I'm no expert on RFC822 but I think it is proper syntax to have "alias >> " >> > > Meaning that I would expect what you have in your example mail to be > OK, and that TMail is not parsing correctly. I could be wrong though > :) > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk From raglandl_17 at yahoo.com Fri Feb 13 16:01:18 2009 From: raglandl_17 at yahoo.com (lacey ragland) Date: Fri, 13 Feb 2009 13:01:18 -0800 (PST) Subject: [Tmail-talk] Urgent issue with parsing from address In-Reply-To: Message-ID: <427267.78682.qm@web58604.mail.re3.yahoo.com> its ok just for get it --- On Fri, 2/13/09, Matt Simpson wrote: From: Matt Simpson Subject: Re: [Tmail-talk] Urgent issue with parsing from address To: "tmail-talk at rubyforge.org" Date: Friday, February 13, 2009, 2:27 PM Same as you: >> RUBY_VERSION => "1.8.6" >> TMail::VERSION::STRING => "1.2.3" >> RAILS_GEM_VERSION => "2.1.2" Also, I opened the email in Mozilla Thunderbird, Microsoft Entourage and Apple Mail and it renders no problem. however I still cannot parse out the from address. > From: Mikel Lindsaar > Reply-To: "tmail-talk at rubyforge.org" > Date: Fri, 13 Feb 2009 13:10:01 +1100 > To: "tmail-talk at rubyforge.org" > Subject: Re: [Tmail-talk] Urgent issue with parsing from address > > On Fri, Feb 13, 2009 at 6:31 AM, Matt Simpson wrote: >> I have an email manager app, and I am having an issue with one of the >> email's 'from' header address. >> >> As you can see below, I am receiving a inaccurate results for the from >> address with this email's header. Any ideas on what I should look in to, I >> can't seem to find a solution for this one. I've attached the email. > > What version of TMail are you using? > >>> TMail::VERSION::STRING > => "1.2.3" >>> data = File.read('test') > => (your email) >>> mail = TMail::Mail.parse(data) > => # bodyport=nil> >>> mail.from > => ["flname at domain.com"] > > Works fine... > > Mikel > > -- > http://lindsaar.net/ > Rails, RSpec and Life blog.... > _______________________________________________ > Tmail-talk mailing list > Tmail-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/tmail-talk _______________________________________________ Tmail-talk mailing list Tmail-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/tmail-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: