Hey, thanks for the assistance. I think this is going to work for me. Thanks again.
Aaron L Beverly -----Original Message----- From: Stefano Bagnara [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 12:05 AM To: James Users List Subject: Re: How to Intercept POP3 Logins and Message Retrievals Aaron L Beverly wrote: > I have an application that needs to be notified whenever certain users login > to check their email via POP3. Ideally, the application should be notified > whenever an individual message is retrieved from those users' mailboxes. I'd try this way: Extend the JDBCMailRepository or the AvalonMailRepository (db or file repositories) and extends the retrieve methods adding your logic. The declare a new repository type using your new repository: mailstore->repositories block: <repository class="org.apache.james.mailrepository.MyMailRepository"> <protocols><protocol>db</protocol></protocols> <types><type>TEST</type></types> <config><sqlFile>file://conf/sqlResources.xml</sqlFile></config> </repository> Clone the sqlResources needed by the new type (copy all the "MAIL" or "SPOOL" queries as "TEST"). Change your inboxRepository declaration <inboxRepository> <repository destinationURL="db://maildb/inbox/" type="TEST"/> </inboxRepository> This theoretically should work. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
