Example of a perl callback with send()

From: Gary Mills (no email)
Date: Mon Apr 02 2007 - 15:30:01 EDT

  • Next message: Andrew Morgan: "Re: deliver -q brings: Over Quota"

    The Cyrus::IMAP perl library describes send() this way:

           $client->send(\&callback, \&cbdata, $format, ...);

    However, none of the examples I could find uses the callback and
    callback data arguments. Does anybody have an example of how
    these are used.

    I'm designing a perl script that makes several IMAP connections to
    the server, to send long-running commands in parallel. In this case,
    the script can't block on a send(). It needs to issue all of them
    and then poll for results. I'm assuming that a perl callback along
    with processoneevent() will make this possible.

    -- 
    -Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-
    ----
    Cyrus Home Page: http://cyrusimap.web.cmu.edu/
    Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
    List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
    

  • Next message: Andrew Morgan: "Re: deliver -q brings: Over Quota"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD