To setup a Javamail store MailRepository you have to make sure the corresponding Javamail implementation, e.g. javamaildir-0.6.2.jar, is added at the SAR-INF/lib directory of the james.sar. To check this, you can open james.sar with your favorite ZIP packer.
1. possibility: put the jar in the lib directory of the trunk and modify include.properties and build.xml
— B:/java/jamesws/JamesSecondTrunk/build.xml (revision 409878)
+++ B:/java/jamesws/JamesSecondTrunk/build.xml (working copy)
@@ -503,6 +503,7 @@
+ <include name="$
— B:/java/jamesws/JamesSecondTrunk/include.properties (revision 409878)
+++ B:/java/jamesws/JamesSecondTrunk/include.properties (working copy)
@@ -42,6 +42,9 @@
- ----- Activation -----
+# ----- javamaildir
- ----- DNS -----
then run ant.
2. possibility: open james.sar with you favorite zip packer and inject the jar directly into the SAR-INF/lib directory.
I don't like both methods. There should be a more convenient way. Is there?
Of course you have to add JavamailStoreMailRepository code, too. You can do this by putting source files directly into the src/java directory of the trunk. Another way, that has the advantage of not touching your working copy, is to build a jar of the code first and add it like the javamail store implementation explained above.