Gmailer reply

Is there a way to reply to a message with the ruby gmailer library? I
see that there are "message_replying" and "thread_replying" arguments in
the "send" function, but I don't see how to use them to reply to a
message. Thanks.

···

--
Posted via http://www.ruby-forum.com/.

Hi,

From: unknown <turtlethief@hotmail.com>
Reply-To: ruby-talk@ruby-lang.org
To: ruby-talk@ruby-lang.org (ruby-talk ML)
Subject: gmailer reply
Date: Tue, 30 May 2006 11:32:00 +0900

Is there a way to reply to a message with the ruby gmailer library? I
see that there are "message_replying" and "thread_replying" arguments in
the "send" function, but I don't see how to use them to reply to a
message. Thanks.

First you need a msg_id value of the original message.
Then you can send replay like this:

  GMailer.connect(name, pwd) do |g|
      g.send(
        :to => from_email,
        :subject => "Re: " + subject
        :body => "Hi...\n\nBlah blah blah~...",
        :msg_id=>msg_id
       )
   end

Regards,

Park Heesob

···