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]