Hello and a quick question

Kannan Varadhan <[email protected]> Thu, 13 Dec 2007 13:46:22 -0800
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <C386E82E.13E4E%[email protected]>
Hi Folks,

I just joined this mailing list, as a prospective user.  I had some
(hopefully not) idiotic questions to start with.

I am trying to write an imap-client-daemon with the following behaviour:

    imap-connect-to-server();
    imap-select(inbox);
    while (1) {
        my $msg = get-nextmessage-from-server();
        if ($msg) {
            do-work-on-message($msg);
            next;
        }
        imap-expunge();
        imap-idle();
        sleep(60);
    }


Essentially, the do-work-on-message would be to filter/refile/reply/junk the
message.

Is this already available in Mail::Box, or does it have to be written?  If
it is something different, are there examples I can use to similar effect to
get started or to learn?

Thanks,

Kannan 


_______________________________________________
Mailbox mailing list
[email protected]
http://lists.utsl.gen.nz/mailman/listinfo.cgi/mailbox