New Email notification?

Hi,

  1. I am using smack and openfire
  2. Also installed “IM Gateway” and “Email Listener” notifier in openfire.
  3. Registered my yahoo, gtalk and msn tarnports
  4. Addded transports to my rosters
  5. All these are working fine using smack API

What should i wirte / which API / code to listen to new incomming mails to my transports / gateways ?

Can anybody please help me with an example / sample code??

Thanks In Advance,

Soumyadipta De