Advertisements

On Jul 3, 2009, at 1:16, Abhishiv Saxena <> wrote:
> Ok, I have been suck on it for hours. I thought net/imap.rb with
> ruby 1.9
> supported the idle command, but not yet.
>
> Can anyone help me in implementing that?

I have a working IDLE method, but it's not handy. Ill post it in a bit.

Advertisements

On Jul 3, 2009, at 01:16, Abhishiv Saxena wrote:
> Ok, I have been suck on it for hours. I thought net/imap.rb with
> ruby 1.9
> supported the idle command, but not yet.
>
> Can anyone help me in implementing that?

NOTE: There's no need to post to the mailing list and the forum, they
both come to the same place.

Try this:

require 'net/imap'

class Net::IMAP

##
# Sends an IDLE command that waits for notifications of new or
expunged
# messages. Yields responses from the server during the IDLE.
#
# Use +break+ in the response handler to leave IDLE.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!