Listening for email and triggering notificati ons
About
Messaging,Lab
started by
Developer_Resou rce
on
02-16-2010
09:20 AM
- edited on
09-19-2011
10:52 AM
started by
MSohm
Exercise
Write an application that registers a custom notification and a folder listener. The folder listener will activate the custom notification when an email arrives with a particular string in the subject of the email.
Objectives
· Discover how to make an application auto-start
· Discover how to register a folder listener
· Discover how to register a custom notification
· Discover how to monitor incoming email
Setup
- Open Listen_1.zip
- In the IDE, open the FolderListenerApp.jdw workspace
- Open the MessageNotification.java source file.
- Open the FolderListenerApp.java source file.
Tasks
- FolderListener Changes:
- Register the custom notification with the system
- Add a FolderListener to the store after it is retrieved
- Determine if the incoming message has been added to the INBOX folder
- Retrieve the subject of the new message
- Trigger the notification once it is discovered that the subject contains the string “< TAG >”.
- MessageNotification Changes:
- Register the consequence manager

