You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Sami Siren <sa...@hakulaite.net> on 2002/11/19 21:48:32 UTC

fetchdavmail

hi again,

attached you'll find a patch made against the sources in 
james-2.1a1-cvs-src.zip.
by following these steps you can build a JAMES distro with fetchdavmail.

1. unpack james source package to folder named  ||21a1orig

2. apply the patch: |patch -p0 < <patch-file-name> |

3. download the JDAVMail package from
http://jdavmail.sourceforge.net (I used version JDAVMail-0.9.002.zip).

4. unzip the package and copy files jdom.jar,commons-logging.jar and
JDAVMail.0.9.002.jar to 21a1orig/lib -folder.

5. copy or symlink phoenix binary distribution to 21a1orig/phoenix-bin 
folder

6. compile JAMES

7. start JAMES

8. configure JAMES to enable fetchdavmail and stick in your favourite 
settings
(or use your existing config.xml and copy-paste the following block)

    <fetchdavmail enabled="true" maxmessages="10">
        <!-- You can have as many fetch tasks as you want, but each must 
have a -->
        <!-- unique name by which it identified -->
        <fetch name="hotmail-1">
            <!-- Account login username -->
            <user>hotmail-username</user>
            <!-- Account login password -->
            <password>hotmail-password</password>
            <!-- How frequently this account is checked - in 
milliseconds. 600000 is every ten minutes -->
            <interval>600000</interval>
            <!-- Where should the fetched messages be sent. -->
            <destaddress>email-address of destination mail box</destaddress>
        </fetch>
    </fetchdavmail>

9. restart JAMES

I haven't done any real testing but it seems to work ok, so use at your 
own risk :)

--
 Sami Siren