> If the message is not sent to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> , I
> would like to route it through a DIFFERENT repository which would
> save it in
> a database, for example.
For local delivery via the localDelivery mailet I believe that it is only
possible to define one local storage for James. Using:
<inboxRepository>
<repository destinationURL="db://maildb/inbox/" type="MAIL"/>
</inboxRepository>
This means you can only access one repository using POP3
However if you have another mailet which will filter other mail, there is no
earthly reason why it shouldn't use another repository:
<mailet match="All" class="ToRepository">
<repositoryPath>db://maildb/errors/spam</repositoryPath>
</mailet>
Even one of a different type.
As far as creating a new different type I think it should only be as hard
as,
a) writing the damned thing, it should implement
o.a.j.servicesMailRepository
b) setting it up in config:
<repository class="com.foo.MboxRepository">
<protocols>
<protocol>mbox</protocol>
</protocols>
<types>
<type>MAIL</type>
</types>
</repository>
c) setting up mailets to use it via config
d.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>