Discussion:
[Davmail-users] Portability And Multiple DavMail.profiles.
David Heath
2017-05-23 16:47:09 UTC
Permalink
Hello, I am trying to use DavMail with a portable Java runtime and
Thunderbird. I have made an executable with Launch4J to run davmail.jar
with the portable Java runtime but I need to load multiple davmail.profiles
for different servers. Is there a way to provide profile arguments to the
.jar like davmail.exe, or perhaps simply specify the Java location when
running the portable executables? It seems that davmail.jar runs either
davmail.exe or davmail64.exe (I'm not sure which). I need this to run on
Windows and I have been using version 4.8.0.

I will continue working on this but it would be great if someone could
point me in the right direction since I am not very familiar with Java or
programming.
David Heath
2017-05-23 20:04:03 UTC
Permalink
Thank you for sharing that link!

The method to provide a properties file in Windows seems basically the same
as in Linux, but providing multiple profiles causes the program to simply
use the last profile specified. If I run two instances of the the program
(davmail.jar), the second one cannot bind to the same ports as the first.
For now, I will try configuring each instance to use different ports
internally.

It would be nice if there were a way to run multiple server connections on
the same ports, but this method should work for my needs.




---------- Forwarded message ----------
From: Geert Stappers <***@stappers.nl>
Date: 23 May 2017 at 13:58
Subject: Re: [Davmail-users] Portability And Multiple DavMail.profiles.
Post by David Heath
Hello, I am trying to use DavMail with a portable Java runtime and
Thunderbird. I have made an executable with Launch4J to run davmail.jar
with the portable Java runtime but I need to load multiple
davmail.profiles
Post by David Heath
for different servers. Is there a way to provide profile arguments to the
.jar like davmail.exe, or perhaps simply specify the Java location when
running the portable executables? It seems that davmail.jar runs either
davmail.exe or davmail64.exe (I'm not sure which). I need this to run on
Windows and I have been using version 4.8.0.
I will continue working on this but it would be great if someone could
point me in the right direction since I am not very familiar with Java or
programming.
I think original poster is looking for
how to provide a properties file for davmail on Windows

http://davmail.sourceforge.net/serversetup.html shows an example for Linux
davmail.sh davmail.properties

I don't know if it is also that easy on MS Windows


Groeten
Geert Stappers
--
Leven en laten leven

------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

Loading...