From: James Edward Gray II Date: 2007-10-30T22:01:38+09:00 Subject: Re: Gateway Upgraded On Oct 30, 2007, at 12:39 AM, Mikel Lindsaar wrote: >> I did have to revert because Usenet was rejecting my posts. It's how >> TMail is doing the headers. For example, TMail constructed a header >> like: >> >> "X-Ruby-Talk:\r\n\t<11152772- >> AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>\r\n" > > James, I just tried this and get a different result: > > irb(main):007:0> mail = TMail::Mail.new > => # bodyport=nil> > irb(main):008:0> mail['X-Ruby-Talk'] = > '<11152772-AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>' > => "<11152772-AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>" > irb(main):009:0> mail.to_s > => "X-Ruby-Talk: <11152772- > AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>\n\n" > > Leaves a space after the colon and doesn't introduce a line feed :/ The gateway code was using the encoded() method: >> require "tmail" => true >> mail = TMail::Mail.new => # bodyport=nil> >> mail["X-Ruby-Talk"] = "<11152772- AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>" => "<11152772-AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>" >> mail.to_s => "X-Ruby-Talk: <11152772- AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>\n\n" >> mail.encoded => "X-Ruby-Talk:\r\n\t<11152772- AAFA-4614-95FD-9071A4BDF4A1@grayproductions.net>\r\n\r\n" Is that not what I should be doing? James Edward Gray II