You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by dj...@apache.org on 2008/06/15 18:33:23 UTC

svn commit: r667970 [7/8] - in /geronimo/plugins/james: ./ branches/ log/ tags/ trunk/ trunk/geronimo-james/ trunk/geronimo-james/src/ trunk/geronimo-james/src/main/ trunk/geronimo-james/src/main/java/ trunk/geronimo-james/src/main/java/org/ trunk/gero...

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,271 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one   
+  or more contributor license agreements.  See the NOTICE file 
+  distributed with this work for additional information        
+  regarding copyright ownership.  The ASF licenses this file   
+  to you under the Apache License, Version 2.0 (the            
+  "License"); you may not use this file except in compliance   
+  with the License.  You may obtain a copy of the License at   
+                                                               
+    http://www.apache.org/licenses/LICENSE-2.0                 
+                                                               
+  Unless required by applicable law or agreed to in writing,   
+  software distributed under the License is distributed on an  
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+  KIND, either express or implied.  See the License for the    
+  specific language governing permissions and limitations      
+  under the License.                                           
+ -->
+ 
+   <!-- Fetch mail block, fetches mail from message servers and inserts it into the incoming spool -->
+   <!-- Warning: It is important to prevent mail from looping by setting the  -->
+   <!-- fetched domains in the <servernames> section of the <James> block      -->
+   <!-- above. This block is disabled by default.                              -->
+      
+   <!-- See http://james.apache.org/server/2.3.0/fetchmail_configuration.html for detailed -->
+   <!-- configuration instructions and examples.                                  -->   
+
+   <!-- I M P O R T A N T -->
+   <!-- Setting markseen="true" will have no effect on many POP3 servers as the POP3 -->
+   <!-- protocol does not require the markSeen flag to be supported. When this is the -->
+   <!-- case, the only way to ensure that messages are fetched just once is to delete -->
+   <!-- fetched messages from the server with leaveonserver="false". -->
+   
+   <!-- If you want to perform mailet processing on messages fetched by fetchmail, -->
+   <!-- use the HasMailAttribute matcher to detect messages with the MailAttribute -->
+   <!-- org.apache.james.fetchmail.taskName. The attribute's value is that of the -->
+   <!-- fetch task's name parameter described below. -->
+   
+    <fetchmail enabled="false">
+        <!-- You can have as many fetch tasks as you want, but each must have a -->
+        <!-- unique name by which it is identified. -->
+        <!-- Each task runs at the specified <interval>, tasks may run concurrently. -->      
+        <fetch name="mydomain.com">
+            <!-- There must be one <accounts> entry per fetch task. An accounts entry can have 0 to many -->
+            <!-- <account> entries and 0 or 1 <alllocal> entries. <alllocal> generates -->
+            <!-- <accounts> for every user defined to James. <accounts> run consecutively within the -->
+            <!-- scope of their fetch task and inherit all the properties of the fetch task. -->
+            
+            <!-- The advantage of running consecutively is that we can avoid conflicting fetch tasks -->
+            <!-- operating concurrently on the same mailboxes. -->
+            
+            <!-- Fetchmail attempts to deduce the correct recipient of each message, but sometimes there is -->
+            <!-- insufficient information in the headers to do so. When the correct recipient cannot be deduced, -->
+            <!-- fetchmail can be configured to leave the mail on the server or deliver it to a default recipient. -->          
+            
+            <!-- When a message server delivers mail for a single user to a specific INBOX you can define -->
+            <!-- each user to James (via the console) and use <alllocal> with ignorercpt-header="true" to deliver mail -->
+            <!-- directly from each users INBOX onto James' spool. There is no need to update 'config.xml' -->
+            <!-- each time you add or remove users, fetchmail checks the list of users at the start of each fetch. -->
+            
+            <!-- When a message server provides an account that gives access to all mail for a domain through a single -->
+            <!-- INBOX, you can use an <account> to fetch all the mail for that domain, using the filter facilities -->
+            <!-- described below to reject unwanted messages. -->
+            
+            <!-- When a message server supports BOTH delivery for a single user to a specific INBOX and access to all mail -->
+            <!-- for a domain through a single INBOX, you can use <alllocal> and <account> together to guarantee that all -->
+            <!-- local mail gets delivered to the correct user and all unwanted mail is deleted from the message -->
+            <!-- server. See http://james.apache.org/server/2.3.0/fetchmail_configuration.html for details. -->
+            
+            <!-- Limitations and Future Directions -->
+            <!-- 1) <alllocal> requires the password for all accounts for a domain on the message server be the same. True -->
+            <!-- in many cases, but not all. A future version might work out a way of associating James users with a set -->
+            <!-- of account properties. -->
+            <!-- 2) <alllocal> will try to access an INBOX on the message server for all local users. The instance of James used -->
+            <!-- for this purpose should not have extraneous users defined. This is inefficient, but not fatal. -->
+            <!-- Again, a future version might work out a way of associating James users with message account properties. -->
+            <!-- This would allow all local users with an account on a particular message server to be fetched. -->
+            
+            <accounts>
+                <alllocal userprefix="" usersuffix="@myaccount" password="password" recipientprefix="" recipientsuffix="@mydomain.com" ignorercpt-header="true"/>
+                <account user="myglobalaccount" password="password" recipient="postmaster@localhost" ignorercpt-header="false"/>
+                <!-- Custom recipient header handling -->
+                <!-- this example search an header named X-Envelope-To and use the recipient found in that header -->
+                <!-- 
+                <account customrcpt-header="X-Envelope-To" user="myglobalaccount" password="password" recipient="postmaster@localhost" ignorercpt-header="false"/>
+                 -->
+            </accounts>
+            
+            <!-- The address of the server from which to fetch the mail -->
+            <host>pop.server.com</host>
+                      
+            <!-- How frequently this host is checked - in milliseconds. 600000 is every ten minutes -->
+            <interval>600000</interval>
+            
+            <!-- name of the javamail provider you wish to use -->
+            <!-- (pop3, imap, etc. -->
+            <javaMailProviderName>pop3</javaMailProviderName>
+
+            <!-- name of the folder to open -->
+            <javaMailFolderName>INBOX</javaMailFolderName>
+            
+            <!-- Properties to be applied to the JavaMail Session. -->
+            <!-- Properties are specific to the selected JavaMail provider. -->
+            <!-- Any number may be specified. -->
+            <javaMailProperties>
+                <!-- Set the connection timeout to 3 minutes -->
+                <property name="mail.pop3.connectiontimeout" value="180000"/>
+                <!-- Set the I/O timeout to 3 minutes -->                
+                <property name="mail.pop3.timeout" value="180000"/>                
+            </javaMailProperties>            
+
+            <!-- Retrieve both old (seen) and new messages from mailserver.  The default -->
+            <!-- is to fetch only messages the server has not marked as seen -->
+            <fetchall>false</fetchall>
+
+            <!-- If the folder javaMailFolderName contains subfolders do you -->
+            <!-- want to recurse into the subfolders as well? true = yes, false = no -->
+            <recursesubfolders>false</recursesubfolders>
+
+            <!-- If the From: header of a fetched message has a valid user part -->
+            <!-- but no domain part the fetch task will correct this by appending -->
+            <!-- a default domain. eg: 'james' becomes 'james@defaultdomain' --> 
+            <!-- The default behaviour is to append the canonical host name of the James server.  -->
+            <!-- You can override this behaviour here by specifying the name of the domain -->
+            <!-- you wish to append. The name you choose must be a local server or you can -->
+            <!-- use the name localhost -->
+            <!-- Example using a locally served domain -->
+            <!--
+            <defaultdomain>mydomain.com</defaultdomain>
+            -->
+            <!-- Example using localhost -->
+            <!--            
+            <defaultdomain>localhost</defaultdomain>            
+            -->
+            
+            <!-- Specify what happens to messages succesfully fetched from the mailserver -->
+            <!-- leaveonserver -->
+            <!--     if true, messages will be left on the server -->
+            <!--     if false, messages will be deleted from the server -->
+            <!-- markseen -->
+            <!--     if true, messages left on the server will be marked as seen -->
+            <!--     if false, messages left on the server will not be marked as seen -->            
+            <fetched leaveonserver="false" markseen="true"/>
+
+            <!-- Specify the index of the RECEIVED Header used to compute the remote address and remote host name -->
+            <!-- and what happens to messages that contain an invalid header at that index. -->
+            <!-- Matchers such as InSpammerBlacklist use the remote address and/or remote host name to identify illegitimate -->
+            <!-- remote MTAs. -->
+            <!-- This tag is optional. If omitted, the remote address will be set to 127.0.0.1 and the remote domain -->
+            <!-- will be set to 'localhost'. Both are almost always considered legitimate. -->
+            <!-- index -->                     
+            <!--     The zero based index of the RECEIVED Header used to compute the remote address and remote host name -->
+            <!--     of the MTA that delivered a fetched message. -->
+            <!--     Typically, the first (index = 0) RECEIVED Header is for the local MTA that delivers mail to the message store -->
+            <!--     and the second RECEIVED Header (index = 1) is the remote domain delivering mail to the MTA, so the second -->
+            <!--     RECEIVED Header is the one to use. -->
+            <!--     Some configurations will differ. Look at the RECEIVED Headers and set the index to point to the first remote MTA. -->
+            <!--     An index of -1 is is interpreted as use 127.0.0.1 for the remote address and use 'localhost' for the remote host name. -->
+            <!-- reject -->
+            <!--     if true, messages whose received header at the specified index is invalid will be rejected -->
+            <!--     if false, messages whose received header at the specified index is invalid will be accepted -->
+            <!--     and the Mail Attribute "org.apache.james.fetchmail.isInvalidReceivedHeader" -->
+            <!--     will be added to the message. Use the HasMailAttribute matcher to detect them. -->
+            <!-- The following apply if reject="true" and a message is rejected... -->
+            <!--     leaveonserver -->
+            <!--         if true, messages will be left on the server -->
+            <!--         if false, messages will be deleted from the server -->
+            <!--     markseen -->
+            <!--         if true, messages left on the server will be marked as seen -->
+            <!--         if false, messages left on the server will not be marked as seen -->             
+            <remotereceivedheader index="1" reject="true" leaveonserver="true" markseen="false"/>
+                
+            <!-- Specify what happens to messages whose size exceeds the specified limit. -->
+            <!-- This tag is optional. If omitted, there is no limit. -->
+            <!-- limit -->
+            <!--     The maximum message size in Kilobytes of messages injected into James. -->
+            <!--     A value of 0 means no limit. -->
+            <!-- reject -->
+            <!--     if true, messages whose size exceeds the limit will be rejected -->
+            <!--     if false, messages whose size exceeds the limit will be stripped of their message bodies -->
+            <!--     prior to injection into James and the MailAttribute "org.apache.james.fetchmail.isMaxMessageSizeExceeded" -->
+            <!--     will be added to the message with the value set to the original message size in bytes. -->
+            <!--     Use the HasMailAttribute matcher to detect them. -->
+            <!-- The following apply if reject="true" and a message is rejected... -->
+            <!--     leaveonserver -->
+            <!--         if true, messages will be left on the server -->
+            <!--         if false, messages will be deleted from the server -->
+            <!--     markseen -->
+            <!--         if true, messages left on the server will be marked as seen -->
+            <!--         if false, messages left on the server will not be marked as seen -->            
+            <maxmessagesize limit="0" reject="false" leaveonserver="true" markseen="false"/>
+            
+            <!-- Specify what happens to undeliverable messages -->
+            <!-- leaveonserver -->
+            <!--     if true, messages will be left on the server -->
+            <!--     if false, messages will be deleted from the server -->
+            <!-- markseen -->
+            <!--     if true, messages left on the server will be marked as seen -->
+            <!--     if false, messages left on the server will not be marked as seen -->            
+            <undeliverable leaveonserver="true" markseen="false"/>
+            
+            <!-- Specify what happens to messages for which a recipient cannot be determined. -->
+            <!-- defer -->
+            <!--     if true, processing of messages for which a recipient cannot be determined will deferred -->
+            <!--     until the next fetch of the Account. This gives an opportunity for other Accounts in the -->
+            <!--     fetch task to determine the recipient and process the mail. -->
+            <!--     if false, messages for which a recipient cannot be determined are processed immediately. -->
+            <!-- reject -->
+            <!--     if true, messages for which a recipient cannot be determined will be rejected -->
+            <!--     if false, messages for which a recipient cannot be determined will be accepted, -->
+            <!--     the account recipient will be used and the MailAttribute "org.apache.james.fetchmail.isRecipientNotFound" -->
+            <!--     will be added to the message. Use the HasMailAttribute matcher to detect them. -->
+            <!-- The following apply if reject="true" and a message is rejected... -->
+            <!--     leaveonserver -->
+            <!--         if true, messages will be left on the server -->
+            <!--         if false, messages will be deleted from the server -->
+            <!--     markseen -->
+            <!--         if true, messages left on the server will be marked as seen -->
+            <!--         if false, messages left on the server will not be marked as seen -->            
+            <recipientnotfound defer="true" reject="true" leaveonserver="true" markseen="false"/>                                         
+
+            <!-- Specify a list of recipients for whom messages will be rejected -->
+            <!-- and what happens to rejected messages. -->
+            <!-- The list can be comma, tab or space delimited. -->
+            <!-- reject -->
+            <!--     if true, messages for users on the blacklist will be rejected -->            
+            <!--     if false, messages for users on the blacklist will be accepted -->         
+            <!--     and the Mail Attribute "org.apache.james.fetchmail.isBlacklistedRecipient" -->
+            <!--     will be added to the message. Use the HasMailAttribute matcher to detect them. -->            
+            <!-- The following apply if reject="true" and a message is rejected... -->
+            <!--     leaveonserver -->
+            <!--         if true, messages will be left on the server -->
+            <!--         if false, messages will be deleted from the server -->
+            <!--     markseen -->
+            <!--         if true, messages left on the server will be marked as seen -->
+            <!--         if false, messages left on the server will not be marked as seen -->                        
+            <blacklist reject="true" leaveonserver="true" markseen="false"> wibble@localhost, flobble@localhost </blacklist>
+
+            <!-- Specify if messages for users who are not defined to James should -->
+            <!-- be rejected and what happens to rejected messages. -->
+            <!-- reject -->
+            <!--     if true, messages for users who are not defined to James will be rejected -->
+            <!--     if false, messages for users who are not defined to James will be accepted -->
+            <!--     and the Mail Attribute "org.apache.james.fetchmail.isUserUndefined" -->
+            <!--     will be added to the message. Use the HasMailAttribute matcher to detect them. -->            
+            <!-- The following apply if reject="true" and a message is rejected... -->
+            <!--     leaveonserver -->
+            <!--         if true, messages will be left on the server -->
+            <!--         if false, messages will be deleted from the server -->
+            <!--     markseen -->
+            <!--         if true, messages left on the server will be marked as seen -->
+            <!--         if false, messages left on the server will not be marked as seen -->                                           
+            <userundefined reject="true" leaveonserver="true" markseen="false" />
+
+            <!-- Specify if messages for recipients on remote hosts should -->
+            <!-- be rejected and what happens to rejected messages. -->
+            <!-- reject -->
+            <!--     if true, messages for remote recipients will be rejected -->
+            <!--     if false, messages for remote recipients will be accepted -->
+            <!--     and the Mail Attribute "org.apache.james.fetchmail.isRemoteRecipient" -->
+            <!--     will be added to the message. Use the HasMailAttribute matcher to detect them. -->            
+            <!-- The following apply if reject="true" and a message is rejected... -->
+            <!--     leaveonserver -->
+            <!--         if true, messages will be left on the server -->
+            <!--         if false, messages will be deleted from the server -->
+            <!--     markseen -->
+            <!--         if true, messages left on the server will be marked as seen -->
+            <!--         if false, messages left on the server will not be marked as seen -->       
+            <remoterecipient reject="true" leaveonserver="true" markseen="false" />
+        </fetch>
+    </fetchmail>        

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-fetchmail.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,108 @@
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one   
+    or more contributor license agreements.  See the NOTICE file 
+    distributed with this work for additional information        
+    regarding copyright ownership.  The ASF licenses this file   
+    to you under the Apache License, Version 2.0 (the            
+    "License"); you may not use this file except in compliance   
+    with the License.  You may obtain a copy of the License at   
+    
+    http://www.apache.org/licenses/LICENSE-2.0                 
+    
+    Unless required by applicable law or agreed to in writing,   
+    software distributed under the License is distributed on an  
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+    KIND, either express or implied.  See the License for the    
+    specific language governing permissions and limitations      
+    under the License.                                           
+-->
+
+<!-- 
+    JMS service configuration 
+
+    NOTE: 
+      1.  This service is EXPERIMENTAL! 
+      2.  Before enabling, uncomment jms in assembly.xml 
+          and environment.xml.
+-->
+<jms enabled="true">
+
+<!-- 
+JAMES JMS is provided by an ActiveMQ broker. ActiveMQ supports a wide
+range of configurations but only a sample are exposed ATM. See ActiveMQ
+documentation for more details.
+
+Attributes:
+  jmx        - instruments the broker
+  persistent - 
+Elements:
+  connector  - adds transport point specified by URL
+-->
+    <activemq-broker 
+        jmx='false' 
+        persistent='false'>
+        <!-- Adds a TCP transport serving port 61616 on the localhost -->
+        <!-- Note that no external connectors are required. -->
+        <!-- JAMES uses the local (vm) broker interally. --> 
+        <!-- Add connectors to allow external access. -->
+        <connector>tcp://localhost:61616</connector>
+    </activemq-broker>
+
+<!--
+Example of a standard consumer. Standard consumers are shipped
+with JAMES and are pre-configured by the service.
+
+Types:
+  james-in   - feeds consumed mail to JAMES input spool  
+-->
+    <consumer type='james-in'>
+        <!--
+        The builder strategy converts message content into a Mail.
+        This is an example of a standard builder. Standard builders
+        are shipped with JAMES and are pre-configured by the service.
+        Types:
+           SimpleMailBuilder    - naive implementation suitable for 
+                                  generated messages
+        -->
+        <builder type='SimpleMailBuilder'/>
+        <!-- 
+        The JMS destination to which the consumer should be bound.
+        -->
+        <destination>
+            <!-- 
+            Names the JMS destination.
+            -->
+            <name>org.apache.james.sample.INPUT</name>
+            <!--
+            Listens to a queue. 
+            -->
+            <queue/>
+        </destination>
+    </consumer>
+    
+<!--
+Example of a custom consumer. The class will be loaded by name
+and instantiated through an empty constructor. 
+-->
+    <consumer classname='org.apache.james.jms.consumer.LogConsumer'>
+        <!--
+        The builder strategy converts message content into a Mail.
+        This is an example of a custom builder. Custom builders
+        are loaded by classname by an empty constructor
+        -->
+        <builder classname='org.apache.james.jms.builder.SimpleMailBuilder'/>
+        <!-- 
+        The JMS destination to which the consumer should be bound.
+        -->
+        <destination>
+            <!-- 
+            Names the JMS destination.
+            -->
+            <name>org.apache.james.sample.TOPIC</name>
+            <!--
+            Subscribes to a topic. 
+            -->
+            <topic/>
+        </destination>
+    </consumer>
+</jms>

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-jms.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,61 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one   
+  or more contributor license agreements.  See the NOTICE file 
+  distributed with this work for additional information        
+  regarding copyright ownership.  The ASF licenses this file   
+  to you under the Apache License, Version 2.0 (the            
+  "License"); you may not use this file except in compliance   
+  with the License.  You may obtain a copy of the License at   
+                                                               
+    http://www.apache.org/licenses/LICENSE-2.0                 
+                                                               
+  Unless required by applicable law or agreed to in writing,   
+  software distributed under the License is distributed on an  
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+  KIND, either express or implied.  See the License for the    
+  specific language governing permissions and limitations      
+  under the License.                                           
+ -->
+      <!-- Add a Manager and Processor for each list -->
+      <!-- TODO: add more examples                   -->
+      <!-- CHECKME: check the <resource> path        -->
+
+        <mailet match="CommandListservMatcher=testlist@localhost" class="CommandListservManager">
+           <!-- CHECKME! -->
+           <!--resources-->
+           <resources>/opt/james/apps/james/conf/miResources.xml</resources>
+           <!-- general information -->
+           <listName>testlist</listName>
+           <displayName>Test mailing list</displayName>
+           <listOwner>owner@localhost</listOwner>
+           <repositoryName>list-test</repositoryName>
+           <listDomain>localhost</listDomain>
+
+           <!-- the packages where the commands can be loaded from -->
+           <commandpackages>
+              <commandpackage>org.apache.james.transport.mailets.listservcommands</commandpackage>
+           </commandpackages>
+
+           <!-- all the available commands for this command. -->
+           <commands>
+              <command name="subscribe" class="Subscribe"/>
+              <command name="subscribe-confirm" class="SubscribeConfirm"/>
+              <command name="unsubscribe" class="UnSubscribe"/>
+              <command name="unsubscribe-confirm" class="UnSubscribeConfirm"/>
+              <command name="error" class="ErrorCommand"/>
+              <command name="owner" class="Owner"/>
+              <command name="info" class="Info"/>
+           </commands>
+        </mailet>
+
+        <!-- the processor for this list serv -->
+        <mailet match="RecipientIs=testlist@localhost" class="CommandListservProcessor">
+           <membersonly>false</membersonly>
+           <attachmentsallowed>true</attachmentsallowed>
+           <replytolist>true</replytolist>
+           <repositoryName>list-test</repositoryName>
+           <subjectprefix>Test</subjectprefix>
+           <autobracket>true</autobracket>
+           <listOwner>owner@localhost</listOwner>
+           <listName>testlist</listName>
+        </mailet>

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-listmanager.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,24 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one   
+  or more contributor license agreements.  See the NOTICE file 
+  distributed with this work for additional information        
+  regarding copyright ownership.  The ASF licenses this file   
+  to you under the Apache License, Version 2.0 (the            
+  "License"); you may not use this file except in compliance   
+  with the License.  You may obtain a copy of the License at   
+                                                               
+    http://www.apache.org/licenses/LICENSE-2.0                 
+                                                               
+  Unless required by applicable law or agreed to in writing,   
+  software distributed under the License is distributed on an  
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+  KIND, either express or implied.  See the License for the    
+  specific language governing permissions and limitations      
+  under the License.                                           
+ -->
+      <!-- Mailing list repositories  -->
+      <!-- Add a user repository for each list -->
+      <!-- TODO: add more examples             -->
+      <repository name="list-test" class="org.apache.james.userrepository.UsersFileRepository">
+         <destination URL="file://var/lists/list-test/"/>
+      </repository>

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-liststores.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,215 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one   
+  or more contributor license agreements.  See the NOTICE file 
+  distributed with this work for additional information        
+  regarding copyright ownership.  The ASF licenses this file   
+  to you under the Apache License, Version 2.0 (the            
+  "License"); you may not use this file except in compliance   
+  with the License.  You may obtain a copy of the License at   
+                                                               
+    http://www.apache.org/licenses/LICENSE-2.0                 
+                                                               
+  Unless required by applicable law or agreed to in writing,   
+  software distributed under the License is distributed on an  
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+  KIND, either express or implied.  See the License for the    
+  specific language governing permissions and limitations      
+  under the License.                                           
+ -->
+<!-- The configuration handler chain -->
+<!-- Please note that this is EXPERIMENTAL and will be changed in future -->
+<!-- releases -->
+<handlerchain>
+<!-- Load the core filter command handlers-->
+    <handler class="org.apache.james.smtpserver.core.filter.CoreFilterCmdHandlerLoader"></handler>        
+
+    <!-- This connect handler can be used to enable POP3 before SMTP support -->
+    <!-- Plz note that only the ip get stored to indentify an authenticated client -->
+    <!-- The expireTime is the time after which an ipAddress is handled as expired -->
+    <!--
+    <handler class="org.apache.james.smtpserver.core.POP3BeforeSMTPHandler">
+        <expireTime> 1 hour </expireTime>
+    </handler>
+    -->
+            
+    <!-- This command handler check against RBL-Lists -->
+    <!-- If getDetail is set to true it try to retrieve information from TXT Record -->
+    <!-- why the ip was blocked. Default to false -->            
+    <!-- STOP - before you uncomment out the DNS RBL handler,
+         please take a moment to review each block list.  We
+         have included some that various JAMES committers use,
+         but you must decide which, if any, are appropriate
+         for your environment.  The mail servers hosting
+         @apache.org mailing lists, for example, use a
+         slightly different list than we have included below.
+         And it is likely that most JAMES committes also have
+         slightly different sets of lists.  The SpamAssassin
+         user's list would be one good place to discuss the
+         measured quality of various block lists.
+
+         NOTA BENE: the domain names, below, are terminated
+         with '.' to ensure that they are absolute names in
+         DNS lookups.  Under some circumstances, names that
+         are not explicitly absolute could be treated as
+         relative names, leading to incorrect results.  This
+         has been observed on *nix and MS-Windows platforms
+         by users of multiple mail servers, and is not JAMES
+         specific.  If you are unsure what this means for you,
+         please speak with your local system/network admins.
+     -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.DNSRBLHandler" command="RCPT">
+         <action> reject </action>
+         <getDetail> false </getDetail>
+         <rblservers>
+             <whitelist> query.bondedsender.org. </whitelist>
+
+             <blacklist> sbl-xbl.spamhaus.org. </blacklist>
+             <blacklist> dul.dnsbl.sorbs.net. </blacklist>
+             <blacklist> list.dsbl.org. </blacklist>
+         </rblservers>
+     </handler>            
+     --> 
+     
+     <!-- This command handler can be used to reject emails with not match the SPF record of the sender domain --> 
+     <!-- If checkAuthNetworks is set to true sender domain will be checked also for clients that -->
+     <!-- are allowed to relay. Default is false. -->  
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.SPFHandler" command="MAIL,RCPT">
+         <action> reject </action>
+         <checkAuthNetworks> false </checkAuthNetworks>
+         <blockSoftFail> false </blockSoftFail>
+         <blockPermError> true </blockPermError>
+     </handler>
+     -->    
+            
+
+     <!-- The filter handler configuration -->
+     
+     <!-- checks for resolvable HELO/EHLO before accept the HELO/EHLO -->
+     <!-- If checkAuthNetworks is set to true sender domain will be checked also for clients that -->
+     <!-- are allowed to relay. Default is false. -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.ResolvableEhloHeloHandler" command="EHLO,HELO,RCPT">
+         <action> reject </action>
+         <checkAuthNetworks> false </checkAuthNetworks>
+         <checkAuthUsers> false </checkAuthUsers>
+     </handler>  
+     -->
+            
+     <!-- Checks HELO/EHLO is equal the reverse of the connecting client before accept it -->
+     <!-- If checkAuthNetworks is set to true sender domain will be checked also for clients that -->
+     <!-- are allowed to relay. Default is false. -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.ReverseEqualsEhloHeloHandler" command="EHLO,HELO">
+         <action> reject </action>
+         <checkAuthClients> false </checkAuthClients>
+         <checkAuthUsers> false </checkAuthUsers>
+     </handler>
+     -->
+            
+     <!-- If activated mail is only accepted if the sender contains -->
+     <!-- a resolvable domain having a valid MX Record or A Record associated! -->
+     <!-- If checkAuthNetworks is set to true sender domain will be checked also for clients that -->
+     <!-- are allowed to relay. Default is false. -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.ValidSenderDomainHandler" command="MAIL">
+         <action> reject </action>
+         <checkAuthClients> false </checkAuthClients>
+         <checkAuthUsers> false </checkAuthUsers>
+     </handler>
+     -->
+     
+         
+     <!-- If activated all email will get rejected which has no valid user -->
+     <!-- You need to add the recipient to the validRecipient list if you want -->
+     <!-- to accept email for a recipient which not exist on the server -->
+     <!-- 
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.ValidRcptHandler" command="RCPT">
+         <validRecipients> </validRecipients>
+         <validDomains> </validDomains>
+         <validRegexPattern> </validRegexPattern>
+     </handler>
+     -->
+            
+     <!-- If activated you can limit the maximal recipients -->
+     <!-- 
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.MaxRcptHandler" command="RCPT">
+         <action> reject </action>
+         <maxRcpt> 10 </maxRcpt>                
+     </handler>
+     -->
+            
+     <!-- If uncomment this block you can enable greylisting. For more infos-->
+     <!-- how greylisting work see: http://projects.puremagic.com/greylisting/whitepaper.html -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.GreylistHandler" command="RCPT">
+         <repositoryPath> db://maildb </repositoryPath>
+         <sqlFile>file://conf/sqlResources.xml</sqlFile>
+         <tempBlockTime> 1 hour </tempBlockTime>
+         <unseenLifeTime> 4 hours </unseenLifeTime>
+         <autoWhiteListLifeTime> 36 days </autoWhiteListLifeTime>
+         <whitelistedNetworks> 127.0.0.0/8 </whitelistedNetworks>
+     </handler>
+     -->
+            
+     <!-- Tarpitting is a method to insert a small sleep after each rcpt. For more -->
+     <!-- infos read this: http://www.palomine.net/qmail/tarpit.html . -->
+     <!-- Default is set to 0 (disabled). -->
+     <!-- You can also configure the time to sleep in milliseconds -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.TarpitHandler" command="RCPT">
+         <tarpitRcptCount> 5 </tarpitRcptCount>
+         <tarpitSleepTime> 5000 </tarpitSleepTime>
+     </handler>
+     -->
+         
+     <!-- This handler ignore duplicated recipients per session. So the email will get only send on time even -->
+     <!-- if the recipient is specified more then once -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.SuppressDuplicateRcptHandler" command="RCPT"/>
+     -->
+     
+     <!-- Load the core command handlers -->
+     <handler class="org.apache.james.smtpserver.core.CoreCmdHandlerLoader"></handler>        
+      
+     <!-- The message handler configuration -->
+     
+     <!-- This MessageHandler could be used to check message against spamd before -->
+     <!-- accept the email. So its possible to reject a message on smtplevel if a -->
+     <!-- configured hits amount is reached. -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.SpamAssassinHandler">
+         <spamdHost> 127.0.0.1 </spamdHost>
+         <spamdPort> 783 </spamdPort>
+         <spamdRejectionHits> 10 </spamdRejectionHits>
+         <checkAuthNetworks> false </checkAuthNetworksv>
+     </handler>
+     -->
+     
+     <!-- This MessageHandler could be used to extract domain out of the message and check -->
+     <!-- this domains against uriRbllists. See http://www.surbl.org for more informations. -->
+     <!-- The message get rejected if a domain matched . -->
+     <!--
+     <handler class="org.apache.james.smtpserver.core.filter.fastfail.URIRBLHandler">
+         <action> reject </action>
+         <getDetail> true </getDetail>
+         <checkAuthNetworks> false </checkAuthNetworks>
+         <uriRblServers> 
+             <server> multi.surbl.org</server>
+         </uriRblServers>
+     </handler>
+     -->
+     
+     <!-- 
+     <handler class="org.apache.james.smtpserver.core.SetMimeHeaderHandler">
+         <headername>SPF-test</headername>
+         <headervalue>passed</headervalue>
+     </handler>
+     -->
+            
+     <!--  The default message receiving handler -->
+     <!--  The default behaviour is to put the message in the root processor of -->
+     <!--  the spooler -->
+     <handler class="org.apache.james.smtpserver.core.SendMailHandler"></handler>
+</handlerchain>

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/james-smtphandlerchain.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties Sun Jun 15 09:33:21 2008
@@ -0,0 +1,35 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+log4j.rootLogger=DEBUG
+
+log4j.appender.CONS=org.apache.log4j.ConsoleAppender
+log4j.appender.CONS.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONS.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n
+
+log4j.appender.FILE=org.apache.log4j.RollingFileAppender
+log4j.appender.FILE.File=../log/james-server.log
+log4j.appender.FILE.MaxFileSize=1GB
+log4j.appender.FILE.MaxBackupIndex=40
+log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.FILE.layout.ConversionPattern=%-5p %d{HH:mm:ss,SSS} | %c | %m%n
+
+log4j.logger.org.springframework=WARN, CONS, FILE
+log4j.logger.org.apache.james=DEBUG, CONS, FILE
+#log4j.logger.james: set from default value WARN to INFO or even DEBUG to see (even) more logging
+log4j.logger.james=WARN, CONS, FILE
+log4j.logger=DEBUG, CONS, FILE
+

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,180 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one   
+  or more contributor license agreements.  See the NOTICE file 
+  distributed with this work for additional information        
+  regarding copyright ownership.  The ASF licenses this file   
+  to you under the Apache License, Version 2.0 (the            
+  "License"); you may not use this file except in compliance   
+  with the License.  You may obtain a copy of the License at   
+                                                               
+    http://www.apache.org/licenses/LICENSE-2.0                 
+                                                               
+  Unless required by applicable law or agreed to in writing,   
+  software distributed under the License is distributed on an  
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+  KIND, either express or implied.  See the License for the    
+  specific language governing permissions and limitations      
+  under the License.                                           
+ -->
+ <!-- SQL Statements used by MailboxManager for database access. -->
+<sqlResources>
+
+<!--
+     This section provided configuration to determine the determine the
+     database product which is being used for storage. Different database
+     products may require different SQL syntax.
+
+     The jdbc database connection is examined to see if it matches with the
+     regular expressions specified in any of the defined matchers. The matchers
+     are processed in the over provided here, with the first successful match
+     defining the "db" value for this connection.
+
+     This value is then used to choose between different definitions for various
+     named sql statements, defined below. If no match is found,
+     the default sql statements are used.
+-->
+  <dbMatchers>
+    <dbMatcher db="mysql" databaseProductName="my.*"/>
+    <dbMatcher db="derby" databaseProductName="derby.*"/>
+  </dbMatchers>
+
+  <dbOptions>
+  </dbOptions>
+  <sqlDefs name="org.apache.james.mailboxmanager.torque.TorqueMailboxManagerFactory">
+
+    <sql name="tableName">${table}</sql>
+
+    <sql name="createTable_mailbox" db="derby">
+CREATE TABLE mailbox
+(
+    mailbox_id BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY,
+    name VARCHAR(255) NOT NULL,
+    uid_validity BIGINT NOT NULL,
+    last_uid BIGINT NOT NULL,
+    message_count INTEGER default 0,
+    size BIGINT default 0,
+    PRIMARY KEY(mailbox_id),
+    UNIQUE (name))
+    </sql>
+    <sql name="createTable_message" db="derby">
+CREATE TABLE message
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    internal_date TIMESTAMP,
+    size INTEGER,
+    PRIMARY KEY(mailbox_id,uid),
+    FOREIGN KEY (mailbox_id) REFERENCES mailbox (mailbox_id)
+        ON DELETE CASCADE
+  )     
+    </sql>
+    <sql name="createTable_message_flags" db="derby">   
+CREATE TABLE message_flags
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    answered INTEGER default 0 NOT NULL,
+    deleted INTEGER default 0 NOT NULL,
+    draft INTEGER default 0 NOT NULL,
+    flagged INTEGER default 0 NOT NULL,
+    recent INTEGER default 0 NOT NULL,
+    seen INTEGER default 0 NOT NULL,
+    PRIMARY KEY(mailbox_id,uid),
+    FOREIGN KEY (mailbox_id, uid) REFERENCES message (mailbox_id, uid)
+        ON DELETE CASCADE
+  )
+    </sql>      
+    <sql name="createTable_message_header" db="derby">  
+CREATE TABLE message_header
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    line_number INTEGER NOT NULL,
+    field VARCHAR(256) NOT NULL,
+    value VARCHAR(1024) NOT NULL,
+    PRIMARY KEY(mailbox_id,uid,line_number),
+    FOREIGN KEY (mailbox_id, uid) REFERENCES message (mailbox_id, uid)
+        ON DELETE CASCADE
+  ) 
+    </sql>  
+    <sql name="createTable_message_body" db="derby">    
+CREATE TABLE message_body
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    body BLOB NOT NULL,
+    PRIMARY KEY(mailbox_id,uid),
+    FOREIGN KEY (mailbox_id, uid) REFERENCES message (mailbox_id, uid)
+        ON DELETE CASCADE
+  )
+    </sql>  
+    <!--
+       *** MySQL ***
+    -->
+    <sql name="createTable_mailbox" db="mysql">
+CREATE TABLE mailbox
+(
+    mailbox_id BIGINT NOT NULL AUTO_INCREMENT,
+    name VARCHAR(255) NOT NULL,
+    uid_validity BIGINT NOT NULL,
+    last_uid BIGINT NOT NULL,
+    message_count MEDIUMINT default 0,
+    size BIGINT default 0,
+    PRIMARY KEY(mailbox_id),
+    UNIQUE (name)) ENGINE=INNODB;
+    </sql>
+    <sql name="createTable_message" db="mysql">
+CREATE TABLE message
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    internal_date DATETIME,
+    size MEDIUMINT,
+    PRIMARY KEY(mailbox_id,uid),
+    FOREIGN KEY (mailbox_id) REFERENCES mailbox (mailbox_id)
+        ON DELETE CASCADE
+  ) ENGINE=INNODB;      
+    </sql>
+    <sql name="createTable_message_flags" db="mysql">   
+CREATE TABLE message_flags
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    answered INTEGER default 0 NOT NULL,
+    deleted INTEGER default 0 NOT NULL,
+    draft INTEGER default 0 NOT NULL,
+    flagged INTEGER default 0 NOT NULL,
+    recent INTEGER default 0 NOT NULL,
+    seen INTEGER default 0 NOT NULL,
+    PRIMARY KEY(mailbox_id,uid),
+    FOREIGN KEY (mailbox_id, uid) REFERENCES message (mailbox_id, uid)
+        ON DELETE CASCADE
+  ) ENGINE=INNODB;
+    </sql>      
+    <sql name="createTable_message_header" db="mysql">  
+CREATE TABLE message_header
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    line_number MEDIUMINT NOT NULL,
+    field VARCHAR(256) NOT NULL,
+    value VARCHAR(1024) NOT NULL,
+    PRIMARY KEY(mailbox_id,uid,line_number),
+    FOREIGN KEY (mailbox_id, uid) REFERENCES message (mailbox_id, uid)
+        ON DELETE CASCADE
+  ) ENGINE=INNODB;      
+    </sql>  
+    <sql name="createTable_message_body" db="mysql">    
+CREATE TABLE message_body
+(
+    mailbox_id BIGINT NOT NULL,
+    uid BIGINT NOT NULL,
+    body LONGBLOB NOT NULL,
+    PRIMARY KEY(mailbox_id,uid),
+    FOREIGN KEY (mailbox_id, uid) REFERENCES message (mailbox_id, uid)
+        ON DELETE CASCADE
+) ENGINE=INNODB;        
+    </sql>  
+  </sqlDefs>
+</sqlResources>
+

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/mailboxManagerSqlResources.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,176 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one   
+  or more contributor license agreements.  See the NOTICE file 
+  distributed with this work for additional information        
+  regarding copyright ownership.  The ASF licenses this file   
+  to you under the Apache License, Version 2.0 (the            
+  "License"); you may not use this file except in compliance   
+  with the License.  You may obtain a copy of the License at   
+                                                               
+    http://www.apache.org/licenses/LICENSE-2.0                 
+                                                               
+  Unless required by applicable law or agreed to in writing,   
+  software distributed under the License is distributed on an  
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       
+  KIND, either express or implied.  See the License for the    
+  specific language governing permissions and limitations      
+  under the License.                                           
+ -->
+ <!-- XML resources for mailing lists -->
+<resources>
+  <matchers>
+    <matcher for="custom" match="My Custom List"/>
+  </matchers>
+
+  <group name="subscribeConfirm">
+    <resource name="welcome.subscribe.address">Welcome to the ${LIST_NAME} mailing list</resource>
+    <resource name="already.subscribed">You are already subscribed to the ${LIST_NAME} mailing list.</resource>
+    <resource name="text" xml:space="preserve"><![CDATA[
+Acknowledgment: I have added the address
+
+   ${SENDER_ADDR}
+
+to the ${LIST_NAME} mailing list.
+
+Welcome to ${LIST_NAME}@${DOMAIN_NAME}!
+
+Please save this message so that you know the address you are
+subscribed under, in case you later want to unsubscribe or change your
+subscription address.]]>
+    </resource>
+  </group>
+  <group name="unsubscribeConfirm">
+    <resource name="goodbye.subscribe.address">Goodbye from the ${LIST_NAME} mailing list</resource>
+    <resource name="not.subscribed">You are not currently subscribed to the ${LIST_NAME} mailing list.</resource>
+    <resource name="text" xml:space="preserve"><![CDATA[
+Acknowledgment: I have removed the address
+
+   ${SENDER_ADDR}
+
+from the ${LIST_NAME} mailing list.
+
+Goodbye from ${LIST_NAME}@${DOMAIN_NAME}.
+
+If you would like to subscribe in the future please send email to: ${LIST_NAME}-subscribe@${DOMAIN_NAME}]]>
+    </resource>
+  </group>
+  <group name="error">
+    <resource name="text" xml:space="preserve"><![CDATA[
+An error occurred while processing your request:
+    ${ERROR_MESSAGE}]]>
+    </resource>
+  </group>
+  <group name="unsubscribe">
+    <resource name="not.subscribed">You are not currently subscribed to the ${LIST_NAME} mailing list.</resource>
+    <resource name="confirm.unsubscribe.subject">Please confirm your unsubscription to the ${LIST_NAME} mailing list</resource>
+    <resource name="confirm.unsubscribe.address">${LIST_NAME}-unsubscribe-confirm@${DOMAIN_NAME}</resource>
+    <resource name="text" xml:space="preserve"><![CDATA[
+To confirm that you would like
+
+    ${SENDER_ADDR}
+
+removed from the ${LIST_NAME} mailing list, please send an empty reply to this address:
+
+
+${LIST_NAME}-unsubscribe-confirm@${DOMAIN_NAME}
+
+Usually, this happens when you just hit the "reply" button.
+If this does not work, simply copy the address and paste it into the "To:" field of a new message.
+
+ or click here:
+
+mailto:${LIST_NAME}-unsubscribe-confirm@${DOMAIN_NAME}]]>
+    </resource>
+  </group>
+  <group name="subscribe">
+    <resource name="already.subscribed">You are already subscribed to the ${LIST_NAME} mailing list.</resource>
+    <resource name="confirm.subscribe.subject">Please confirm your subscription to the ${LIST_NAME} mailing list</resource>
+    <resource name="confirm.subscribe.address">${LIST_NAME}-subscribe-confirm@${DOMAIN_NAME}</resource>
+    <resource name="text" xml:space="preserve"><![CDATA[
+To confirm that you would like
+
+   ${SENDER_ADDR}
+
+added to the ${LIST_NAME} mailing list, please send an empty reply to this address:
+
+   ${LIST_NAME}-subscribe-confirm@${DOMAIN_NAME}
+
+Usually, this happens when you just hit the "reply" button.
+If this does not work, simply copy the address and paste it into the "To:" field of a new message.
+
+or click here:
+    mailto:${LIST_NAME}-subscribe-confirm@${DOMAIN_NAME}
+
+This confirmation serves two purposes. First, it verifies that I am able to get mail through to you. Second, it protects you in case someone forges a subscription request in your name.]]>
+    </resource>
+  </group>
+  <group name="admincommands">
+    <resource name="text" xml:space="preserve"><![CDATA[
+--- Administrative commands for the ${LIST_NAME} list ---
+
+I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address:
+
+To subscribe to the list, send a message to:
+   <${LIST_NAME}-subscribe@${DOMAIN_NAME}>
+
+To remove your address from the list, send a message to:
+   <${LIST_NAME}-unsubscribe@${DOMAIN_NAME}>
+
+Send mail to the following for info and FAQ for this list:
+   <${LIST_NAME}-info@${DOMAIN_NAME}>
+
+If despite following these instructions, you do not get the desired results, please contact my owner at ${LIST_NAME}-owner@${DOMAIN_NAME}. Please be patient, my owner is a lot slower than I am ;-)]]>
+    </resource>
+  </group>
+  <group name="info">
+    <resource name="info.subject">Information regarding the ${LIST_NAME} mailing list</resource>
+    <resource name="text" xml:space="preserve"><![CDATA[
+--- Information regarding the ${LIST_NAME} list ---
+
+This is a public mailing list associated with the ${DOMAIN_NAME} server.
+It is intended to be a convienent mechanism to share ideas, news and current events with like minded people.
+
+--- Common practices ---
+Sending email to the list:
+    If you want to send email to the list, you can simply click on this link: ${LIST_NAME}@${DOMAIN_NAME} and then send what ever email you'd like to share with the other members of the ${LIST_NAME} mailing list.
+
+Recieving email from the list:
+    Every time someone sends email to the list, every member will recieve the email in their inbox.
+
+Replying to list email:
+    When you reply to email from the list, it will also go to every member on the list.
+
+--- Current members ---
+The list of current members are:
+    ${MEMBER_LIST}]]>
+    </resource>
+  </group>
+  <group name="footer">
+    <resource name="text" xml:space="preserve"><![CDATA[
+---------------------------------------------------------------------
+To unsubscribe, e-mail: ${LIST_NAME}-unsubscribe@${DOMAIN_NAME}
+For additional commands, e-mail: ${LIST_NAME}-info@${DOMAIN_NAME}]]>
+    </resource>
+  </group>
+  <group name="footer_html">
+    <resource name="text" xml:space="preserve"><![CDATA[
+---------------------------------------------------------------------
+To unsubscribe, e-mail: <a href="mailto:${LIST_NAME}-unsubscribe@${DOMAIN_NAME}">${LIST_NAME}-unsubscribe@${DOMAIN_NAME}</a>
+For additional commands, e-mail: <a href="mailto:${LIST_NAME}-info@${DOMAIN_NAME}">${LIST_NAME}-info@${DOMAIN_NAME}</a>]]>
+    </resource>
+  </group>
+ <group name="List Manager">
+    <resource name="command.not.understood">I Could not understand the command "${COMMAND}" you sent to the "${LIST_NAME}" mailing list.</resource>
+    <resource name="invalid.mail.subject">You have sent invalid mail to the ${LIST_NAME} mailing list</resource>
+    <resource name="error.attachments">You cannot send attachments to the ${LIST_NAME} mailing list.</resource>
+    <resource name="error.membersonly">Only members of this listserv are allowed to send a message to the ${LIST_NAME} mailing list.</resource>
+ </group>
+  <group name="header">
+    <resource name="text" xml:space="preserve"><![CDATA[
+Hi! This is the list serv program. I'm managing the ${LIST_NAME}@${DOMAIN_NAME} mailing list.
+
+I'm working for my owner, who can be reached at ${LIST_NAME}-owner@${DOMAIN_NAME}.]]>
+    </resource>
+    <resource name="text" for="custom">This is my custom HEADER resource</resource>
+  </group>
+</resources>

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/miResources.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml?rev=667970&view=auto
==============================================================================
--- geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml (added)
+++ geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml Sun Jun 15 09:33:21 2008
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">
+
+<!--
+ ! Licensed to the Apache Software Foundation (ASF) under one   !
+ ! or more contributor license agreements.  See the NOTICE file !
+ ! distributed with this work for additional information        !
+ ! regarding copyright ownership.  The ASF licenses this file   !
+ ! to you under the Apache License, Version 2.0 (the            !
+ ! "License"); you may not use this file except in compliance   !
+ ! with the License.  You may obtain a copy of the License at   !
+ !                                                              !
+ !   http://www.apache.org/licenses/LICENSE-2.0                 !
+ !                                                              !
+ ! Unless required by applicable law or agreed to in writing,   !
+ ! software distributed under the License is distributed on an  !
+ ! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       !
+ ! KIND, either express or implied.  See the License for the    !
+ ! specific language governing permissions and limitations      !
+ ! under the License.                                           !
+ -->
+
+
+<beans>
+
+    <!--
+         beans which replace Avalon specific container logic
+    -->
+
+    <bean id="fileSystemOverride" class="org.apache.geronimo.plugins.james.FileSystemBridge">
+        <property name="baseDir" value="var/james/"/>
+    </bean>
+         
+    <bean id="serviceManager" class="org.apache.james.container.spring.adaptor.DefaultServiceManagerFactory" >
+        <property name="replacements">
+            <!-- replacement map. 
+                 key must point to an avalon service from james-assembly.xml
+                 value must point to a bean
+            -->
+            <map>
+                <entry key="filesystem" value="fileSystemOverride" />
+            </map>
+        </property>
+    </bean>
+
+    <!--
+        Logging to log4j
+    -->
+    <bean id="logger" class="org.apache.james.container.spring.logging.log4j.LoggerToComponentMapper" init-method="init">
+        <property name="configurationResource" value="log4j.properties"/>
+    </bean>
+    
+    <!--
+        Logging to System.out
+    -->
+    <!--
+    <bean name="logWorker" class="org.apache.james.container.spring.logging.SystemConsoleLogWorker" />
+
+    <bean name="logger, loggerMap" class="org.apache.james.container.spring.adaptor.LoggingBridge" >
+        <property name="logWorker" ref="logWorker" />
+    </bean>
+    -->
+
+    <!-- 
+         maps the default standard ports for SMTP, POP3, IMAP, NNTP to non-privileged ports in the
+         9000's range (must be activated in "configurationProvider"-bean)
+    -->
+    <bean id="privilegedPortsConfigurationInterceptor" class="org.apache.james.container.spring.examples.configuration.UnprivilegedPortConfigurationInterceptor" />
+    
+    <!--
+         replaces strings in configuration values
+    -->
+    <bean id="stringRemapperConfigurationInterceptor" class="org.apache.james.container.spring.examples.configuration.StringRemapperConfigurationInterceptor">
+        <property name="mappings">
+            <map>
+                <!-- avoid having folders be generated outside the working directory -->
+                <entry key="../apps/" value="../var/"/>
+            </map>
+        </property>
+    </bean>
+
+
+    <bean id="configurationProvider" class="org.apache.james.container.spring.adaptor.AvalonConfigurationFileProvider" >
+        <property name="configurationResource" value="config/james-config.xml" />
+        <property name="configurationInterceptors">
+            <list>
+                <ref bean="stringRemapperConfigurationInterceptor" />
+                <!--<ref bean="privilegedPortsConfigurationInterceptor" />-->
+            </list>
+        </property>
+        <property name="fileSystem" ref="fileSystemOverride"/>
+    </bean>
+
+    <bean id="avalonContext" class="org.apache.james.container.spring.adaptor.AvalonContext" >
+        <property name="applicationHome" value="data" />
+    </bean>
+
+    <!--
+        **  JMX part **
+        
+        to enable exposure of JMX, activate the following beans
+        
+        NOTE: if you are running JDK < 1.5, you'd have to make a MBeanServer implementation available on the
+        classpath, for example mx4j
+     -->
+
+    <!--
+    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter" lazy-init="false" >
+        <property name="autodetect" value="true" />
+        <property name="namingStrategy" ref="namingStrategy" />
+    </bean>
+
+    <bean id="namingStrategy" class="org.springframework.jmx.export.naming.KeyNamingStrategy" >
+        <property name="mappings" ><props>
+            <prop key="fetchmail" >bean:name=fetchmail</prop>
+            <prop key="smtpserver" >bean:name=smtpserver</prop>
+            <prop key="James" >bean:name=James</prop>
+            <prop key="dnsserver" >bean:name=dnsserver</prop>
+            <prop key="remotemanager" >bean:name=remotemanager</prop>
+            <prop key="pop3server" >bean:name=pop3server</prop>
+            <prop key="nntpserver" >bean:name=nntpserver</prop>
+            <prop key="virtualusertablemanagement" >bean:name=virtualusertablemanagement</prop>
+            <prop key="spoolmanagement" >bean:name=spoolmanagement</prop>
+            <prop key="domainlistmanagement" >bean:name=domainlistmanagement</prop>
+            <prop key="processormanagement" >bean:name=processormanagement</prop>
+            <prop key="bayesiananalyzermanagement" >bean:name=bayesiananalyzermanagement</prop>
+            <prop key="usermanagement" >bean:name=usermanagement</prop>
+            
+            <prop key="serverConnector" >bean:name=serverConnector</prop>
+        </props></property>
+    </bean>
+    
+
+    <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServerFactoryBean" />
+
+    <bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean">
+        <property name="port" value="1099" />
+    </bean>
+    
+    <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="registry">
+        <property name="objectName" value="connector:name=rmi" />
+        <property name="serviceUrl" value="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/jamesmailserver" />    
+    </bean>
+    -->
+    
+    <!--
+         beans managing bootstrapping and component lifecycle
+    -->
+    <bean id="loggerPropagator" class="org.apache.james.container.spring.lifecycle.LoggerPropagator" >
+        <property name="loggerFactory" ref="logger"/>
+    </bean>
+
+    <bean id="contextPropagator" class="org.apache.james.container.spring.lifecycle.ContextPropagator" >
+        <property name="context" ref="avalonContext"/>
+    </bean>
+
+    <bean id="servicePropagator" class="org.apache.james.container.spring.lifecycle.ServicePropagator" >
+        <property name="serviceManagerFactory" ref="serviceManager"/>
+    </bean>
+
+    <bean id="configurationManager" class="org.apache.james.container.spring.lifecycle.ConfigurationPropagator" >
+        <property name="configurationProvider" ref="configurationProvider"/>
+    </bean>
+
+    <bean id="initializationManager" class="org.apache.james.container.spring.lifecycle.InitializationPropagator" />
+
+</beans>
+
+
+
+

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/james/trunk/james/src/main/resources/var/james/config/spring-beans.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml