Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Working mail and calendar with Exchange 2007
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kiksen
Guru
Guru


Joined: 24 Jun 2002
Posts: 401
Location: Denmark

PostPosted: Thu Aug 27, 2009 6:23 am    Post subject: Working mail and calendar with Exchange 2007 Reply with quote

Hi.

For a long time I've been looking for a solution that actually works... and now I found one!
It's available here: http://davmail.sourceforge.net/
I'm using Thunderbird/Lightning as my client, but as long as the calendar supports caldav it should work.
Just thought I would share :)

Hope this will ease the frustration level for someone else

[edit] There's no ebuild, but if anyone is interested I could start working on one...[/edit]

/Kiksen
Back to top
View user's profile Send private message
migel
n00b
n00b


Joined: 01 Sep 2006
Posts: 24

PostPosted: Thu Oct 08, 2009 6:24 am    Post subject: Reply with quote

Hello!

I interested in the ebuild for davmail.
If you have already fininished, could you,pls share it?

Thanks
Back to top
View user's profile Send private message
kiksen
Guru
Guru


Joined: 24 Jun 2002
Posts: 401
Location: Denmark

PostPosted: Thu Oct 08, 2009 6:33 am    Post subject: Reply with quote

Hi.

I haven't got an ebuild ready, but will start working on it - I'll post it here as soon as it looks ok

/kiksen
Back to top
View user's profile Send private message
malern
Apprentice
Apprentice


Joined: 19 Oct 2006
Posts: 170

PostPosted: Sat Jan 09, 2010 12:14 pm    Post subject: Reply with quote

I'd also be interested in an ebuild for this. Have you had a chance to start working on it?
Back to top
View user's profile Send private message
dirtbag
Guru
Guru


Joined: 18 Feb 2003
Posts: 508
Location: NC

PostPosted: Thu May 20, 2010 11:06 pm    Post subject: Reply with quote

its not done yet?!? ;)

-db
Back to top
View user's profile Send private message
polu
n00b
n00b


Joined: 02 Mar 2007
Posts: 16

PostPosted: Fri May 21, 2010 12:23 pm    Post subject: Reply with quote

Wow, I never knew this existed, looks like a very promising project. :D
Back to top
View user's profile Send private message
kiksen
Guru
Guru


Joined: 24 Jun 2002
Posts: 401
Location: Denmark

PostPosted: Wed May 26, 2010 7:36 am    Post subject: Reply with quote

(Un)fortunately my work situation has changed to be Exchange-free, so my need for davmail is no longer there. I doubt I'll find the time to work on an ebuild in the near future.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Mon Aug 30, 2010 6:56 am    Post subject: Reply with quote

I made up the following ebuild. And I have checked that receiving/sending mail from thunderbird works for me on amd64 (tested for the last 10min :P). I haven't tested the calendar or ldap.
Code:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: mail-client/davmail-3.8.2 $

EAPI=3
inherit eutils

if use x86; then
   MY_P="${P/$PN/$PN-linux-x86}-1385"
elif use amd64; then
   MY_P="${P/$PN/$PN-linux-x86_64}-1385"
fi
DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="mirror://sourceforge.net/davmail/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

DEPEND="dev-java/sun-jre-bin:1.6"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_install() {
   cd "${S}"
   # Fix the script BASE=
   sed -i -e "s@BASE=.*@BASE=/opt/davmail@" davmail.sh
   dodir "/opt/$PN"
   cp -a * "${D}/opt/$PN"
   dodir "/opt/bin"
   dosym "/opt/$PN/davmail.sh" "/opt/bin/davmail.sh"
   echo "[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=DavMail Gateway
Comment=Exchange connector
Icon=x
Terminal=false
Categories=Office;Email;
Exec=/opt/bin/davmail.sh" > "davmail.desktop"
   domenu davmail.desktop
}

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
onlinefloh
n00b
n00b


Joined: 02 May 2009
Posts: 30

PostPosted: Tue Aug 31, 2010 8:14 am    Post subject: Reply with quote

well done, works quite fine so far on my end.

However, portage seemed to have problems with the sourceforge SRC_URI here, so i had to change the upper part a little.

Code:

if use x86; then
   MY_P="${P/$PN/$PN-linux-x86}-1385"
    MY_ARCH="x86"
elif use amd64; then
   MY_P="${P/$PN/$PN-linux-x86_64}-1385"
    MY_ARCH="x86_64"
fi
DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${PN}-linux-${MY_ARCH}-${PV}-1385.tgz"

That way it works here as well. I don't like having the revision number hardcoded in the SRC-URI though, but didn't come up with a better solution.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Aug 31, 2010 8:37 am    Post subject: Reply with quote

onlinefloh wrote:
well done, works quite fine so far on my end.

However, portage seemed to have problems with the sourceforge SRC_URI here, so i had to change the upper part a little.

Code:

if use x86; then
   MY_P="${P/$PN/$PN-linux-x86}-1385"
    MY_ARCH="x86"
elif use amd64; then
   MY_P="${P/$PN/$PN-linux-x86_64}-1385"
    MY_ARCH="x86_64"
fi
DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="http://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${PN}-linux-${MY_ARCH}-${PV}-1385.tgz"

That way it works here as well. I don't like having the revision number hardcoded in the SRC-URI though, but didn't come up with a better solution.
That is very strange. Maybe I need to inherit something? It didn't give any errors in mine since I had already downloaded the file (in order to create the ebuild) and placed it in distfiles.

I will check the mirror:// syntax and update the ebuild later. Thanks for the feedback!

Can you also let me know on what ARCH you tried this? I only have an amd64 machine, so the x86 ARCH is yet untested on my side.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Fri Sep 03, 2010 1:24 pm    Post subject: Reply with quote

Ok. I have looked it up and it seems what throws off that mirror:// syntax is the fact that the package has very peculiar versioning. If I make the package have version 3.8.2-1385 (first of all, maybe this is not even valid!) then it will still fail with the mirror syntax since the path to the file will have only 3.8.2 and only the final file has the 1385 number.

So, your solution seems the best right now. :) And by the way, a new version is out. Just updating the ebuild should work I guess ;) This new ebuild is as follows:
Code:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: mail-client/davmail-3.8.3 $

EAPI=3
inherit eutils

MY_VER=1415
if use x86; then
   MY_P="${P/$PN/$PN-linux-x86}-${MY_VER}"
elif use amd64; then
   MY_P="${P/$PN/$PN-linux-x86_64}-${MY_VER}"
fi
DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="mirror://sourceforge/davmail/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

DEPEND="dev-java/sun-jre-bin:1.6"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_install() {
   cd "${S}"
   # Fix the script BASE=
   sed -i -e "s@BASE=.*@BASE=/opt/davmail@" davmail.sh
   dodir "/opt/$PN"
   cp -a * "${D}/opt/$PN"
   dodir "/opt/bin"
   dosym "/opt/$PN/davmail.sh" "/opt/bin/davmail.sh"
   echo "[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=DavMail Gateway
Comment=Exchange connector
Icon=x
Terminal=false
Categories=Office;Email;
Exec=/opt/bin/davmail.sh" > "davmail.desktop"
   domenu davmail.desktop
}


Edit (04 Sep 2010): Updated ebuild to use mirror://sourceforge/. Thanks to gimpel :D
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/


Last edited by ppurka on Sat Sep 04, 2010 2:40 pm; edited 2 times in total
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sat Sep 04, 2010 11:40 am    Post subject: Reply with quote

Try mirror://sourceforge/... (without the .net)
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sat Sep 04, 2010 2:36 pm    Post subject: Reply with quote

gimpel wrote:
Try mirror://sourceforge/... (without the .net)
Awesome! Thanks!! This does fix the download.

I have updated the above ebuild.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
onlinefloh
n00b
n00b


Joined: 02 May 2009
Posts: 30

PostPosted: Tue Sep 14, 2010 2:50 pm    Post subject: Reply with quote

And again a new version ;-)

fixing the obvious ${MY_VER} to 1432 and version to 3.8.4 works fine here.[/code]
Back to top
View user's profile Send private message
akadaedalus
n00b
n00b


Joined: 04 Oct 2010
Posts: 7

PostPosted: Mon Oct 04, 2010 5:08 pm    Post subject: Reply with quote

Just a note that I had to change the dependencies, otherwise it would pull in a JRE while I'm using a JDK.
Code:

DEPEND="virtual/jre:1.6"


Here's hoping that this works w/ Lightning and I finally have desktop notification of my calendar events!
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Oct 05, 2010 12:05 am    Post subject: Reply with quote

akadaedalus wrote:
Just a note that I had to change the dependencies, otherwise it would pull in a JRE while I'm using a JDK.
Code:

DEPEND="virtual/jre:1.6"


Here's hoping that this works w/ Lightning and I finally have desktop notification of my calendar events!
You don't need a full jdk for this. simply a jre works. If you really want a jdk then modify the ebuild as follows:
Code:
|| ( virtual/jre:1.6 virtual/jdk:1.6 )
By the way, version 3.8.5 is available. You can modify teh ebuild name to 3.8.5 and MY_VER to 1480.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Oct 05, 2010 8:26 am    Post subject: Reply with quote

Moved from Desktop Environments to Unsupported Software as it's not in the Portage tree.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2057
Location: United Kingdom

PostPosted: Mon Oct 18, 2010 5:00 pm    Post subject: DavMail ebuild Reply with quote

ppurka, thanks very much for posting your ebuild for DavMail. I updated it for 3.8.5 as you wrote, and it built without problems:

Code:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: mail-client/davmail-3.8.5 $

EAPI=3
inherit eutils

MY_VER=1480
if use x86; then
   MY_P="${P/$PN/$PN-linux-x86}-${MY_VER}"
elif use amd64; then
   MY_P="${P/$PN/$PN-linux-x86_64}-${MY_VER}"
fi
DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="mirror://sourceforge/davmail/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

#DEPEND="dev-java/sun-jre-bin:1.6"
DEPEND="virtual/jre:1.6"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_install() {
   cd "${S}"
   # Fix the script BASE=
   sed -i -e "s@BASE=.*@BASE=/opt/davmail@" davmail.sh
   dodir "/opt/$PN"
   cp -a * "${D}/opt/$PN"
   dodir "/opt/bin"
   dosym "/opt/$PN/davmail.sh" "/opt/bin/davmail.sh"
   echo "[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=DavMail Gateway
Comment=Exchange connector
Icon=x
Terminal=false
Categories=Office;Email;
Exec=/opt/bin/davmail.sh" > "davmail.desktop"
   domenu davmail.desktop
}


I'm using it on my ~amd64 installation and it works well. This has been really helpful to me at work.

However, DavMail installs a single properties file (~/.davmail.properties), and a single script file (davmail.sh):

Code:
fitzcarraldo@meshedgedx ~ $ ls -la /opt/bin/davmail.sh
lrwxrwxrwx 1 root root 23 Oct 18 10:56 /opt/bin/davmail.sh -> /opt/davmail/davmail.sh
fitzcarraldo@meshedgedx ~ $ cat /opt/davmail/davmail.sh
# Ubuntu setup instructions :
# install java :
# sudo apt-get install sun-java6-bin
# launch davmail :
BASE=/opt/davmail
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1
fitzcarraldo@meshedgedx ~ $


For people who need to access simultaneously two OWA accounts, it is possible to hack things and run two instances of DavMail simultaneously as follows:

1. Create /opt/bin/davmail-account1.sh containing:

Code:
BASE=/opt/davmail
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -Duser.home=/home/fitzcarraldo/.davmail-account1 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1


2. Create /opt/bin/davmail-account2.sh containing:

Code:
BASE=/opt/davmail
for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done
java -Duser.home=/home/fitzcarraldo/.davmail-account2 -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1


3. Create two separate properties files as follows:

Code:
fitzcarraldo@meshedgedx /opt/bin $ cd
fitzcarraldo@meshedgedx ~ $ cp .davmail.properties ./.davmail-account1/
fitzcarraldo@meshedgedx ~ $ cp .davmail.properties ./.davmail-account2/


and change the values of davmail.popPort, davmail.imapPort, davmail.smtpPort, davmail.caldavPort, davmail.ldapPort, davmail.defaultDomain and davmail.url to be different between the two files.

4. Launch the two scripts:

Code:
fitzcarraldo@meshedgedx ~ $ /opt/bin/davmail-account1.sh
fitzcarraldo@meshedgedx ~ $ /opt/bin/davmail-account2.sh


5. Launch Thunderbird and add two new Webmail accounts, each with a POP mail server and SMTP server with the appropriate port values as specified in the two accounts' .davmail.properties files.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Oct 19, 2010 3:14 pm    Post subject: Reply with quote

Fitzcarraldo thanks for that guide! I am sure it will be helpful to many others. It seems to be one of those "just works" kind of software (quite a rare breed) :)
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Thev00d00
Retired Dev
Retired Dev


Joined: 10 Dec 2009
Posts: 3
Location: UK

PostPosted: Mon Nov 15, 2010 7:35 pm    Post subject: Reply with quote

Guys,

I've added an ebuild for 3.4.6 to the Sabayon overlay.

Link
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Tue Nov 16, 2010 12:53 am    Post subject: Reply with quote

Thev00d00 wrote:
Guys,

I've added an ebuild for 3.4.6 to the Sabayon overlay.

Link
Can you make the DEPEND as shown in this post? This way, people won't need to install a jre if they already have a jdk installed.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Mon Nov 29, 2010 1:36 pm    Post subject: Reply with quote

New ebuild

Updating the ebuild every time the version increased was getting annoying. So, I got rid of $MY_VER in the ebuild and instead put that information in the $PV. So, the ebuild is now named as davmail-3.x.x_pxxxx.ebuild, where each x denotes a number. Now, just renaming the ebuild with the correct version numbers should work.

Here is the ebuild for davmail-3.8.7_p1558. It uses the davmail.desktop and davmail.png from the sabayon overlay:
Code:
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: mail-client/davmail-3.8.7 $

EAPI=3
inherit eutils

use x86     && MY_P="${PN}-linux-x86-${PV/_p/-}"
use amd64 && MY_P="${PN}-linux-x86_64-${PV/_p/-}"

DESCRIPTION="POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway"
HOMEPAGE="http://davmail.sourceforge.net/"
SRC_URI="mirror://sourceforge/davmail/${MY_P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""

DEPEND="|| ( virtual/jre:1.6 virtual/jdk:1.6 )"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${MY_P}"

src_install() {
   cd "${S}"
   # Fix the script BASE=
   sed -i -e "s@BASE=.*@BASE=/opt/davmail@" davmail.sh

   dodir "/opt/$PN"
   cp -a * "${D}/opt/$PN"
   dodir "/opt/bin"
   dosym "/opt/$PN/davmail.sh" "/opt/bin/davmail.sh"

   domenu "${FILESDIR}/davmail.desktop"
   doicon "${FILESDIR}/davmail.png"
}

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2312
Location: Adendorf, Germany

PostPosted: Mon Dec 06, 2010 3:15 pm    Post subject: Reply with quote

It works perfectly! Thank you very much, this software should be in the tree.
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2312
Location: Adendorf, Germany

PostPosted: Wed Jan 12, 2011 7:45 am    Post subject: Reply with quote

I have opened a new bug nr 351417 for davmail ebuilds, and referred to this thread there.
_________________
Edited 220,176 times by Yamakuzure
Back to top
View user's profile Send private message
acarstoiu
Apprentice
Apprentice


Joined: 20 Oct 2004
Posts: 197

PostPosted: Mon Jul 11, 2011 9:13 am    Post subject: Reply with quote

I know it's an old topic, but here is my question.

On DavMail's site, there are instructions as how to configure a Mozilla Thunderbird to work with it. But has anyone managed or at least tried to make it work with KDE's PIM, more specifically Akonadi resources?
I have lost half a day trying to make it work. Akonadi supports defining CalDAV, CardDAV and IMAP agents (I haven't tried the LDAP part, since I don't mind it yet), apparently they succeed in connecting to the DavMail gateway, but they do not supply any data! The only thing I get are some tray messages stating "unknown/incorrect collection name", both for card and calendar collections and for IMAP e-mails.

So, any ideas :?:
Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum