BuildSar
From SharemailWiki
Building a james.sar package containing additional jar files is pretty straightforward. A sar package is simply a zip archive with a special layout. The layout is important, luckily we can get the correct layout simply by expanding the james.sar package that comes with the James download from the Apache Software foundation http://james.apache.org/download.cgi. The steps are as follows:
- Create a directory in which to expand the package. I create a sub-directory in the apps directory in the root of the James distribution. On my system this is ~/downloads/James/james-2.3.2/apps, and I create a folder called sar-build
- Copy the james.sar file from the directory folder in the sar-build directory
- cd into the sar-build directory and unpack the package with unzip james.sar you will now have three further directories: conf; META-INF and SAR-INF.
- Copy the downloaded SharemailMailets.jar https://sourceforge.net/projects/jalls/files/ file to SAR-INF/lib
- In the sar-build folder create a new package with zip -r james.sar *
- Backup the original james.sar file in the apps directory in the root of the James distribution (I rename in to james.sar.dist) and copy the new sar file to the apps directory
Next time you start James the new jar files will be loaded and available for use.
The steps above are all done on a Linux system . I'm sure that the same can be achieved on other OSes, but you'll have to figure out what needs to be changed.
