It's almost entirely new files... I copied over the underlying file repository code from Avalon into a new package in James (org.apache.james.mailrepository.filepair), removed the numbering, and added logic during initialization to unnumber files as best it can. It's really a pretty minimal change as everyone suspected. It logs all the file renaming it does (successful and unsuccessful).
So attached is the very small diff to james-config.xml that changes the two places where the underlying file repository implementation was specified, and a zip of the source code to put into src/java/org/apache/james/mailrepository/filepair.
To test, I was using the old file repositories, would deliver messages, add accounts, restart, repeat this cycle a few times so messages would get lost several times. Then I changed config to point to the new implementation, and all those lost messages are found. Hopefully though people with much larger installations can test to make sure the migration works for them.
--
Serge Knystautas
Loki Technologies
http://www.lokitech.com/
filepair.zip
Description: Zip compressed data
Index: james-config.xml =================================================================== RCS file: /home/cvs/jakarta-james/src/conf/james-config.xml,v retrieving revision 1.38 diff -w -b -r1.38 james-config.xml 666c667 < <repository class="org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Object_Repository"> --- > <repository >class="org.apache.james.mailrepository.filepair.File_Persistent_Object_Repository"> 680c681 < <repository class="org.apache.avalon.cornerstone.blocks.masterstore.File_Persistent_Stream_Repository"> --- > <repository >class="org.apache.james.mailrepository.filepair.File_Persistent_Stream_Repository">
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
