On Tue, Nov 4, 2008 at 5:59 AM, jeff emminger <jemminger at gmail.com>
wrote:> How can I set the Message-ID header of a TMail::Mail? If I use the
> message_id method, it is overwritten when I send the mail, as the
> sending methods call ready_to_send, which overwrites the Message-ID I
> have set.
I think someone has asked for this before. I''d be willing to add it
as a feature.
Can you raise a feature request at the TMail rubyforge page?
In the mean time, you could monkey patch like so (warning, this is
untested, but should work)
module TMail
class Mail
def add_message_id( fqdn = nil )
self.message_id ||= ::TMail::new_message_id(fqdn)
end
end
end
--
http://lindsaar.net/
Rails, RSpec and Life blog....