XML.com: XML From the Inside Out
oreilly.comSafari Bookshelf.Conferences.

advertisement
 Resource Guide -> Perl Implementations, P2P Tutorials, Instant Messaging -> A More Sensitive Mail Notifier

A More Sensitive Mail Notifier

Date: Jun. 16, 2001
Link: http://www.openp2p.com/pub/a/p2p/2001/04/13/jabber.html
Source Author or Organization: D. J. Adams, OpenP2P.com

This tutorial covers the process of using a Perl script to facilitate the notification of incoming Jabber messages when either a user is not present when the notification arrives or when a user is connected but does not wish to be disturbed. It also provides solutions to the problem of message traffic piling up when a user is away for an extended period of time.

The described approach takes advantage of the Net::Jabber Perl module and the Jabber XML structure for handling "presence". Five presence states are defined: Normal, Free for Chat, Away, Extended Away and Do Not Disturb. The tutorial steps the reader through development of small Perl scripts that utilize Extended Away and Do Not Disturb for a flexible solution. All Perl code is listed.