The mailing list mailets need a repository within which to store
the subscriber list. There is a separate repository for each mailing
list, and is completely independent of the user repository used by
James to manage e-mail accounts. This is configured in the
<users-store> block of config.xml.
The following illustrates a database-backed repository using JDBC
with the ListUsersJdbcRepository class. Notice that there will be a
single table, lists, created in the db://maildb resource
defined elsewhere. There are currently two columns: the list name and
the list subscriber.
 |  |  |
 |
<repository name="list-name"
class="org.apache.james.userrepository.ListUsersJdbcRepository"
destinationURL="db://maildb/lists/list-name">
<sqlFile>file://conf/sqlResources.xml</sqlFile>
</repository>
|  |
 |  |  |
The following illustrates a file-system repository using the
UsersFileRepository class. [Note: the destination URL is a child
element when configuring a file-system repository, and an attribute
when configuring a database-backed repository. This inconsistency
will be addressed in a future version of James.]
 |  |  |
 |
<repository name="list-name"
class="org.apache.james.userrepository.UsersFileRepository">
<destination URL="file://var/lists/list-name/" />
</repository>
|  |
 |  |  |