Still working on the email bot... I'm at a point where I can correctly check for unread emails via IMAP, process their contents, and generate a new blip per email.
Customary preview screenshot: http://imgur.com/FI5GTvw So far so good. The problem is, the only way I can currently receive email, is to manually command the bot to check for new emails (i.e. I write "bot:recv\n" in any wave where the bot is a participant). Instead of this, I'd like for the bot to be checking for incoming emails automatically (for example, once per minute). I have absolutely no idea where I should put this functionality, and how. The thread would periodically check for emails, and suposedly sleep the rest of the time. Another option is for it to be ran every X seconds (maybe a cron job?). I don't know if there's other recommended way to do this. At first sight, I could start a thread on the constructor for my RobotAgent class (which I believe this would only spawn a single thread in the lifetime of the wiab server), and have it run an infinite loop, with a "sleep(40s)" after each iteration, or something. Thanks for any hints! -- Saludos, Bruno González _______________________________________________ Jabber: stenyak AT gmail.com http://www.stenyak.com