[ 
http://issues.apache.org/jira/browse/JAMES-461?page=comments#action_12413699 ] 

Joachim Draeger commented on JAMES-461:
---------------------------------------



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

Index: B:/java/jamesws/JamesSecondTrunk/build.xml
===================================================================
--- B:/java/jamesws/JamesSecondTrunk/build.xml  (revision 409878)
+++ B:/java/jamesws/JamesSecondTrunk/build.xml  (working copy)
@@ -503,6 +503,7 @@
           <include name="${excalibur-datasource.jar}"/>
           <include name="${javax-activation.jar}"/>
           <include name="${javax-mail.jar}"/>
+          <include name="${javamaildir.jar}"/>
           <include name="${commons-dbcp.jar}"/>
           <include name="${commons-pool.jar}"/>
           <include name="${bcmail.jar}"/>

Index: B:/java/jamesws/JamesSecondTrunk/include.properties
===================================================================
--- B:/java/jamesws/JamesSecondTrunk/include.properties (revision 409878)
+++ B:/java/jamesws/JamesSecondTrunk/include.properties (working copy)
@@ -42,6 +42,9 @@
 # ----- Activation -----
 javax-activation.jar=${activation.id}.jar
 
+# ----- javamaildir
+javamaildir.jar=javamaildir-0.6.2.jar
+
 # ----- DNS -----
 dns.jar=dnsjava-2.0.1.jar

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.


> Javamail Store based MailRepository support (was: Maildir support)
> ------------------------------------------------------------------
>
>          Key: JAMES-461
>          URL: http://issues.apache.org/jira/browse/JAMES-461
>      Project: James
>         Type: New Feature

>   Components: MailStore & MailRepository
>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara
>      Fix For: 2.4.0
>  Attachments: JavamailStoreMailRepository.java, 
> JavamailStoreMailRepository2.zip, MaildirMailRepository.java, 
> MaildirMailRepository.java, UIDPlusFolderMailRepository1.zip
>
> Add support for Javamail Stores as MailRepositories

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to