You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Craig Raw <cr...@quirk.co.za> on 2003/11/21 09:18:50 UTC

[PATCH] Virtual user tables

This patch enhances virtual user processing in JAMES, and affects
JDBCVirtualUserTable. Included:

1) Refactoring of common functionality in an abstract superclass,
AbstractVirtualUserTable. Subclasses need only map a virtual input
MailAddress to a target recipient (or recipients). See javadoc for details.

2) Mutiple recipients are now allowed as targets. This has been done 
using a delimited list, rather than multiple rows, because:
     a) Primary key limitations on the database means the latter could 
not be backwards compatible;
     b) The result is, IMHO, easier to read and update.

3) Some logging of the address translation has been added.

4) A new subclass of AbstractVirtualUserTable has been added, called
XMLVirtualUserTable. This mailet is used to specify the virtual user 
table in config.xml, and lends itself to simpler setups where changes 
are not as dynamic, or a database is not present. It has all the 
functionality of JDBCVirtualUserTable.

5) I have not included any DSN error reporting functionality. It seemed 
to me on further reflection that a virtual user table should translate 
virtual uses to real users, and leave error processing to another 
mailet. In any case, I wanted to work in smaller updates.

6) Patch is against branch_2_1_fcs.

Craig

---
Craig Raw
craig@quirk.co.za
Quirk Business Solutions
www.quirk.co.za