Question about standard library and Net::IMAP.

Discussion in 'Ruby' started by Steve [RubyTalk], Oct 17, 2005.

  1. As a first-steps project in Ruby I've opted to write a simple daemon
    that registers an IMAP connection to my mail-server and waits for a
    remote mail clients to manually report spams which evade my spamassassin
    configuration (by moving it to a specific folder) before reporting it
    using "spamassassin -r" and placing the mail among my other
    automatically filtered spam.

    I've made good initial progress using the Net::IMAP support in the
    standard library - until I realised that I don't really want to poll to
    see if new messages are in the the 'report-spam' folder... rather I want
    to use the "IDLE" command (RFC 2177) in order not to unnecessarily load
    my mail server, or introduce long delays between polls. I can't see a
    way to do this using Net::IMAP... am I overlooking something in the
    documentation? Is there a simple way to extend Net::IMAP in order to
    support the IDLE command? Is there a newer version of the standard
    library which has this support (I'm using Ruby 1.8.2)?

    Thanks for any pointers...

    Steve
    Steve [RubyTalk], Oct 17, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik Ormåsen

    Curier-IMAP and imap.create()

    Henrik Ormåsen, Aug 19, 2006, in forum: Ruby
    Replies:
    0
    Views:
    175
    Henrik Ormåsen
    Aug 19, 2006
  2. jasonnaylor
    Replies:
    1
    Views:
    247
    jasonnaylor
    Apr 16, 2008
  3. Adam Akhtar
    Replies:
    1
    Views:
    172
    Eric Hodel
    Dec 15, 2008
  4. Abhishiv Saxena

    Support for IMAP IDLE in net/imap

    Abhishiv Saxena, Jul 3, 2009, in forum: Ruby
    Replies:
    4
    Views:
    190
    Eric Hodel
    Jul 4, 2009
  5. Abhishiv Saxena

    Support for IMAP IDLE in net/imap

    Abhishiv Saxena, Jul 3, 2009, in forum: Ruby
    Replies:
    0
    Views:
    229
    Abhishiv Saxena
    Jul 3, 2009
Loading...

Share This Page