Subject: [bug#67846] [PATCH] gnu: Add davmail

From: Lars Rustand <[email-masked]>
Date: Fri, 15 Dec 2023 21:09:37 +0100

Date: Fri, 15 Dec 2023 20:46:13 +0100
User-agent: mu4e 1.10.8; emacs 30.0.50
Change-Id: Iaf8a600e424488b87635cd97e0ea1b0f0efcdb5f
base-commit: 06f25a9a85be1bbe7a709e58ce41c1a834e5f1ae
---
 gnu/packages/mail.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 1676acf2f9..66e12964da 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -116,6 +116,7 @@ (define-module (gnu packages mail)
   #:use-module (gnu packages guile-xyz)
   #:use-module (gnu packages haskell-xyz)
   #:use-module (gnu packages icu4c)
+  #:use-module (gnu packages java)
   #:use-module (gnu packages kerberos)
   #:use-module (gnu packages language)
   #:use-module (gnu packages libbsd)
@@ -174,6 +175,7 @@ (define-module (gnu packages mail)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system emacs)
   #:use-module (guix build-system glib-or-gtk)
@@ -4999,3 +5001,32 @@ (define-public aerc
     ;; <https://lists.sr.ht/~rjarry/aerc-devel/%3Cb5cb213a7d0c699a886971658c2476
     ;; 1073eb2391%40disroot.org%3E>
     (license license:gpl3+)))
+
+(define-public davmail
+  (let ((revision "3464"))
+    (package
+      (name "davmail")
+      (version "6.2.0")
+      (source
+       (origin
+         (method url-fetch)
+         (uri (string-append
+               "https://downloads.sourceforge.net/project/davmail/davmail/"
+               version "/davmail-" version "-" revision ".zip"))
+         (sha256
+          (base32 "075yip53z29jnf4bi1iw6j60cdicz6hd017nl56991f1vz943aqm"))))
+      (build-system copy-build-system)
+      (arguments
+       `(#:install-plan '((".." "share/davmail"))))
+      (native-inputs (list unzip))
+      (propagated-inputs (list openjdk))
+      (home-page "https://davmail.sourceforge.net/")
+      (synopsis
+       "POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway")
+      (description
+       "Ever wanted to get rid of Outlook? DavMail is a
+POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway allowing users to use any
+mail/calendar client (e.g. Thunderbird with Lightning or Apple iCal) with an
+Exchange server, even from the internet or behind a firewall through Outlook
+Web Access.")
+      (license license:gpl2))))

--
2.41.0