gnu: gpgme: Update to 1.14.0.
[jackhill/guix/guix.git] / gnu / packages / mail.scm
CommitLineData
a661e420 1;;; GNU Guix --- Functional package management for GNU
98dd9ff8 2;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
ee2b2d2f 3;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
29a7c98a 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
98e9e22f 5;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com>
f115d817 6;;; Copyright © 2014, 2019 Julien Lepiller <julien@lepiller.eu>
66cc3ab2 7;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
17dd4329 8;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
829785c1 9;;; Copyright © 2015, 2016, 2018 Eric Bavier <bavier@member.fsf.org>
2e88d113 10;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
b93b7b25 11;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
34dd26af 12;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
8a75c589 13;;; Copyright © 2016 Al McElrath <hello@yrns.org>
823e2ed4 14;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
e90819c4 15;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
99404fff 16;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
3f81ca32 17;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
3c986a7d 18;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
24262239 19;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
f8072794 20;;; Copyright © 2016, 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
5d87088c 21;;; Copyright © 2016 John Darrington <jmd@gnu.org>
8e020519 22;;; Copyright © 2016, 2018 Marius Bakke <mbakke@fastmail.com>
3e9750c3 23;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
6800c797 24;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
cda8250b 25;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
7ff2159b 26;;; Copyright © 2017, 2018, 2020 Rene Saavedra <pacoon@protonmail.com>
84ce7c5a 27;;; Copyright © 2018, 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
c115a1c8 28;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
c315d370 29;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
c107e50a 30;;; Copyright © 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
82680f80 31;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
24a3eb90 32;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
9ec27360 33;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
660611e5 34;;; Copyright © 2020 Eric Brown <ecbrown@ericcbrown.com>
19ca9828 35;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
3866a9ae 36;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
a661e420
LC
37;;;
38;;; This file is part of GNU Guix.
39;;;
40;;; GNU Guix is free software; you can redistribute it and/or modify it
41;;; under the terms of the GNU General Public License as published by
42;;; the Free Software Foundation; either version 3 of the License, or (at
43;;; your option) any later version.
44;;;
45;;; GNU Guix is distributed in the hope that it will be useful, but
46;;; WITHOUT ANY WARRANTY; without even the implied warranty of
47;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48;;; GNU General Public License for more details.
49;;;
50;;; You should have received a copy of the GNU General Public License
51;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52
1fdd3ee2 53(define-module (gnu packages mail)
59a43334 54 #:use-module (gnu packages)
1e1142d8 55 #:use-module (gnu packages admin)
b0eb2af2 56 #:use-module (gnu packages aspell)
d983a14f 57 #:use-module (gnu packages autotools)
e8435c4d 58 #:use-module (gnu packages backup)
938078a3 59 #:use-module (gnu packages base)
ee886454 60 #:use-module (gnu packages bash)
f8ae32a2 61 #:use-module (gnu packages bison)
fc9a93cb 62 #:use-module (gnu packages calendar)
ac257f12 63 #:use-module (gnu packages check)
938078a3 64 #:use-module (gnu packages compression)
944a5cdd 65 #:use-module (gnu packages crypto)
f58f767b 66 #:use-module (gnu packages curl)
4fd6bf53 67 #:use-module (gnu packages cyrus-sasl)
81ce19f4 68 #:use-module (gnu packages databases)
255d1bbe 69 #:use-module (gnu packages dbm)
d983a14f 70 #:use-module (gnu packages dejagnu)
8a3741e6 71 #:use-module (gnu packages django)
8b53366c 72 #:use-module (gnu packages dns)
938078a3 73 #:use-module (gnu packages docbook)
7a6213cb 74 #:use-module (gnu packages documentation)
d2938d59 75 #:use-module (gnu packages emacs)
e8435c4d 76 #:use-module (gnu packages enchant)
938078a3 77 #:use-module (gnu packages gdb)
aa20b004 78 #:use-module (gnu packages gettext)
938078a3 79 #:use-module (gnu packages ghostscript)
d2938d59 80 #:use-module (gnu packages glib)
e8435c4d 81 #:use-module (gnu packages gnome)
524e1df6 82 #:use-module (gnu packages gnupg)
152ffe7c 83 #:use-module (gnu packages groff)
d6e941bc 84 #:use-module (gnu packages gsasl)
e8435c4d 85 #:use-module (gnu packages gtk)
1ffa7090 86 #:use-module (gnu packages guile)
0791437f 87 #:use-module (gnu packages guile-xyz)
f8ae32a2 88 #:use-module (gnu packages flex)
9ec27360 89 #:use-module (gnu packages haskell-xyz)
9e2a49db 90 #:use-module (gnu packages icu4c)
b0eb2af2 91 #:use-module (gnu packages kerberos)
c6872990 92 #:use-module (gnu packages language)
e8435c4d 93 #:use-module (gnu packages libcanberra)
8b53366c 94 #:use-module (gnu packages libevent)
d6e941bc 95 #:use-module (gnu packages libidn)
aef4c482 96 #:use-module (gnu packages libunistring)
84ce7c5a 97 #:use-module (gnu packages libunwind)
d983a14f 98 #:use-module (gnu packages linux)
99b23fee 99 #:use-module (gnu packages lsof)
152ffe7c 100 #:use-module (gnu packages lua)
d983a14f 101 #:use-module (gnu packages m4)
938078a3 102 #:use-module (gnu packages man)
1ffa7090 103 #:use-module (gnu packages ncurses)
938078a3 104 #:use-module (gnu packages networking)
b0eb2af2 105 #:use-module (gnu packages openldap)
c315d370 106 #:use-module (gnu packages onc-rpc)
66cc3ab2 107 #:use-module (gnu packages pcre)
13f04f48 108 #:use-module (gnu packages perl)
f115d817 109 #:use-module (gnu packages perl-check)
eff3a9b2 110 #:use-module (gnu packages perl-web)
938078a3 111 #:use-module (gnu packages pkg-config)
3919a31a 112 #:use-module (gnu packages python)
3a98604f 113 #:use-module (gnu packages python-check)
5c4332e5 114 #:use-module (gnu packages python-crypto)
1b2f753d 115 #:use-module (gnu packages python-web)
44d10b1f 116 #:use-module (gnu packages python-xyz)
9e2a49db 117 #:use-module (gnu packages rdf)
1ffa7090 118 #:use-module (gnu packages readline)
938078a3 119 #:use-module (gnu packages ruby)
d2938d59 120 #:use-module (gnu packages search)
224b1c83 121 #:use-module (gnu packages serialization)
1bd3f849 122 #:use-module (gnu packages samba)
6cf27c89 123 #:use-module (gnu packages screen)
9d0c291e 124 #:use-module (gnu packages sphinx)
cd0322a3 125 #:use-module (gnu packages sqlite)
b0eb2af2 126 #:use-module (gnu packages tcl)
938078a3 127 #:use-module (gnu packages texinfo)
33dc54b0 128 #:use-module (gnu packages time)
a7fd7b68 129 #:use-module (gnu packages tls)
eff3a9b2 130 #:use-module (gnu packages version-control)
938078a3 131 #:use-module (gnu packages w3m)
be0c5733 132 #:use-module (gnu packages web)
7c16151a 133 #:use-module (gnu packages webkit)
3d88855d 134 #:use-module (gnu packages xdisorg)
e8435c4d 135 #:use-module (gnu packages xorg)
938078a3 136 #:use-module (gnu packages xml)
7e3b537c 137 #:use-module ((guix licenses) #:prefix license:)
a661e420
LC
138 #:use-module (guix packages)
139 #:use-module (guix download)
f8ae32a2 140 #:use-module (guix git-download)
29a7c98a 141 #:use-module (guix utils)
681a6588 142 #:use-module (guix build-system gnu)
e3a47031 143 #:use-module (guix build-system guile)
ebda902f 144 #:use-module (guix build-system perl)
24262239 145 #:use-module (guix build-system python)
98dd9ff8
LC
146 #:use-module (guix build-system trivial)
147 #:use-module (srfi srfi-1)
148 #:use-module (ice-9 match))
a661e420 149
19ca9828
MC
150(define-public anubis
151 (package
152 (name "anubis")
153 ;; This 4.2.90 alpha release adds support for Guile 3 and has fixes for
154 ;; other issues.
155 (version "4.2.90")
156 (source
157 (origin
158 (method url-fetch)
159 (uri (string-append "https://alpha.gnu.org/gnu/anubis/anubis-"
160 version ".tar.gz"))
161 (sha256
162 (base32
163 "0dvm6acl32dv8bixx9z50gzwfp6kj4kxnn1j3dcwjlp7sasjp41s"))))
164 (build-system gnu-build-system)
165 (native-inputs
166 `(("automake" ,automake)
167 ("autoconf" ,autoconf)
168 ("gettext" ,gettext-minimal)
169 ("m4" ,m4))) ;for the test suite
170 (inputs
171 `(("gdbm" ,gdbm)
172 ("gnutls" ,gnutls)
173 ("gpgme" ,gpgme)
174 ("gsasl" ,gsasl)
175 ("guile" ,guile-3.0)
176 ("libgcrypt" ,libgcrypt) ;gnutls support depends on libgcrypt
177 ("libgpg-error" ,libgpg-error)))
178 (outputs '("out" "debug"))
179 (synopsis "SMTP message submission daemon")
180 (description "Anubis is a daemon that sits between the Mail User
181Agent (MUA) and the Mail Transfer Agent (MTA). When a mail is sent by a user
182in the MUA, it is first passed to Anubis, which performs additional processing
183to the message before passing it on for delivery by the MTA. Anubis may, for
184example, modify the message headers or body, or encrypt or sign the message.")
185 (home-page "https://www.gnu.org/software/anubis/manual/")
7e3b537c 186 (license license:gpl3+)))
19ca9828 187
a661e420
LC
188(define-public mailutils
189 (package
190 (name "mailutils")
c28f242b 191 (version "3.10")
a661e420
LC
192 (source (origin
193 (method url-fetch)
194 (uri (string-append "mirror://gnu/mailutils/mailutils-"
20a3df0f 195 version ".tar.xz"))
a661e420
LC
196 (sha256
197 (base32
c28f242b 198 "17smrxjdgbbzbzakik30vj46q4iib85ksqhb82jr4vjp57akszh9"))))
a661e420
LC
199 (build-system gnu-build-system)
200 (arguments
98dd9ff8 201 `(#:phases
de75f0b1 202 (modify-phases %standard-phases
baa6790b 203 (add-before 'check 'prepare-test-suite
de75f0b1
EF
204 (lambda _
205 ;; Use the right file name for `cat'.
206 (substitute* "testsuite/lib/mailutils.exp"
207 (("/bin/cat")
208 (which "cat")))
14253017 209
43987c97 210 ;; Tests try to invoke 'mda' such that it looks up the
de75f0b1
EF
211 ;; 'root' user, which does not exist in the build
212 ;; environment.
7cb77b78
LC
213 (substitute* '("mda/mda/tests/testsuite"
214 "mda/lmtpd/tests/testsuite")
de75f0b1
EF
215 (("root <") "nobody <")
216 (("spool/root") "spool/nobody")
217 (("root@localhost") "nobody@localhost"))
14253017 218
de75f0b1
EF
219 ;; The 'pipeact.at' tests generate a shell script; make
220 ;; sure it uses the right shell.
221 (substitute* '("sieve/tests/testsuite"
222 "mh/tests/testsuite")
223 (("#! /bin/sh")
224 (string-append "#!" (which "sh"))))
14253017 225
de75f0b1
EF
226 (substitute* "mh/tests/testsuite"
227 (("moreproc: /bin/cat")
228 (string-append "moreproc: " (which "cat"))))
14253017 229
de75f0b1
EF
230 ;; XXX: The comsatd tests rely on being able to open
231 ;; /dev/tty, but that gives ENODEV in the build
232 ;; environment. Thus, ignore test failures here.
233 (substitute* "comsat/tests/Makefile.in"
234 (("\\$\\(SHELL\\) \\$\\(TESTSUITE\\)" all)
235 (string-append "-" all)))
14253017 236
c28f242b
TGR
237 ;; XXX: The ‘moderator: program discard’ test does not specify
238 ;; an explicit From: but does expect an exact match. But why are
239 ;; all other tests unaffected?
240 (substitute* "sieve/tests/testsuite"
241 (("gray@")
242 "nixbld@"))
243
baa6790b
LC
244 ;; 'frm' tests expect write access to $HOME.
245 (setenv "HOME" (getcwd))
246
247 ;; Avoid the message "I'm going to create the standard MH path
248 ;; for you", which would lead to one test failure (when diffing
249 ;; stdout of 'fmtcheck'.)
250 (call-with-output-file ".mh_profile"
251 (lambda (port)
252 (format port "Path: ~a/Mail-for-tests~%"
253 (getcwd))))
254
de75f0b1
EF
255 #t)))
256 ;; TODO: Add `--with-sql'.
98dd9ff8
LC
257 #:configure-flags
258 (list "--sysconfdir=/etc"
ac3b4b12 259
98dd9ff8
LC
260 ;; Add "/X.Y" to the installation directory.
261 (string-append "--with-guile-site-dir="
262 (assoc-ref %outputs "out")
263 "/share/guile/site/"
264 ,(match (assoc "guile"
265 (package-inputs this-package))
266 (("guile" guile)
267 (version-major+minor
268 (package-version guile))))))
ac3b4b12 269
a661e420 270 #:parallel-tests? #f))
3f3c0ab4 271 (native-inputs
24a3eb90 272 `(("perl" ,perl) ;for 'gylwrap'
a661e420 273 ("texinfo" ,texinfo)
24a3eb90
VL
274 ("dejagnu" ,dejagnu)))
275 (inputs
276 `(("m4" ,m4)
b6bee63b 277 ("guile" ,guile-3.0)
1f889cac 278 ("gsasl" ,gsasl)
a661e420
LC
279 ("gnutls" ,gnutls)
280 ("ncurses" ,ncurses)
abe5d2dc 281 ("readline" ,readline)
a661e420 282 ("linux-pam" ,linux-pam)
3246cc91 283 ("libltdl" ,libltdl)
aef4c482
TGR
284 ("gdbm" ,gdbm)
285
286 ;; Required for SEARCH CHARSET.
287 ("libiconv" ,libiconv)
288 ("libunistring" ,libunistring)))
6fd52309 289 (home-page "https://mailutils.org")
f50d2669 290 (synopsis "Utilities and library for reading and serving mail")
a661e420 291 (description
79c311b8
LC
292 "GNU Mailutils is a collection of programs for managing, viewing and
293processing electronic mail. It contains both utilities and server daemons
294and all operate in a protocol-agnostic way. The underlying libraries are
295also available, simplifying the addition of mail capabilities to new
296software.")
a661e420
LC
297 (license
298 ;; Libraries are under LGPLv3+, and programs under GPLv3+.
7e3b537c 299 (list license:gpl3+ license:lgpl3+))))
d983a14f 300
b6bee63b 301(define-public guile2.2-mailutils
98dd9ff8
LC
302 (package
303 (inherit mailutils)
b6bee63b 304 (name "guile2.2-mailutils")
98dd9ff8 305 (inputs
b6bee63b 306 `(("guile" ,guile-2.2)
98dd9ff8
LC
307 ,@(alist-delete "guile" (package-inputs mailutils))))))
308
b6bee63b
LC
309(define-public guile3.0-mailutils
310 (deprecated-package "guile3.0-mailutils" mailutils))
311
1e1142d8
TGR
312(define-public nullmailer
313 (package
314 (name "nullmailer")
315 (version "2.2")
316 (source
317 (origin
318 (method url-fetch)
319 (uri (list
320 (string-append "https://untroubled.org/nullmailer/"
321 "nullmailer-" version ".tar.gz")
322 ;; Previous releases are moved to this subdirectory.
323 (string-append "https://untroubled.org/nullmailer/archive/"
324 "nullmailer-" version ".tar.gz")))
325 (sha256
326 (base32 "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq"))))
327 (build-system gnu-build-system)
328 (arguments
329 `(#:configure-flags
330 (list "--enable-tls"
331 "--localstatedir=/var"
332 "--sysconfdir=/etc")
333 #:phases
334 (modify-phases %standard-phases
335 (add-before 'check 'patch-test-FHS-file-names
336 (lambda _
337 (with-directory-excursion "test"
338 (substitute* (list "functions.in"
339 "tests/send")
340 ;; Fix some shebangs later generated on the fly.
341 (("/bin/sh") (which "bash"))))
342 #t))
343 (add-before 'check 'pass-PATH-to-tests
344 ;; ‘runtest’ launches each test through ‘env -’, clearing $PATH. The
345 ;; tests then source ‘functions’, which first demands a working $PATH
346 ;; only to clobber it later. Pass our $PATH to the test environment
347 ;; and don't touch it after that.
348 (lambda _
349 (with-directory-excursion "test"
350 (substitute* "runtests"
351 (("env - bash")
352 (string-append "env - PATH=\"" (getenv "PATH") "\" bash")))
353 (substitute* "functions.in"
354 (("export PATH=.*") "")))
355 #t))
356 (add-before 'check 'delete-failing-tests
357 (lambda _
358 (with-directory-excursion "test/tests"
359 (for-each delete-file
360 (list
361 ;; XXX ‘nullmailer-inject: nullmailer-queue failed: 15’
362 "inject/queue"
363 ;; XXX These require the not-yet-packaged tcpserver.
364 "protocols" "smtp-auth")))
365 #t))
366 (add-before 'install 'skip-install-data-local
367 ;; Don't attempt to install run-time files outside of the store.
368 (lambda _
369 (substitute* "Makefile"
370 ((" install-data-local") ""))
371 #t)))))
372 (native-inputs
373 ;; For tests.
374 `(("daemontools" ,daemontools))) ; for svc
375 (inputs
376 `(("gnutls" ,gnutls)))
377 (home-page "https://untroubled.org/nullmailer/")
378 (synopsis "Simple relay-only mail transfer agent")
379 (description
380 "Nullmailer is a simple replacement @acronym{MTA, Mail Transfer Agent} for
381hosts that receive no local mail and only relay mail to a fixed set of smart
382relays. It's useful for systems such as Web servers that must be able to send
383email notifications, without having to run a full-blown MTA such as sendmail
384or qmail.
385
386Nullmailer is designed to be simple to configure, easy to extend, and secure.
387It requires little ongoing administration. The included @command{sendmail}
388emulator front-end should allow most (if not all) sendmail-compatible programs
389to run without any changes.")
7e3b537c
TGR
390 (license (list license:lgpl2.1+ ; lib/cli++/ (but some files lack headers)
391 license:gpl2+)))) ; everything else
1e1142d8 392
d983a14f
AE
393(define-public fetchmail
394 (package
395 (name "fetchmail")
e063f0cc 396 (version "6.4.8")
271b3c9d
TGR
397 (source
398 (origin
399 (method url-fetch)
400 (uri (string-append "mirror://sourceforge/fetchmail/branch_"
401 (version-major+minor version) "/"
402 "fetchmail-" version ".tar.xz"))
403 (sha256
e063f0cc 404 (base32 "1g893dr3982vrqzxybmflnqfmd1q6yipd9krvxn0avhlrrp97k96"))))
d983a14f
AE
405 (build-system gnu-build-system)
406 (inputs
407 `(("openssl" ,openssl)))
408 (arguments
271b3c9d
TGR
409 `(#:configure-flags
410 (list (string-append "--with-ssl="
a9ef5425 411 (assoc-ref %build-inputs "openssl")))))
447b61d4 412 (home-page "https://www.fetchmail.info/")
ae2189a9 413 (synopsis "Remote-mail retrieval and forwarding utility")
d983a14f
AE
414 (description
415 "Fetchmail is a full-featured, robust, well-documented remote-mail
416retrieval and forwarding utility intended to be used over on-demand
417TCP/IP links (such as SLIP or PPP connections). It supports every
418remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP,
419KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6
420and IPSEC.
421
422Fetchmail retrieves mail from remote mail servers and forwards it via SMTP,
423so it can then be read by normal mail user agents such as mutt, elm
424or BSD Mail. It allows all your system MTA's filtering, forwarding, and
425aliasing facilities to work just as they would on normal mail.")
7e3b537c 426 (license license:gpl2+))) ; most files are actually public domain or x11
13f04f48
AE
427
428(define-public mutt
429 (package
430 (name "mutt")
1f5cc686 431 (version "1.14.6")
13f04f48
AE
432 (source (origin
433 (method url-fetch)
a101b15b 434 (uri (list
a101b15b 435 (string-append "https://bitbucket.org/mutt/mutt/downloads/"
a11237e4
LF
436 "mutt-" version ".tar.gz")
437 (string-append "http://ftp.mutt.org/pub/mutt/mutt-"
438 version ".tar.gz")))
13f04f48
AE
439 (sha256
440 (base32
1f5cc686 441 "0i0q6vwhnb1grimsrpmz8maw255rh9k0laijzxkry6xqa80jm5s7"))
fc1adab1 442 (patches (search-patches "mutt-store-references.patch"))))
13f04f48
AE
443 (build-system gnu-build-system)
444 (inputs
4fd6bf53 445 `(("cyrus-sasl" ,cyrus-sasl)
b0bb0136 446 ("gdbm" ,gdbm)
524e1df6 447 ("gpgme" ,gpgme)
892be267 448 ("libidn2" ,libidn2)
4fd6bf53 449 ("ncurses" ,ncurses)
13f04f48 450 ("openssl" ,openssl)
892be267
IVB
451 ("perl" ,perl)
452 ("sqlite" ,sqlite)))
13f04f48
AE
453 (arguments
454 `(#:configure-flags '("--enable-smtp"
455 "--enable-imap"
456 "--enable-pop"
524e1df6 457 "--enable-gpgme"
b0bb0136 458 "--enable-hcache" ; for header caching
0323fe80 459 "--enable-sidebar"
892be267 460 "--enable-autocrypt"
13f04f48 461 "--with-ssl"
4fd6bf53 462 "--with-sasl"
892be267
IVB
463 "--with-sqlite3" ; required for Autocrypt
464 "--with-idn2" ; recommended for Autocrypt
02d32b19
TGR
465 ;; So that mutt does not check whether the path
466 ;; exists, which it does not in the chroot.
13f04f48
AE
467 "--with-mailpath=/var/mail")))
468 (home-page "http://www.mutt.org/")
469 (synopsis "Mail client")
470 (description
471 "Mutt is a small but very powerful text-based mail client for Unix
472operating systems.")
7e3b537c 473 (license license:gpl2+)))
681a6588 474
7596ddf3 475(define-public neomutt
d54a759d
TGR
476 (package
477 (name "neomutt")
f44c555b 478 (version "20200313")
d54a759d
TGR
479 (source
480 (origin
481 (method git-fetch)
482 (uri (git-reference
b0e7b699 483 (url "https://github.com/neomutt/neomutt")
d54a759d
TGR
484 (commit version)))
485 (file-name (git-file-name name version))
486 (sha256
f44c555b 487 (base32 "1k4k07l6h5krc3fx928qvdq3ssw9fxn95aj7k885xlckd2i1lnb5"))))
d54a759d
TGR
488 (build-system gnu-build-system)
489 (inputs
490 `(("cyrus-sasl" ,cyrus-sasl)
491 ("gdbm" ,gdbm)
492 ("gpgme" ,gpgme)
493 ("ncurses" ,ncurses)
494 ("gnutls" ,gnutls)
495 ("openssl" ,openssl) ; for S/MIME
496 ("perl" ,perl)
497 ("kyotocabinet" ,kyotocabinet)
498 ("libxslt" ,libxslt)
499 ("libidn2" ,libidn2)
500 ("libxml2" ,libxml2)
501 ("lmdb" ,lmdb)
502 ("notmuch" ,notmuch)))
503 (native-inputs
504 `(("automake" ,automake)
505 ("gettext-minimal" ,gettext-minimal)
506 ("pkg-config" ,pkg-config)
507 ("docbook-xsl" ,docbook-xsl)
508 ("docbook-xml" ,docbook-xml-4.2)
509 ("w3m" ,w3m)
510 ("tcl" ,tcl)))
511 (arguments
512 `(#:test-target "test"
513 #:configure-flags
514 (list "--gpgme"
7596ddf3 515
d54a759d
TGR
516 ;; Database, implies header caching.
517 "--disable-tokyocabinet"
518 "--disable-qdbm"
519 "--disable-bdb"
520 "--lmdb"
521 "--kyotocabinet"
54a402dd 522
d54a759d 523 "--gdbm"
54a402dd 524
d54a759d
TGR
525 "--gnutls"
526 "--disable-ssl"
527 "--sasl"
528 (string-append "--with-sasl="
529 (assoc-ref %build-inputs "cyrus-sasl"))
7596ddf3 530
7596ddf3 531
d54a759d
TGR
532 "--smime"
533 "--notmuch"
534 "--disable-idn"
535 "--idn2"
7596ddf3 536
d54a759d
TGR
537 ;; If we do not set this, neomutt wants to check
538 ;; whether the path exists, which it does not
539 ;; in the chroot.
540 "--with-mailpath=/var/mail"
7596ddf3 541
d54a759d
TGR
542 "--with-ui=ncurses"
543 (string-append "--with-ncurses="
544 (assoc-ref %build-inputs "ncurses"))
545 (string-append "--prefix="
546 (assoc-ref %outputs "out"))
547 "--debug")
548 #:phases
549 (modify-phases %standard-phases
550 ;; TODO: autosetup is meant to be included in the source,
551 ;; but we should package autosetup and use our own version of it.
552 (replace 'configure
553 (lambda* (#:key outputs inputs configure-flags #:allow-other-keys)
554 (let* ((out (assoc-ref outputs "out"))
555 (flags `(,@configure-flags))
556 (bash (which "bash")))
557 (setenv "SHELL" bash)
558 (setenv "CONFIG_SHELL" bash)
559 (apply invoke bash
560 (string-append (getcwd) "/configure")
561 flags)))))))
c3c56a4e 562 (home-page "https://neomutt.org/")
d54a759d
TGR
563 (synopsis "Command-line mail reader based on Mutt")
564 (description
565 "NeoMutt is a command-line mail reader which is based on mutt.
32fc1ec3 566It adds a large amount of new and improved features to mutt.")
7e3b537c 567 (license license:gpl2+)))
7596ddf3 568
681a6588
MW
569(define-public gmime
570 (package
571 (name "gmime")
4e839a83 572 (version "3.2.7")
681a6588
MW
573 (source (origin
574 (method url-fetch)
75630043 575 (uri (string-append "mirror://gnome/sources/gmime/"
29a7c98a 576 (version-major+minor version)
681a6588
MW
577 "/gmime-" version ".tar.xz"))
578 (sha256
579 (base32
4e839a83 580 "0i3xfc84qn1z99i70q68kbnp9rmgqrnprqb418ba52s6g9j9dsia"))))
681a6588
MW
581 (build-system gnu-build-system)
582 (native-inputs
583 `(("pkg-config" ,pkg-config)
584 ("gnupg" ,gnupg))) ; for tests only
585 (inputs `(("glib" ,glib)
586 ("gpgme" ,gpgme)
587 ("zlib" ,zlib)))
588 (arguments
589 `(#:phases
cc955356
EF
590 (modify-phases %standard-phases
591 (add-after
592 'unpack 'patch-paths-in-tests
593 (lambda _
594 ;; The test programs run several programs using 'system' with
ae83dcf6 595 ;; hard-coded paths. Here we patch them all.
596 ;; We use ISO-8859-1 here because test-iconv.c contains
cc955356
EF
597 ;; raw byte sequences in several different encodings.
598 (with-fluids ((%default-port-encoding #f))
599 (substitute* (find-files "tests" "\\.c$")
600 (("(system *\\(\")(/[^ ]*)" all pre prog-path)
601 (let* ((base (basename prog-path))
ae83dcf6 602 (prog (which base)))
cc955356 603 (string-append pre
8e020519
MB
604 (or prog (error "not found: " base)))))))
605 #t)))))
681a6588
MW
606 (home-page "http://spruce.sourceforge.net/gmime/")
607 (synopsis "MIME message parser and creator library")
608 (description
609 "GMime provides a core library and set of utilities which may be used for
610the creation and parsing of messages using the Multipurpose Internet Mail
611Extension (MIME).")
7e3b537c 612 (license (list license:lgpl2.1+ license:gpl2+ license:gpl3+))))
681a6588 613
8e020519
MB
614;; Some packages are not ready for GMime 3 yet.
615(define-public gmime-2.6
616 (package
617 (inherit gmime)
618 (version "2.6.23")
619 (source (origin
620 (method url-fetch)
621 (uri (string-append "mirror://gnome/sources/gmime/"
622 (version-major+minor version)
623 "/gmime-" version ".tar.xz"))
624 (sha256
625 (base32
626 "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
627
a7e59c50
LC
628(define-public bogofilter
629 (package
630 (name "bogofilter")
2665ff41
TGR
631 (version "1.2.5")
632 (source
633 (origin
634 (method url-fetch)
635 (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-stable/"
636 "bogofilter-" version ".tar.xz"))
637 (sha256
638 (base32 "1sl9xrnnlk2sn8gmibhn8li09vnansjbxb9l1182qmgz7cvs2j1j"))))
a7e59c50
LC
639 (build-system gnu-build-system)
640 (arguments
c55fa42b
EF
641 '(#:phases
642 (modify-phases %standard-phases
643 (add-before 'check 'pre-check
644 (lambda _
645 (substitute* "src/tests/t.frame"
646 (("GREP=/bin/grep")
647 (string-append "GREP=" (which "grep") "\n")))
648 #t)))))
a7e59c50
LC
649 (native-inputs `(("flex" ,flex)))
650 (inputs `(("bdb" ,bdb)))
0ba57558 651 (home-page "https://bogofilter.sourceforge.io/")
a7e59c50
LC
652 (synopsis "Mail classifier based on a Bayesian filter")
653 (description
654 "Bogofilter is a mail filter that classifies mail as spam or ham
655 (non-spam) by a statistical analysis of the message's header and
656content (body). The program is able to learn from the user's classifications
657and corrections. It is based on a Bayesian filter.")
7e3b537c 658 (license license:gpl3+)))
a7e59c50 659
3919a31a
EB
660(define-public offlineimap
661 (package
662 (name "offlineimap")
6c98d9c7 663 (version "7.2.4")
3919a31a 664 (source (origin
bc7c9f77
MB
665 (method git-fetch)
666 (uri (git-reference
667 (url "https://github.com/OfflineIMAP/offlineimap")
668 (commit (string-append "v" version))))
669 (file-name (git-file-name name version))
3919a31a
EB
670 (sha256
671 (base32
6c98d9c7 672 "0h5q5nk2p2vx86w6rrbs7v70h81dpqqr68x6l3klzl3m0yj9agb1"))))
3919a31a 673 (build-system python-build-system)
7a6213cb 674 (native-inputs
4b0e6367 675 `(("asciidoc" ,asciidoc)))
a4ea25d3
EF
676 (inputs `(("python2-pysqlite" ,python2-pysqlite)
677 ("python2-six" ,python2-six)))
3919a31a
EB
678 (arguments
679 ;; The setup.py script expects python-2.
680 `(#:python ,python-2
681 ;; Tests require a modifiable IMAP account.
42aa73b3
EF
682 #:tests? #f
683 #:phases
684 (modify-phases %standard-phases
7a6213cb
MB
685 (add-after 'build 'build-documentation
686 (lambda _
687 (substitute* "docs/Makefile"
688 ;; Prevent xmllint and xsltproc from downloading a DTD file.
689 (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v"))
7232c3f5 690 (invoke "make" "-C" "docs" "man")))
7a6213cb
MB
691 (add-after 'install 'install-documentation
692 (lambda* (#:key outputs #:allow-other-keys)
693 (let* ((out (assoc-ref outputs "out"))
694 (man (string-append out "/share/man")))
695 (install-file "docs/offlineimap.1" (string-append man "/man1"))
696 (install-file "docs/offlineimapui.7" (string-append man "/man7"))
42aa73b3 697 #t))))))
684633e2 698 (home-page "https://www.offlineimap.org")
31e98ca6 699 (synopsis "Sync emails between two repositories")
3919a31a
EB
700 (description
701 "OfflineImap synchronizes emails between two repositories, so that you
702can read the same mailbox from multiple computers. It supports IMAP as REMOTE
703repository and Maildir/IMAP as LOCAL repository.")
7e3b537c 704 (license license:gpl2+)))
3919a31a 705
3e9750c3
TD
706(define-public emacs-mew
707 (package
708 (name "emacs-mew")
611a6980 709 (version "6.8")
3e9750c3
TD
710 (source (origin
711 (method url-fetch)
8502ff7a 712 (uri (string-append "https://mew.org/Release/mew-"
3e9750c3
TD
713 version ".tar.gz"))
714 (sha256
715 (base32
611a6980 716 "0ixzyq33l6j34410kqav3lwn2wx171zvqd3irvns2jvhrbww8i6g"))))
3e9750c3
TD
717 (native-inputs
718 `(("emacs" ,emacs)))
719 (propagated-inputs
720 `(("ruby-sqlite3" ,ruby-sqlite3) ; optional for the database of messages
721 ("ruby" ,ruby))) ; to set GEM_PATH so ruby-sqlite3 is found at runtime
722 (build-system gnu-build-system)
723 (arguments
d5195020 724 (let ((elisp-dir "/share/emacs/site-lisp")
3e9750c3
TD
725 (icon-dir "/share/mew"))
726 `(#:modules ((guix build gnu-build-system)
727 (guix build utils)
728 (guix build emacs-utils))
729 #:imported-modules (,@%gnu-build-system-modules
730 (guix build emacs-utils))
731 #:configure-flags
732 (list (string-append "--with-elispdir=" %output ,elisp-dir)
733 (string-append "--with-etcdir=" %output ,icon-dir))
734 #:phases
735 (modify-phases %standard-phases
736 (add-after 'configure 'patch-mew-icon-directory
737 (lambda* (#:key outputs #:allow-other-keys)
738 (emacs-substitute-sexps "mew-key.el"
739 ("(def.* mew-icon-directory"
740 `(progn
741 (add-to-list 'image-load-path 'mew-icon-directory)
742 ,(string-append (assoc-ref outputs "out") ,icon-dir))))
743 #t))
744 (add-after 'install 'generate-autoloads
745 (lambda* (#:key outputs #:allow-other-keys)
746 (emacs-generate-autoloads
747 "mew" (string-append (assoc-ref outputs "out") ,elisp-dir))
748 #t)))
749 #:tests? #f)))
8502ff7a 750 (home-page "https://mew.org")
3e9750c3
TD
751 (synopsis "Emacs e-mail client")
752 (description "Mew (Messaging in the Emacs World) is a user interface
753for text messages, multimedia messages (MIME), news articles and
754security functionality including PGP, S/MIME, SSH, and SSL.")
7e3b537c 755 (license license:bsd-3)))
3e9750c3 756
d2938d59
EB
757(define-public mu
758 (package
759 (name "mu")
38265b55 760 (version "1.4.13")
d2938d59
EB
761 (source (origin
762 (method url-fetch)
e7b9da24 763 (uri (string-append "https://github.com/djcb/mu/releases/"
b40ba288 764 "download/" version "/"
857fabcd 765 "mu-" version ".tar.xz"))
d2938d59
EB
766 (sha256
767 (base32
38265b55 768 "13kfpr77qrnp3i5qnb5zd03frd3fdviggnl50973gdk0hr7m0smj"))))
d2938d59
EB
769 (build-system gnu-build-system)
770 (native-inputs
771 `(("pkg-config" ,pkg-config)
9fd571a2 772 ("glib" ,glib "bin") ; for gtester
63298f14 773 ("emacs" ,emacs-minimal)
857fabcd 774 ("tzdata" ,tzdata-for-tests))) ; for mu/test/test-mu-query.c
d2938d59
EB
775 (inputs
776 `(("xapian" ,xapian)
d59ec129 777 ("guile" ,guile-2.2)
d2938d59 778 ("glib" ,glib)
857fabcd 779 ("gmime" ,gmime)))
d2938d59 780 (arguments
704f2196
AK
781 `(#:modules ((guix build gnu-build-system)
782 (guix build utils)
783 (guix build emacs-utils))
784 #:imported-modules (,@%gnu-build-system-modules
785 (guix build emacs-utils))
786 #:phases
99404fff 787 (modify-phases %standard-phases
e62e975b 788 (add-after 'unpack 'patch-configure
789bda83
AK
789 ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e",
790 ;; so our Emacs package can't find it. Setting "--with-lispdir"
791 ;; configure flag doesn't help because "mu4e" will be added to
792 ;; the lispdir anyway, so we have to modify "configure.ac".
793 (lambda _
e62e975b 794 (substitute* "configure"
d59ec129
RW
795 (("^ +lispdir=\"\\$\\{lispdir\\}/mu4e/\".*") "")
796 ;; Use latest Guile
797 (("guile-2.0") "guile-2.2"))
798 (substitute* '("guile/Makefile.in"
799 "guile/mu/Makefile.in")
800 (("share/guile/site/2.0/") "share/guile/site/2.2/"))
789bda83 801 #t))
096a0527 802 (add-after 'unpack 'patch-bin-sh-in-tests
3481c714 803 (lambda _
096a0527
PL
804 (substitute* '("guile/tests/test-mu-guile.c"
805 "mu/test-mu-cmd.c"
806 "mu/test-mu-cmd-cfind.c"
807 "mu/test-mu-query.c"
808 "mu/test-mu-threads.c")
809 (("/bin/sh") (which "sh")))
3481c714 810 #t))
c9dc4577
RW
811 (add-before 'install 'fix-ffi
812 (lambda* (#:key outputs #:allow-other-keys)
813 (substitute* "guile/mu.scm"
814 (("\"libguile-mu\"")
815 (format #f "\"~a/lib/libguile-mu\""
816 (assoc-ref outputs "out"))))
817 #t))
99404fff
AK
818 (add-before 'check 'check-tz-setup
819 (lambda* (#:key inputs #:allow-other-keys)
820 ;; For mu/test/test-mu-query.c
821 (setenv "TZDIR"
822 (string-append (assoc-ref inputs "tzdata")
823 "/share/zoneinfo"))
704f2196
AK
824 #t))
825 (add-after 'install 'install-emacs-autoloads
826 (lambda* (#:key outputs #:allow-other-keys)
827 (emacs-generate-autoloads
828 "mu4e"
829 (string-append (assoc-ref outputs "out")
830 "/share/emacs/site-lisp"))
99404fff 831 #t)))))
754c1204 832 (home-page "https://www.djcbsoftware.nl/code/mu/")
d2938d59
EB
833 (synopsis "Quickly find emails")
834 (description
835 "Mu is a tool for dealing with e-mail messages stored in the
836Maildir-format. Mu's purpose in life is to help you to quickly find the
837messages you need; in addition, it allows you to view messages, extract
838attachments, create new maildirs, and so on.")
7e3b537c 839 (license license:gpl3+)))
d2938d59 840
a2cb16b0
TS
841(define-public alot
842 (package
843 (name "alot")
3f81ca32 844 (version "0.5.1")
a2cb16b0
TS
845 (source (origin
846 (method url-fetch)
1b94f182
TS
847 ;; package author intends on distributing via github rather
848 ;; than pypi:
849 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
a2cb16b0
TS
850 (uri (string-append "https://github.com/pazz/alot/archive/"
851 version ".tar.gz"))
852 (file-name (string-append "alot-" version ".tar.gz"))
853 (sha256
854 (base32
3f81ca32 855 "0wax30hjzmkqfml7hig1dqw1v1y63yc0cgbzl96x58b9h2ggqx3a"))))
a2cb16b0
TS
856 (build-system python-build-system)
857 (arguments
3f81ca32 858 `(;; python 3 is currently unsupported, more info:
fe3b8862 859 ;; https://github.com/pazz/alot/blob/master/docs/source/faq.rst
a2cb16b0 860 #:python ,python-2))
3f81ca32
TS
861 (native-inputs
862 `(("python2-mock" ,python2-mock)))
a2cb16b0
TS
863 (inputs
864 `(("python2-magic" ,python2-magic)
865 ("python2-configobj" ,python2-configobj)
866 ("python2-twisted" ,python2-twisted)
867 ("python2-urwid" ,python2-urwid)
868 ("python2-urwidtrees" ,python2-urwidtrees)
869 ("python2-pygpgme" ,python2-pygpgme)
870 ("python2-notmuch" ,python2-notmuch)))
871 (home-page "https://github.com/pazz/alot")
cfcfc6ab 872 (synopsis "Command-line MUA using @code{notmuch}")
a2cb16b0 873 (description
cfcfc6ab 874 "Alot is an experimental terminal mail user agent (@dfn{MUA}) based on
a2cb16b0 875@code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.")
7e3b537c 876 (license license:gpl3+)))
a2cb16b0 877
0350a8bb
HG
878(define-public notifymuch
879 (let
880 ((commit "9d4aaf54599282ce80643b38195ff501120807f0")
881 (revision "1"))
882 (package
883 (name "notifymuch")
884 (version (string-append "0.1-" revision "." (string-take commit 7)))
885 (source
886 (origin
887 (method git-fetch)
888 (uri (git-reference
b0e7b699 889 (url "https://github.com/kspi/notifymuch")
0350a8bb
HG
890 (commit commit)))
891 (sha256
892 (base32
893 "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4"))
894 (file-name (string-append name "-" version "-checkout"))))
895 (build-system python-build-system)
896 (inputs
897 `(("python-notmuch" ,python-notmuch)
898 ("python-pygobject" ,python-pygobject)
899 ("gobject-introspection" ,gobject-introspection)
900 ("libnotify" ,libnotify)
901 ("gtk+" ,gtk+)))
902 (arguments
903 `(#:phases
904 (modify-phases %standard-phases
905 (add-after 'install 'wrap-binary
906 (lambda* (#:key outputs #:allow-other-keys)
907 (let* ((out (assoc-ref outputs "out"))
908 (bin (string-append out "/bin/notifymuch")))
909 (wrap-program bin
910 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
911 `("GI_TYPELIB_PATH" ":" prefix
912 (,(getenv "GI_TYPELIB_PATH")
913 ,(string-append out "/lib/girepository-1.0")))))
914 #t)))))
915 (home-page "https://github.com/kspi/notifymuch")
916 (synopsis "Displays notifications for changes in the notmuch email database")
917 (description "notifymuch displays desktop notifications for messages in
918the notmuch database. The notifications are sent using libnotify to a
919notification daemon. The query to find messages to send a notification about
920is configurable, and a notification for the same message will not be send
921within a configurable period (defaults to 48 hours). To use notifymuch, run
922@command{notifymuch} after new mail is indexed, this can be automated by
923invoking @command{notifymuch} from the post-new hook.")
7e3b537c 924 (license license:gpl3))))
0350a8bb 925
1bd3f849
DT
926(define-public notmuch
927 (package
928 (name "notmuch")
60392114 929 (version "0.29.3")
1bd3f849
DT
930 (source (origin
931 (method url-fetch)
866fade9 932 (uri (string-append "https://notmuchmail.org/releases/notmuch-"
80fa745c 933 version ".tar.xz"))
1bd3f849
DT
934 (sha256
935 (base32
60392114 936 "0dfwa38vgnxk9cvvpza66szjgp8lir6iz6yy0cry9593lywh9xym"))))
1bd3f849
DT
937 (build-system gnu-build-system)
938 (arguments
d738f134
AI
939 `(#:modules ((guix build gnu-build-system)
940 ((guix build emacs-build-system) #:prefix emacs:)
941 (guix build utils))
942 #:imported-modules (,@%gnu-build-system-modules
943 (guix build emacs-build-system)
944 (guix build emacs-utils))
e82cf6c6
TGR
945 #:make-flags
946 (list "V=1" ; verbose test output
947 "NOTMUCH_TEST_TIMEOUT=1h") ; don't fail on slow machines
eb537f57 948 #:phases (modify-phases %standard-phases
6cf27c89
MB
949 (add-after 'unpack 'patch-notmuch-lib.el
950 (lambda _
951 (substitute* "emacs/notmuch-lib.el"
952 (("/bin/sh") (which "sh")))
953 #t))
eb537f57
DT
954 (replace 'configure
955 (lambda* (#:key outputs #:allow-other-keys)
956 (setenv "CC" "gcc")
957 (setenv "CONFIG_SHELL" (which "sh"))
ee886454 958
d738f134
AI
959 (let* ((out (assoc-ref outputs "out"))
960 (elisp
1cd91499 961 (string-append out "/share/emacs/site-lisp/")))
82d2dfa0
TGR
962 (invoke "./configure"
963 (string-append "--prefix=" out)
964 (string-append "--emacslispdir=" elisp)
965 (string-append "--emacsetcdir=" elisp)))))
6cf27c89
MB
966 (add-before 'check 'prepare-test-environment
967 (lambda _
968 (setenv "TEST_CC" "gcc")
969 ;; Patch various inline shell invocations.
970 (substitute* (find-files "test" "\\.sh$")
971 (("/bin/sh") (which "sh")))
d738f134
AI
972 #t))
973 (add-after 'install 'make-autoloads
974 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
1bd3f849 975 (native-inputs
2c5b91dc 976 `(("bash-completion" ,bash-completion)
76472ed9 977 ("emacs" ,emacs-no-x) ; -minimal lacks libxml, needed for some tests
2c5b91dc 978 ("pkg-config" ,pkg-config)
3d3c07f3
MB
979 ("python" ,python)
980 ("python-docutils" ,python-docutils)
556530c9 981 ("sphinx" ,python-sphinx)
6cf27c89
MB
982
983 ;; The following are required for tests only.
984 ("which" ,which)
985 ("dtach" ,dtach)
986 ("gnupg" ,gnupg)
987 ("man" ,man-db)
988 ("perl" ,perl)))
1bd3f849 989 (inputs
2c5b91dc 990 `(("glib" ,glib)
1bd3f849
DT
991 ("gmime" ,gmime)
992 ("talloc" ,talloc)
993 ("xapian" ,xapian)
994 ("zlib" ,zlib)))
540d6cc7 995 (home-page "https://notmuchmail.org/")
1bd3f849
DT
996 (synopsis "Thread-based email index, search, and tagging")
997 (description
998 "Notmuch is a command-line based program for indexing, searching, read-
999ing, and tagging large collections of email messages.")
7e3b537c 1000 (license license:gpl3+)))
1bd3f849 1001
8a75c589 1002(define-public notmuch-addrlookup-c
9694b44e
AI
1003 (package
1004 (name "notmuch-addrlookup-c")
1005 (version (string-append "9"))
1006 (source (origin
1007 (method git-fetch)
1008 (uri (git-reference
b0e7b699 1009 (url "https://github.com/aperezdc/notmuch-addrlookup-c")
9694b44e
AI
1010 (commit (string-append "v" version))))
1011 (file-name (string-append name "-" version "-checkout"))
1012 (sha256
1013 (base32
1014 "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc"))))
1015 (build-system gnu-build-system)
1016 (arguments
1017 '(#:tests? #f ; no tests
1018 #:make-flags (list "CC=gcc")
1019 #:phases (modify-phases %standard-phases
1020 (delete 'configure)
1021 ;; Remove vim code completion config, it's not needed to
1022 ;; build (or be patched).
1023 (add-before 'patch-source-shebangs 'delete-ycm-file
1024 (lambda _ (delete-file ".ycm_extra_conf.py")))
1025 (replace 'install
1026 (lambda* (#:key outputs #:allow-other-keys)
1027 (let ((bin (string-append
1028 (assoc-ref outputs "out") "/bin")))
1029 (install-file "notmuch-addrlookup" bin)))))))
1030 (native-inputs
1031 `(("pkg-config" ,pkg-config)))
1032 (inputs
1033 `(("glib" ,glib)
1034 ("notmuch" ,notmuch)))
1035 (home-page "https://github.com/aperezdc/notmuch-addrlookup-c")
1036 (synopsis "Address lookup tool for Notmuch")
1037 (description "This is an address lookup tool using a Notmuch database,
8a75c589 1038useful for email address completion.")
9694b44e 1039 (license license:expat)))
8a75c589 1040
4b6909bc
TS
1041(define-public python-notmuch
1042 (package
1043 (name "python-notmuch")
540d6cc7 1044 (version (package-version notmuch))
4b6909bc
TS
1045 ;; Notmuch python bindings are now unavailable on pypi. The
1046 ;; bindings are distributed via the notmuch release tarball.
1047 (source (package-source notmuch))
1048 (build-system python-build-system)
1049 (inputs `(("notmuch" ,notmuch)))
1050 (arguments
1051 `(#:tests? #f ; no "test" target
1052 #:phases
1053 (modify-phases %standard-phases
1054 ;; This python package lives in a subdirectory of the notmuch source
1055 ;; tree, so chdir into it before building.
1056 (add-after 'unpack 'enter-python-dir
1057 (lambda _ (chdir "bindings/python") #t))
1058 ;; Make sure the correct notmuch shared library gets loaded.
1059 (add-before 'build 'set-libnotmuch-file-name
1060 (lambda* (#:key inputs #:allow-other-keys)
1061 (let ((notmuch (assoc-ref inputs "notmuch")))
1062 (substitute* "notmuch/globals.py"
1063 (("libnotmuch\\.so\\.")
1064 (string-append notmuch "/lib/libnotmuch.so.")))
1065 #t))))))
540d6cc7 1066 (home-page (package-home-page notmuch))
4b6909bc
TS
1067 (synopsis "Python bindings of the Notmuch mail indexing library")
1068 (description
1069 "This package provides Python bindings to use the Notmuch mail indexing
1070and search library.")
7e3b537c 1071 (license license:gpl3+)))
4b6909bc 1072
1c74da21 1073(define-public python2-notmuch
caa6fc89 1074 (package-with-python2 python-notmuch))
1c74da21 1075
9ec27360
JW
1076(define-public muchsync
1077 (package
1078 (name "muchsync")
1079 (version "5")
1080 (source
1081 (origin
1082 (method url-fetch)
1083 (uri (string-append "http://www.muchsync.org/src/"
1084 "muchsync-" version ".tar.gz"))
1085 (sha256
1086 (base32 "1k2m44pj5i6vfhp9icdqs42chsp208llanc666p3d9nww8ngq2lb"))))
1087 (build-system gnu-build-system)
1088 (native-inputs
1089 `(("ghc-pandoc" ,ghc-pandoc)
1090 ("pkg-config" ,pkg-config)))
1091 (inputs
1092 `(("libcrypto" ,openssl)
1093 ("notmuch" ,notmuch)
1094 ("sqlite" ,sqlite)
1095 ("xapian" ,xapian)))
1096 (home-page "http://www.muchsync.org/")
1097 (synopsis "Synchronize notmuch mail across machines")
1098 (description
1099 "Muchsync brings Notmuch to all of your computers by synchronizing your
1100mail messages and Notmuch tags across machines. The protocol is heavily
1101pipelined to work efficiently over high-latency networks such as mobile
1102broadband. Muchsync supports arbitrary pairwise synchronization among
1103replicas. A version-vector-based algorithm allows it to exchange only the
1104minimum information necessary to bring replicas up to date regardless of which
1105pairs have previously synchronized.")
7e3b537c 1106 (license license:gpl2+)))
9ec27360 1107
98e9e22f
SB
1108(define-public getmail
1109 (package
1110 (name "getmail")
88e903a5 1111 (version "5.14")
98e9e22f
SB
1112 (source
1113 (origin
1114 (method url-fetch)
1115 (uri (string-append "http://pyropus.ca/software/getmail/old-versions/"
7e14ed93 1116 "getmail-" version ".tar.gz"))
98e9e22f 1117 (sha256
88e903a5 1118 (base32 "1hcrd9h4g12f5gvl1djsbchcjry02ghq4icdr897s8v48pkrzagk"))))
98e9e22f
SB
1119 (build-system python-build-system)
1120 (arguments
88e903a5 1121 `(#:tests? #f ; no tests
98e9e22f
SB
1122 #:python ,python-2))
1123 (home-page "http://pyropus.ca/software/getmail/")
1124 (synopsis "Mail retriever")
1125 (description
1126 "A flexible, extensible mail retrieval system with support for
1127POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs,
1128arbitrary message filtering, single-user and domain-mailboxes, and many other
1129useful features.")
1130
1131 ;; License is specified in file '__init__.py'.
7e3b537c 1132 (license license:gpl2)))
98e9e22f 1133
f58f767b
JL
1134(define-public libetpan
1135 (package
1136 (name "libetpan")
0aa20371 1137 (version "1.9.3")
f58f767b 1138 (source (origin
aae96f8f
TGR
1139 (method git-fetch)
1140 (uri (git-reference
1141 (url "https://github.com/dinhviethoa/libetpan.git")
1142 (commit version)))
1143 (file-name (git-file-name name version))
f58f767b 1144 (sha256
0aa20371 1145 (base32 "19g4qskg71jv7sxfxsdkjmrxk9mk5kf9b6fhw06g6wvm3205n95f"))))
f58f767b 1146 (build-system gnu-build-system)
464f5447 1147 (native-inputs `(("autoconf" ,autoconf-wrapper)
f58f767b 1148 ("automake" ,automake)
3246cc91 1149 ("libtool" ,libtool)
f58f767b
JL
1150 ("pkg-config" ,pkg-config)))
1151 (propagated-inputs
1152 ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these
1153 ;; libraries need to be propagated.
1154 `(("cyrus-sasl" ,cyrus-sasl)
1155 ("openssl" ,openssl)))
1156 (inputs
1157 `(("curl" ,curl)
c1748912
EF
1158 ("expat" ,expat)
1159 ("zlib" ,zlib)))
f58f767b 1160 (arguments
778d6b52 1161 '(#:configure-flags
f58f767b 1162 '("--disable-static" "--disable-db")))
81fb037f 1163 (home-page "https://www.etpan.org/libetpan.html")
f58f767b
JL
1164 (synopsis "Portable middleware for email access")
1165 (description
1166 "The purpose of this mail library is to provide a portable, efficient
1167framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It
1168provides an API for C language. It's the low-level API used by MailCore and
1169MailCore 2.")
7e3b537c 1170 (license license:bsd-3)))
f58f767b 1171
ee6e780b
DM
1172(define-public compface
1173 (package
1174 (name "compface")
1175 (version "1.5.2")
1176 (source (origin
1177 (method url-fetch)
1178 (uri (string-append "https://ftp.heanet.ie/mirrors/"
1179 "ftp.xemacs.org/aux/"
f30444b9 1180 "compface-" version ".tar.gz"))
ee6e780b
DM
1181 (sha256
1182 (base32
1183 "09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6"))))
1184 (build-system gnu-build-system)
1185 (arguments
1186 `(#:tests? #f))
1187 (synopsis "Portrait image compressor")
586ddde5 1188 (description "This package takes your 48x48x1 portrait image and
ee6e780b 1189compresses it.")
0622403d 1190 (home-page "https://legacy.cs.indiana.edu/ftp/faces/")
7e3b537c 1191 (license (license:x11-style "file://README"))))
ee6e780b 1192
e8435c4d
JL
1193(define-public claws-mail
1194 (package
1195 (name "claws-mail")
b418a0b0 1196 (version "3.17.6")
e8435c4d
JL
1197 (source (origin
1198 (method url-fetch)
1199 (uri (string-append
ca6f5ab8 1200 "https://www.claws-mail.org/releases/claws-mail-" version
6ea4b094 1201 ".tar.xz"))
e8435c4d 1202 (sha256
ec92806a 1203 (base32
b418a0b0 1204 "1s05qw0r0gqwvvkxvrrwbjkbi61dvilixiwrpgcq21qc9csc9r0m"))))
e8435c4d
JL
1205 (build-system gnu-build-system)
1206 (native-inputs `(("pkg-config" ,pkg-config)))
1207 (inputs `(("bogofilter" ,bogofilter)
1208 ("curl" ,curl)
1209 ("dbus-glib" ,dbus-glib)
e8435c4d
JL
1210 ("enchant" ,enchant)
1211 ("expat" ,expat)
1212 ("ghostscript" ,ghostscript)
1213 ("hicolor-icon-theme" ,hicolor-icon-theme)
1214 ("gnupg" ,gnupg)
1215 ("gnutls" ,gnutls)
1216 ("gpgme" ,gpgme)
1217 ("gtk" ,gtk+-2)
1218 ("libarchive" ,libarchive)
1219 ("libcanberra" ,libcanberra)
1220 ("libetpan" ,libetpan)
fc9a93cb 1221 ("libical" ,libical)
e8435c4d
JL
1222 ("libnotify" ,libnotify)
1223 ("libsm" ,libsm)
1224 ("libxml2" ,libxml2)
1225 ("perl" ,perl)
f6292baf 1226 ("python-2" ,python-2)
3d88855d
DM
1227 ("mime-info" ,shared-mime-info)
1228 ("startup-notification" ,startup-notification)))
e8435c4d
JL
1229 (arguments
1230 '(#:configure-flags
9716f621
MH
1231 '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant"
1232 "--enable-ldap")
ff4192ff
DM
1233 #:make-flags
1234 ;; Disable updating icon cache since it's done by the profile hook.
1235 ;; Conflict with other packages in the profile would be inevitable
1236 ;; otherwise.
1237 '("gtk_update_icon_cache=true")
f6292baf
EB
1238 #:phases (modify-phases %standard-phases
1239 (add-before 'build 'patch-mime
1240 (lambda* (#:key inputs #:allow-other-keys)
1241 (substitute* "src/procmime.c"
1242 (("/usr/share/mime/globs")
1243 (string-append (assoc-ref inputs "mime-info")
1244 "/share/mime/globs"))))))))
e8435c4d
JL
1245 (synopsis "GTK-based Email client")
1246 (description
1247 "Claws-Mail is an email client (and news reader) based on GTK+. The
1248appearance and interface are designed to be familiar to new users coming from
1249other popular email clients, as well as experienced users. Almost all commands
1250are accessible with the keyboard. Plus, Claws-Mail is extensible via addons
1251which can add many functionalities to the base client.")
ba5c926c 1252 (home-page "https://www.claws-mail.org/")
7e3b537c 1253 (license license:gpl3+))) ; most files are actually public domain or x11
e8435c4d 1254
d6e941bc
1255(define-public msmtp
1256 (package
1257 (name "msmtp")
5d2b9b07 1258 (version "1.8.12")
d6e941bc
1259 (source
1260 (origin
1261 (method url-fetch)
1a80f1a9 1262 (uri (string-append "https://marlam.de/msmtp/releases/"
d23d1ddf
LF
1263 "/msmtp-" version ".tar.xz"))
1264 (sha256
5d2b9b07 1265 (base32 "0m33m5bc7ajmgy7vivnzj3mhybg37259hx79xypj769kfyafyvx8"))))
d6e941bc
1266 (build-system gnu-build-system)
1267 (inputs
91b3a6d4 1268 `(("libsecret" ,libsecret)
d6e941bc
1269 ("gnutls" ,gnutls)
1270 ("zlib" ,zlib)
1271 ("gsasl" ,gsasl)))
1272 (native-inputs
1273 `(("pkg-config" ,pkg-config)))
1a80f1a9 1274 (home-page "https://marlam.de/msmtp/")
d6e941bc
1275 (arguments
1276 `(#:configure-flags (list "--with-libgsasl"
1277 "--with-libidn"
823e2ed4
LF
1278 "--with-tls=gnutls")
1279 #:phases
1280 (modify-phases %standard-phases
34e549d8 1281 (add-after 'install 'install-additional-files
823e2ed4
LF
1282 (lambda* (#:key outputs #:allow-other-keys)
1283 (let* ((out (assoc-ref outputs "out"))
1284 (bin (string-append out "/bin"))
1285 (doc (string-append out "/share/doc/msmtp"))
34e549d8
EF
1286 (msmtpq "scripts/msmtpq")
1287 (vimfiles (string-append out "/share/vim/vimfiles/plugin")))
823e2ed4
LF
1288 (install-file (string-append msmtpq "/msmtpq") bin)
1289 (install-file (string-append msmtpq "/msmtp-queue") bin)
1290 (install-file (string-append msmtpq "/README.msmtpq") doc)
34e549d8 1291 (install-file "scripts/vim/msmtp.vim" vimfiles)
b93b7b25
EF
1292 ;; Don't rely on netcat being in the PATH to test for a
1293 ;; connection, instead try tp ing debian.org.
1294 (substitute* (string-append bin "/msmtpq")
1295 (("EMAIL_CONN_TEST=n") "EMAIL_CONN_TEST=p"))
823e2ed4 1296 #t))))))
d6e941bc
1297 (synopsis
1298 "Simple and easy to use SMTP client with decent sendmail compatibility")
1299 (description
1300 "msmtp is an SMTP client. In the default mode, it transmits a mail to
1301an SMTP server (for example at a free mail provider) which takes care of further
1302delivery.")
7e3b537c 1303 (license license:gpl3+)))
d6e941bc 1304
66cc3ab2
TUBK
1305(define-public exim
1306 (package
1307 (name "exim")
125aacaa 1308 (version "4.94")
66cc3ab2
TUBK
1309 (source
1310 (origin
1311 (method url-fetch)
c9b99e88
TGR
1312 (uri (let ((file-name (string-append "exim-" version ".tar.xz")))
1313 (list (string-append "https://ftp.exim.org/pub/exim/exim4/"
1314 file-name)
1315 ;; ‘Fix’ releases (exim-x.y.z.f) are kept separately.
1316 (string-append "https://ftp.exim.org/pub/exim/exim4/fixes/"
1317 file-name)
1318 ;; After a new non-fix release, the old one is moved here.
1319 (string-append "https://ftp.exim.org/pub/exim/exim4/old/"
1320 file-name))))
66cc3ab2 1321 (sha256
125aacaa 1322 (base32 "1nsb2i5mqxfz1sl1bmbxmpb2qiaf3wffhfiw4j9vfpagy3xfhzpp"))))
66cc3ab2
TUBK
1323 (build-system gnu-build-system)
1324 (inputs
15871b52 1325 `(("bdb" ,bdb-5.3) ; ‘#error Version 6 and later BDB API is not supported’
cda8250b 1326 ("gnutls" ,gnutls/dane)
66cc3ab2
TUBK
1327 ("gzip" ,gzip)
1328 ("bzip2" ,bzip2)
1329 ("xz" ,xz)
66cc3ab2 1330 ("perl" ,perl)
c315d370 1331 ("libnsl" ,libnsl)
66cc3ab2
TUBK
1332 ("libxt" ,libxt)
1333 ("libxaw" ,libxaw)))
1334 (native-inputs
42773138 1335 `(("pcre" ,pcre "bin")
cda8250b
TGR
1336 ("perl" ,perl)
1337 ("pkg-config" ,pkg-config)))
66cc3ab2
TUBK
1338 (arguments
1339 '(#:phases
dc1d3cde
KK
1340 (modify-phases %standard-phases
1341 (replace 'configure
1342 ;; We'd use #:make-flags but the top-level Makefile calls others
1343 ;; recursively, so just set all variables this way.
1344 (lambda* (#:key outputs inputs #:allow-other-keys)
1345 (substitute* '("Makefile" "OS/Makefile-Default")
1346 (("(RM_COMMAND=).*" all var)
1347 (string-append var "rm\n")))
1348 (copy-file "src/EDITME" "Local/Makefile")
1349 (copy-file "exim_monitor/EDITME" "Local/eximon.conf")
1350 (let ((out (assoc-ref outputs "out"))
1351 (gzip (assoc-ref inputs "gzip"))
1352 (bzip2 (assoc-ref inputs "bzip2"))
1353 (xz (assoc-ref inputs "xz")))
1354 (substitute* '("Local/Makefile")
1355 (("(BIN_DIRECTORY=).*" all var)
1356 (string-append var out "/bin\n"))
1357 (("(CONFIGURE_FILE=).*" all var)
1358 (string-append var out "/etc/exim.conf\n"))
1359 (("(EXIM_USER=).*" all var)
1360 (string-append var "nobody\n"))
1361 (("(FIXED_NEVER_USERS=).*" all var)
15871b52 1362 (string-append var "\n")) ; XXX no root in build environment
dc1d3cde
KK
1363 (("(COMPRESS_COMMAND=).*" all var)
1364 (string-append var gzip "/bin/gzip\n"))
1365 (("(ZCAT_COMMAND=).*" all var)
cda8250b
TGR
1366 (string-append var gzip "/bin/zcat\n"))
1367 (("# (USE_GNUTLS(|_PC)=.*)" all line)
1368 (string-append line "\n")))
1369 ;; This file has hard-coded relative file names for tools despite
1370 ;; the zcat configuration above.
dc1d3cde
KK
1371 (substitute* '("src/exigrep.src")
1372 (("'zcat'") (string-append "'" gzip "/bin/zcat'"))
1373 (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'"))
1374 (("'xzcat'") (string-append "'" xz "/bin/xzcat'"))
1375 (("'lzma'") (string-append "'" xz "/bin/lzma'"))))
1376 #t))
1377 (add-before 'build 'fix-sh-paths
1378 (lambda* (#:key inputs #:allow-other-keys)
1379 (substitute* '("scripts/lookups-Makefile" "scripts/reversion")
1380 (("SHELL=/bin/sh") "SHELL=sh"))
1381 (substitute* '("scripts/Configure-config.h")
1382 (("\\| /bin/sh") "| sh"))
1383 (let ((bash (assoc-ref inputs "bash")))
1384 (substitute* '("scripts/Configure-eximon")
1385 (("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))
bb335e84
TGR
1386 #t))
1387 (add-before 'build 'build-reproducibly
1388 (lambda _
1389 ;; The ‘compilation number’ is incremented for every build from the
1390 ;; same source tree. It appears to vary over different (parallel?)
1391 ;; builds. Make it a ‘constant number’ instead.
1392 (substitute* "src/version.c"
1393 (("#include \"cnumber.h\"") "1")))))
cda8250b
TGR
1394 #:make-flags
1395 (list "CC=gcc"
1396 "INSTALL_ARG=-no_chown")
1397 ;; No 'check' target. There is a test suite in test/, which assumes that
1398 ;; certain build options were (not) used and that it can freely ‘sudo’.
66cc3ab2 1399 #:tests? #f))
85a9ffcb 1400 (home-page "https://www.exim.org/")
66cc3ab2
TUBK
1401 (synopsis
1402 "Message Transfer Agent (MTA) developed at the University of Cambridge")
1403 (description
1404 "Exim is a message transfer agent (MTA) developed at the University of
1405Cambridge for use on Unix systems connected to the Internet. In style it is
1406similar to Smail 3, but its facilities are more general. There is a great
1407deal of flexibility in the way mail can be routed, and there are extensive
1408facilities for checking incoming mail.")
7e3b537c 1409 (license license:gpl2+)))
66cc3ab2 1410
7d2b784b
MW
1411(define-public dovecot
1412 (package
1413 (name "dovecot")
e77989bd 1414 (version "2.3.11.3")
7d2b784b
MW
1415 (source
1416 (origin
1417 (method url-fetch)
c8608faf 1418 (uri (string-append "https://www.dovecot.org/releases/"
7d2b784b 1419 (version-major+minor version) "/"
2fa1a3a8 1420 "dovecot-" version ".tar.gz"))
c03b355f 1421 (sha256
e77989bd 1422 (base32 "1p5gp8jbavcsaara5mfn5cbrnlxssajnchczbgmmfzr7228fmnfk"))))
7d2b784b
MW
1423 (build-system gnu-build-system)
1424 (native-inputs
1425 `(("pkg-config" ,pkg-config)))
1426 (inputs
2bc3ec3b 1427 `(("bzip2" ,bzip2)
9e2a49db
AA
1428 ("clucene" ,clucene)
1429 ("icu4c" ,icu4c)
8826b792 1430 ("libsodium" ,libsodium) ; extra password algorithms
c6872990 1431 ("libstemmer" ,libstemmer)
84ce7c5a
PL
1432 ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's
1433 ;; backtrace_symbol() function so fallback to using libunwind.
1434 ,@(if (target-arm?)
1435 `(("libunwind" ,libunwind))
1436 '())
2bc3ec3b
TGR
1437 ("linux-pam" ,linux-pam)
1438 ("lz4" ,lz4)
1439 ("openssl" ,openssl)
fd5c70f8 1440 ("sqlite" ,sqlite)
cc16c576
TGR
1441 ("zlib" ,zlib)
1442 ("zstd" ,zstd "lib")))
7d2b784b
MW
1443 (arguments
1444 `(#:configure-flags '("--sysconfdir=/etc"
d6894b95 1445 "--localstatedir=/var"
9e2a49db 1446 "--with-sqlite" ; not auto-detected
c6872990 1447 "--with-lucene") ; not auto-detected
f762e49f
TGR
1448 #:phases
1449 (modify-phases %standard-phases
f762e49f
TGR
1450 (add-after 'unpack 'patch-file-names
1451 (lambda _
1452 (substitute* "src/lib-program-client/test-program-client-local.c"
1453 (("(/bin/| )cat") (which "cat"))
1454 (("/bin/echo") (which "echo"))
1455 (("/bin/false") (which "false"))
1456 (("/bin/sh") (which "bash"))
1457 (("head") (which "head"))
1458 (("sleep") (which "sleep")))
1459 (substitute* (list "src/lib-smtp/test-bin/sendmail-exit-1.sh"
1460 "src/lib-smtp/test-bin/sendmail-success.sh")
1461 (("cat") (which "cat")))
37fc44ea
TGR
1462 #t))
1463 (replace 'install
1464 (lambda* (#:key make-flags #:allow-other-keys)
1465 ;; Simple hack to avoid installing a trivial README in /etc.
1466 (apply invoke "make" "install" "sysconfdir=/tmp/bogus"
1467 make-flags))))))
c8608faf 1468 (home-page "https://www.dovecot.org")
7d2b784b
MW
1469 (synopsis "Secure POP3/IMAP server")
1470 (description
1471 "Dovecot is a mail server whose major goals are security and reliability.
1472It supports mbox/Maildir and its own dbox/mdbox formats.")
1473 ;; Most source files are covered by either lgpl2.1 or expat. The SHA code
1474 ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the
1475 ;; Unicode, Inc. License Agreement for Data Files and Software.
7e3b537c
TGR
1476 (license (list license:lgpl2.1 license:expat
1477 (license:non-copyleft "file://COPYING")))))
7d2b784b 1478
944a5cdd 1479(define-public dovecot-trees
cf47a8a5 1480 (package
1481 (name "dovecot-trees")
1482 (version "2.1.0")
1483 (source
1484 (origin
1485 (method url-fetch)
1486 (uri (string-append "https://0xacab.org/riseuplabs/trees/repository/"
1487 "archive.tar.gz?ref=v" version))
1488 (file-name (string-append name "-" version ".tar.gz"))
1489 (sha256
1490 (base32
0e66f4a1
TGR
1491 "0rkk10b1bsjz979sc864vpgcdchy7yxwmyv4ik50lar1h6awdnrf"))
1492 (patches
1493 (search-patches "dovecot-trees-support-dovecot-2.3.patch"))))
cf47a8a5 1494 (build-system gnu-build-system)
1495 (native-inputs
1496 `(("automake" ,automake)
1497 ("autoconf" ,autoconf)
1498 ("libtool" ,libtool)
1499 ("dovecot" ,dovecot)
1500 ("pkg-config" ,pkg-config)))
1501 (inputs
1502 `(("libsodium" ,libsodium)))
1503 (arguments
1504 `(#:tests? #f ;No tests exist.
1505 #:configure-flags (list (string-append "--with-dovecot="
1506 (assoc-ref %build-inputs "dovecot")
7b0efd4c 1507 "/lib/dovecot"))))
cf47a8a5 1508 (home-page "https://0xacab.org/riseuplabs/trees")
1509 (synopsis "NaCL-based Dovecot email storage encryption plugin")
1510 (description
1511 "Technology for Resting Email Encrypted Storage (TREES) is a NaCL-based
944a5cdd 1512Dovecot encryption plugin. This plugin adds individually encrypted mail
1513storage to the Dovecot IMAP server. It is inspired by Posteo's scrambler
1514which uses OpenSSL and RSA keypairs. TREES works in a similar way, but uses
1515the Sodium crypto library (based on NaCL).
1516
1517How it works:
1518@enumerate
1519@item On IMAP log in, the user's cleartext password is passed to the plugin.
1520@item The plugin creates an argon2 digest from the password.
1521@item This password digest is used as a symmetric secret to decrypt a libsodium secretbox.
1522@item Inside the secretbox is stored a Curve25519 private key.
1523@item The Curve25519 private key is used to decrypt each individual message,
b3a47662 1524using libsodium sealed boxes.
944a5cdd 1525@item New mail is encrypted as it arrives using the Curve25519 public key.
1526@end enumerate\n")
7e3b537c 1527 (license license:agpl3)))
944a5cdd 1528
a4651f64 1529(define-public dovecot-libsodium-plugin
1530 (let ((commit "044de73c01c35385df0105f6b387bec5d5317ce7")
1531 (revision "1"))
1532 (package
1533 (name "dovecot-libsodium-plugin")
1534 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1535 (source
1536 (origin
1537 (method git-fetch)
1538 (uri (git-reference
1539 (url "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1540 (commit commit)))
1541 (file-name (string-append name "-" version "-checkout"))
1542 (sha256
1543 (base32
1544 "13h07l7xy713zchnj2p9fhvq7fdl4zy1ai94li3ygkqjjj8hrgas"))))
1545 (build-system gnu-build-system)
1546 (native-inputs
1547 `(("automake" ,automake)
1548 ("autoconf" ,autoconf)
1549 ("libtool" ,libtool)
1550 ("dovecot" ,dovecot)
1551 ("pkg-config" ,pkg-config)))
1552 (inputs
1553 `(("libsodium" ,libsodium)))
1554 (arguments
1555 `(#:tests? #f ;No tests exist.
1556 #:configure-flags (list (string-append "--with-dovecot="
1557 (assoc-ref %build-inputs "dovecot")
1f53fdae 1558 "/lib/dovecot"))))
a4651f64 1559 (home-page "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1560 (synopsis "Libsodium password hashing schemes plugin for Dovecot")
1561 (description
8826b792
TGR
1562 "@code{dovecot-libsodium-plugin} provides a libsodium password
1563hashing scheme (such as scrypt) plug-in for @code{Dovecot}.")
7e3b537c 1564 (license license:gpl3+))))
a4651f64 1565
81ce19f4
1566(define-public isync
1567 (package
1568 (name "isync")
3866a9ae 1569 (version "1.3.3")
81ce19f4
1570 (source
1571 (origin
1572 (method url-fetch)
1573 (uri (string-append "mirror://sourceforge/isync/isync/"
1574 version "/isync-" version ".tar.gz"))
1575 (sha256 (base32
3866a9ae 1576 "10n8ykag0q3ws6fc15xqyg3v980v5nq3kzpablly2rh2z7vkn8gj"))))
81ce19f4 1577 (build-system gnu-build-system)
49490231
LF
1578 (native-inputs
1579 `(("perl" ,perl)))
81ce19f4
1580 (inputs
1581 `(("bdb" ,bdb)
a052d5ab 1582 ("cyrus-sasl" ,cyrus-sasl)
1fdab9d3 1583 ("openssl" ,openssl-1.0)
a66fb3a1 1584 ("zlib" ,zlib)))
0eea5596 1585 (home-page "https://isync.sourceforge.io/")
81ce19f4
1586 (synopsis "Mailbox synchronization program")
1587 (description
f6cd8586 1588 "isync/mbsync is a command-line tool for two-way synchronization of
81ce19f4 1589mailboxes. Currently Maildir and IMAP are supported types.")
7e3b537c 1590 (license license:gpl2+)))
81ce19f4 1591
26b8de19
EB
1592(define-public perl-email-abstract
1593 (package
1594 (name "perl-email-abstract")
1595 (version "3.008")
1596 (source
1597 (origin
1598 (method url-fetch)
1599 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1600 "Email-Abstract-" version ".tar.gz"))
1601 (sha256
1602 (base32
1603 "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw"))))
1604 (build-system perl-build-system)
1605 (propagated-inputs
1606 `(("perl-email-simple" ,perl-email-simple)
a2190ccc 1607 ("perl-module-pluggable" ,perl-module-pluggable)
26b8de19 1608 ("perl-mro-compat" ,perl-mro-compat)))
9aba9b12 1609 (home-page "https://metacpan.org/release/Email-Abstract")
26b8de19
EB
1610 (synopsis "Interface to mail representations")
1611 (description "Email::Abstract provides module writers with the ability to
1612write simple, representation-independent mail handling code.")
7e3b537c 1613 (license license:perl-license)))
26b8de19 1614
ebda902f
EB
1615(define-public perl-email-address
1616 (package
1617 (name "perl-email-address")
b6c7df92 1618 (version "1.912")
ebda902f
EB
1619 (source
1620 (origin
1621 (method url-fetch)
1622 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1623 "Email-Address-" version ".tar.gz"))
1624 (sha256
b6c7df92 1625 (base32 "1vzr0vx4zsw4zbc9xdffc31wnkc1raqmyfiyws06fbyck197i8qg"))))
ebda902f 1626 (build-system perl-build-system)
9aba9b12 1627 (home-page "https://metacpan.org/release/Email-Address")
ebda902f
EB
1628 (synopsis "Email address parsing and creation")
1629 (description "Email::Address implements a regex-based RFC 2822 parser that
1630locates email addresses in strings and returns a list of Email::Address
1631objects found. Alternatively you may construct objects manually.")
7e3b537c 1632 (license license:perl-license)))
ebda902f 1633
944d3b4b
SB
1634(define-public perl-email-address-xs
1635 (package
1636 (name "perl-email-address-xs")
1637 (version "1.04")
1638 (source
1639 (origin
1640 (method url-fetch)
1641 (uri (string-append "mirror://cpan/authors/id/P/PA/PALI/"
1642 "Email-Address-XS-" version ".tar.gz"))
1643 (sha256
1644 (base32
1645 "0gjrrl81z3sfwavgx5kwjd87gj44mlnbbqsm3dgdv1xllw26spwr"))))
1646 (build-system perl-build-system)
1647 (home-page "https://metacpan.org/release/Email-Address-XS")
1648 (synopsis "Parse and format RFC 5322 email addresses and groups")
1649 (description
1650 "Email::Address::XS implements RFC 5322 parser and formatter of email
1651addresses and groups. Unlike Email::Address, this module does not use regular
1652expressions for parsing but instead is implemented in XS and uses shared code
1653from Dovecot IMAP server.")
7e3b537c 1654 (license license:perl-license)))
944d3b4b 1655
aa86a3be
EB
1656(define-public perl-email-date-format
1657 (package
1658 (name "perl-email-date-format")
1659 (version "1.005")
1660 (source
1661 (origin
1662 (method url-fetch)
1663 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1664 "Email-Date-Format-" version ".tar.gz"))
1665 (sha256
1666 (base32
1667 "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p"))))
1668 (build-system perl-build-system)
9aba9b12 1669 (home-page "https://metacpan.org/release/Email-Date-Format")
aa86a3be
EB
1670 (synopsis "Produce RFC 2822 date strings")
1671 (description "Email::Date::Format provides a means for generating an RFC
16722822 compliant datetime string.")
7e3b537c 1673 (license license:perl-license)))
aa86a3be 1674
08bf7095
EB
1675(define-public perl-email-messageid
1676 (package
1677 (name "perl-email-messageid")
1fb37ef0 1678 (version "1.406")
08bf7095
EB
1679 (source
1680 (origin
1681 (method url-fetch)
1682 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1683 "Email-MessageID-" version ".tar.gz"))
1684 (sha256
1685 (base32
1fb37ef0 1686 "1f22sdnfq169qw1l0lg7y74pmiam7j9v95bggjnf3q4mygdmshpc"))))
08bf7095 1687 (build-system perl-build-system)
9aba9b12 1688 (home-page "https://metacpan.org/release/Email-MessageID")
08bf7095
EB
1689 (synopsis "Generate world unique message-ids")
1690 (description "Email::MessageID generates recommended message-ids to
1691identify a message uniquely.")
7e3b537c 1692 (license license:perl-license)))
08bf7095 1693
0a4c49f6
EB
1694(define-public perl-email-mime
1695 (package
1696 (name "perl-email-mime")
4f50fd75 1697 (version "1.946")
0a4c49f6
EB
1698 (source
1699 (origin
1700 (method url-fetch)
1701 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1702 "Email-MIME-" version ".tar.gz"))
1703 (sha256
1704 (base32
4f50fd75 1705 "0z1k3i0lzp2k421gc8f3wq0jbqflkbw2xqd2k7n7pmv56417kvk8"))))
0a4c49f6
EB
1706 (build-system perl-build-system)
1707 (propagated-inputs
1708 `(("perl-email-address" ,perl-email-address)
1709 ("perl-email-messageid" ,perl-email-messageid)
1710 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
1711 ("perl-email-mime-encodings" ,perl-email-mime-encodings)
1712 ("perl-email-simple" ,perl-email-simple)
4f50fd75
TGR
1713 ("perl-mime-types" ,perl-mime-types)
1714 ("perl-module-runtime" ,perl-module-runtime)))
9aba9b12 1715 (home-page "https://metacpan.org/release/Email-MIME")
0a4c49f6
EB
1716 (synopsis "MIME message handling")
1717 (description "Email::MIME is an extension of the Email::Simple module, to
1718handle MIME encoded messages. It takes a message as a string, splits it up
1719into its constituent parts, and allows you access to various parts of the
1720message. Headers are decoded from MIME encoding.")
7e3b537c 1721 (license license:perl-license)))
0a4c49f6 1722
55025bb5
EB
1723(define-public perl-email-mime-contenttype
1724 (package
1725 (name "perl-email-mime-contenttype")
9b5fc20c 1726 (version "1.022")
55025bb5
EB
1727 (source
1728 (origin
1729 (method url-fetch)
1730 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1731 "Email-MIME-ContentType-" version ".tar.gz"))
1732 (sha256
1733 (base32
9b5fc20c 1734 "042kxhs3bp1ab9z0mbr1wy21ld4lxd6v2a2mmrashqnsn2075fws"))))
55025bb5
EB
1735 (build-system perl-build-system)
1736 (native-inputs
1737 `(("perl-capture-tiny" ,perl-capture-tiny)))
9aba9b12 1738 (home-page "https://metacpan.org/release/Email-MIME-ContentType")
55025bb5
EB
1739 (synopsis "Parse MIME Content-Type headers")
1740 (description "Email::MIME::ContentType parses a MIME Content-Type
1741header.")
7e3b537c 1742 (license license:perl-license)))
55025bb5 1743
02e29936
EB
1744(define-public perl-email-mime-encodings
1745 (package
1746 (name "perl-email-mime-encodings")
1747 (version "1.315")
1748 (source
1749 (origin
1750 (method url-fetch)
1751 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1752 "Email-MIME-Encodings-" version ".tar.gz"))
1753 (sha256
1754 (base32
1755 "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac"))))
1756 (build-system perl-build-system)
1757 (native-inputs
1758 `(("perl-capture-tiny" ,perl-capture-tiny)))
9aba9b12 1759 (home-page "https://metacpan.org/release/Email-MIME-Encodings")
02e29936
EB
1760 (synopsis "Unified interface to MIME encoding and decoding")
1761 (description "This module wraps MIME::Base64 and MIME::QuotedPrint.")
7e3b537c 1762 (license license:perl-license)))
02e29936 1763
a24c5420
EB
1764(define-public perl-email-sender
1765 (package
1766 (name "perl-email-sender")
0fd6f28d 1767 (version "1.300034")
a24c5420
EB
1768 (source
1769 (origin
1770 (method url-fetch)
1771 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1772 "Email-Sender-" version ".tar.gz"))
1773 (sha256
0fd6f28d 1774 (base32 "14aj9kqa9dr2bdhzn2qvjj2mffj8wjb5397z8qw7qg057fk3ib05"))))
a24c5420
EB
1775 (build-system perl-build-system)
1776 (native-inputs
1777 `(("perl-capture-tiny" ,perl-capture-tiny)))
1778 (propagated-inputs
1779 `(("perl-email-abstract" ,perl-email-abstract)
1780 ("perl-email-address" ,perl-email-address)
1781 ("perl-email-simple" ,perl-email-simple)
1782 ("perl-list-moreutils" ,perl-list-moreutils)
1783 ("perl-module-runtime" ,perl-module-runtime)
1784 ("perl-moo" ,perl-moo)
1785 ("perl-moox-types-mooselike" ,perl-moox-types-mooselike)
1786 ("perl-sub-exporter" ,perl-sub-exporter)
1787 ("perl-throwable" ,perl-throwable)
1788 ("perl-try-tiny" ,perl-try-tiny)))
9aba9b12 1789 (home-page "https://metacpan.org/release/Email-Sender")
a24c5420
EB
1790 (synopsis "Perl library for sending email")
1791 (description "Email::Sender replaces the old and sometimes problematic
1792Email::Send library.")
7e3b537c 1793 (license license:perl-license)))
a24c5420 1794
151ef3ed
EB
1795(define-public perl-email-simple
1796 (package
1797 (name "perl-email-simple")
3a2f1d93 1798 (version "2.216")
151ef3ed
EB
1799 (source
1800 (origin
1801 (method url-fetch)
1802 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1803 "Email-Simple-" version ".tar.gz"))
1804 (sha256
1805 (base32
3a2f1d93 1806 "1m4brbjvalyp5kjqslqv4155dzwg977shxin208i7lc8236n6pyq"))))
151ef3ed
EB
1807 (build-system perl-build-system)
1808 (propagated-inputs
1809 `(("perl-email-date-format" ,perl-email-date-format)))
9aba9b12 1810 (home-page "https://metacpan.org/release/Email-Simple")
151ef3ed
EB
1811 (synopsis "Parsing of RFC 2822 messages")
1812 (description "Email::Simple provides simple parsing of RFC 2822 message
1813format and headers.")
7e3b537c 1814 (license license:perl-license)))
151ef3ed 1815
f5dceecb
AW
1816(define-public libesmtp
1817 (package
1818 (name "libesmtp")
1819 (version "1.0.6")
1820 (source
1821 (origin
1822 (method url-fetch)
049e02ea
LF
1823 (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/"
1824 "libesmtp/libesmtp-" version ".tar.bz2/"
1825 "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-"
1826 version ".tar.bz2")
1827 ;; XXX This site is offline, so we fetch Fedora's cached copy
1828 ;; of the source tarball.
1829 (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-"
1830 version ".tar.bz2")))
f5dceecb
AW
1831 (sha256
1832 (base32
1833 "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh"))))
1834 (build-system gnu-build-system)
1835 (propagated-inputs
1836 `(("openssl" ,openssl)))
1837 (home-page "http://www.stafford.uklinux.net/libesmtp/")
1838 (synopsis "Library for sending mail via remote hosts using SMTP")
1839 (description "libESMTP is an SMTP client which manages posting (or
1840submission of) electronic mail via a preconfigured Mail Transport Agent (MTA).
1841It may be used as part of a Mail User Agent (MUA) or other program that must
1842be able to post electronic mail where mail functionality may not be that
1843program's primary purpose.")
7e3b537c 1844 (license (list license:lgpl2.1+ license:gpl2+))))
f5dceecb 1845
f8ae32a2
AW
1846(define-public esmtp
1847 (package
1848 (name "esmtp")
1849 (version "1.2")
1850 (source
1851 (origin
1852 (method git-fetch)
1853 (uri (git-reference
b0e7b699 1854 (url "https://github.com/andywingo/esmtp")
f8ae32a2
AW
1855 (commit "01bf9fc")))
1856 (sha256
1857 (base32
1858 "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2"))
1859 (file-name (string-append name "-" version "-checkout"))))
1860 (arguments
1861 `(#:phases (modify-phases %standard-phases
73c0e477
EF
1862 (replace 'bootstrap
1863 (lambda _ (invoke "autoreconf" "-vfi"))))))
f8ae32a2
AW
1864 (build-system gnu-build-system)
1865 (native-inputs
1866 `(("bison" ,bison)
1867 ("flex" ,flex)
1868 ("autoconf" ,autoconf)
1869 ("automake" ,automake)
1870 ("libtool" ,libtool)))
1871 (inputs
718c5dd6 1872 `(("libesmtp" ,libesmtp)))
3b3b60d0 1873 (home-page "https://sourceforge.net/projects/esmtp/")
f8ae32a2
AW
1874 (synopsis "Relay-only mail transfer agent (MTA)")
1875 (description "Esmtp is a simple relay-only mail transfer agent built using
1876libESMTP. It sends e-mail via a remote SMTP server using credentials from the
1877user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man
1878page for more on configuration. This package also provides minimal
1879compatibility shims for the @command{sendmail}, @command{mailq}, and
1880@command{newaliases} commands.")
7e3b537c 1881 (license license:gpl2+)))
f8ae32a2 1882
34dd26af
CAW
1883(define-public fdm
1884 (package
1885 (name "fdm")
9a0681d1 1886 (version "2.0")
34dd26af
CAW
1887 (source (origin
1888 (method url-fetch)
1889 (uri (string-append "https://github.com/nicm/fdm/releases/download/"
9a0681d1 1890 version "/fdm-" version ".tar.gz"))
34dd26af 1891 (sha256
9a0681d1 1892 (base32 "196fs1z8y7p12wmqn1bylzz94szl58yv2aby3p30nmwjnyv8rch6"))))
34dd26af
CAW
1893 (build-system gnu-build-system)
1894 (inputs
1895 `(("tdb" ,tdb)
1896 ("openssl" ,openssl)
1897 ("zlib" ,zlib)))
1898 (home-page "https://github.com/nicm/fdm")
1899 (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)")
1900 (description "fdm is a program designed to fetch mail from POP3
1901or IMAP servers, or receive local mail from stdin, and
1902deliver it in various ways.")
1903 (license
1904 ;; Why point to a source file? Well, all the individual files have a
1905 ;; copy of this license in their headers, but there's no seprate file
1906 ;; with that information.
7e3b537c
TGR
1907 (license:non-copyleft
1908 "https://github.com/nicm/fdm/blob/master/command.c"))))
34dd26af 1909
e90819c4
LG
1910
1911(define-public procmail
1912 (package
1913 (name "procmail")
1914 (version "3.22")
1915 (source
1916 (origin
1917 (method url-fetch)
1918 (uri (string-append
1919 "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-"
1920 version
1921 ".tar.gz"))
1922 (sha256
1923 (base32
1924 "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"))
1925 ;; The following patch fixes an ambiguous definition of
1926 ;; getline() in formail.c. The patch is provided by Debian as
1927 ;; patch 24.
1d982d78 1928 (patches (search-patches "procmail-ambiguous-getline-debian.patch"
c297e965
LF
1929 "procmail-CVE-2014-3618.patch"
1930 "procmail-CVE-2017-16844.patch"))))
e90819c4
LG
1931 (arguments
1932 `(#:phases (modify-phases %standard-phases
1933 (replace 'configure
1934 (lambda _
1935 (substitute* "Makefile"
1936 (("/bin/sh")
1937 (which "sh"))
1938 (("/usr")
1939 (assoc-ref %outputs "out"))
1940 (("/bin/rm")
1941 (which "rm")))
1942 #t)))
1943 #:tests? #f)) ;; There are no tests indicating a successful
1944 ;; build. Some tests of basic locking mechanisms provided by the
8f65585b 1945 ;; file system are performed during 'make install'. However, these
e90819c4
LG
1946 ;; are performed before the actual build process.
1947 (build-system gnu-build-system)
05aa576b 1948 (inputs `(("exim" ,exim)))
e90819c4
LG
1949 (home-page "http://www.procmail.org/")
1950 (synopsis "Versatile mail delivery agent (MDA)")
1951 (description "Procmail is a mail delivery agent (MDA) featuring support
1952for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail
1953can be sorted into separate files/directories and arbitrary commands can be
1954executed on mail arrival. Procmail is considered stable, but is no longer
1955maintained.")
7e3b537c
TGR
1956 (license license:gpl2+))) ;; procmail allows to choose the
1957 ;; nonfree Artistic License 1.0
1958 ;; as alternative to the GPL2+.
1959 ;; This option is not listed here.
e90819c4 1960
61c30e9d
LF
1961(define-public khard
1962 (package
1963 (name "khard")
9a95985f 1964 (version "0.17.0")
61c30e9d
LF
1965 (source (origin
1966 (method url-fetch)
1967 (uri (pypi-uri name version))
1968 (sha256
1969 (base32
9a95985f 1970 "062nv4xkfsjc11k9m52dh6xjn9z68a4a6x1s8z05wwv4jbp1lkhn"))))
61c30e9d
LF
1971 (build-system python-build-system)
1972 (arguments
2385012b
EF
1973 `(#:phases
1974 (modify-phases %standard-phases
70333ee6 1975 (add-after 'install 'install-completions
2385012b
EF
1976 (lambda* (#:key outputs #:allow-other-keys)
1977 (let* ((out (assoc-ref outputs "out"))
70333ee6
EF
1978 (zsh (string-append out "/share/zsh/site-functions")))
1979 (copy-recursively "misc/zsh" zsh)
2385012b 1980 #t))))))
82680f80
TLC
1981 (native-inputs
1982 `(("python-setuptools-scm" ,python-setuptools-scm)))
d312bbfa 1983 (inputs
224b1c83
EF
1984 `(("python-atomicwrites" ,python-atomicwrites)
1985 ("python-configobj" ,python-configobj)
224b1c83
EF
1986 ("python-ruamel.yaml" ,python-ruamel.yaml)
1987 ("python-unidecode" ,python-unidecode)
1988 ("python-vobject" ,python-vobject)))
61c30e9d
LF
1989 (synopsis "Console address book using CardDAV")
1990 (description "Khard is an address book for the console. It creates, reads,
1991modifies and removes CardDAV address book entries at your local machine. For
1992synchronizing with a remote address book, @command{vdirsyncer} is recommended.
1993Khard can also be used from within the email client @command{mutt}.")
1994 (home-page "https://github.com/scheibler/khard")
7e3b537c 1995 (license license:gpl3+)))
be0c5733
DM
1996
1997(define-public perl-mail-spf
27f172a9
TGR
1998 (package
1999 (name "perl-mail-spf")
2000 (version "2.9.0")
2001 (source
2002 (origin
2003 (method url-fetch)
2004 (uri (string-append
2005 "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v"
be0c5733
DM
2006 version
2007 ".tar.gz"))
27f172a9
TGR
2008 (sha256
2009 (base32 "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1"))))
2010 (build-system perl-build-system)
2011 (native-inputs
2012 `(("perl-module-build" ,perl-module-build)
2013 ("perl-net-dns-resolver-programmable"
2014 ,perl-net-dns-resolver-programmable)))
2015 (arguments
2016 `(#:phases
2017 (modify-phases %standard-phases
2018 (add-before 'configure 'modify-Build.PL
2019 (lambda* (#:key outputs #:allow-other-keys)
2020 (substitute* "Build.PL"
2021 (("'/usr/sbin'") (string-append "'"
2022 (assoc-ref outputs "out")
2023 "/sbin'")))
be0c5733 2024 #t)))))
27f172a9
TGR
2025 (inputs
2026 `(("perl-error" ,perl-error)
2027 ("perl-net-dns" ,perl-net-dns)
2028 ("perl-netaddr-ip" ,perl-netaddr-ip)
2029 ("perl-uri" ,perl-uri)))
2030 (home-page "https://metacpan.org/release/Mail-SPF")
2031 (synopsis "Perl implementation of Sender Policy Framework")
2032 (description "Mail::SPF is the Sender Policy Framework implemented
be0c5733 2033in Perl.")
7e3b537c 2034 (license license:bsd-3)))
24262239 2035
f115d817
JL
2036(define-public perl-mail-authenticationresults
2037 (package
2038 (name "perl-mail-authenticationresults")
2039 (version "1.20180923")
2040 (source (origin
2041 (method url-fetch)
2042 (uri (string-append
2043 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2044 "Mail-AuthenticationResults-" version ".tar.gz"))
2045 (sha256
2046 (base32
2047 "1g1wym9vcbhldwvi4w5pl0fhd4jh2icj975awf4wr5xmkli9mxbz"))))
2048 (build-system perl-build-system)
2049 (native-inputs
2050 `(("perl-test-exception" ,perl-test-exception)))
2051 (home-page "https://metacpan.org/release/Mail-AuthenticationResults")
2052 (synopsis "Object Oriented Authentication-Results Headers")
2053 (description "Mail::AuthenticationResults parses the message header field
2054that indicates the message authentication status as per RFC7601. This module
2055is not fully compliant with the RFC but it tries to implement most styles of
2056Authentication-Results header seen in the wild.")
7e3b537c 2057 (license license:perl-license)))
f115d817 2058
930c52ae
JL
2059(define-public perl-mail-dkim
2060 (package
2061 (name "perl-mail-dkim")
3b27ffec 2062 (version "0.58")
930c52ae
JL
2063 (source (origin
2064 (method url-fetch)
2065 (uri (string-append
2066 "mirror://cpan/authors/id/M/MB/MBRADSHAW/Mail-DKIM-"
2067 version
2068 ".tar.gz"))
2069 (sha256
2070 (base32
3b27ffec 2071 "0cgkal65qqcy57b21lgij90ba36wl66byw9i76g5yhwaa8ms8hqa"))))
930c52ae
JL
2072 (build-system perl-build-system)
2073 (propagated-inputs
2074 `(("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2075 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2076 ("perl-mailtools" ,perl-mailtools)
2077 ("perl-net-dns" ,perl-net-dns)))
2078 (native-inputs
2079 `(("perl-net-dns-resolver-mock" ,perl-net-dns-resolver-mock)
2080 ("perl-test-requiresinternet" ,perl-test-requiresinternet)
2081 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
2082 (home-page "https://metacpan.org/release/Mail-DKIM")
2083 (synopsis "Signs/verifies Internet mail with DKIM/DomainKey signatures")
2084 (description "Mail::DKIM is a Perl module that implements the new Domain
2085Keys Identified Mail (DKIM) standard, and the older Yahoo! DomainKeys standard,
2086both of which sign and verify emails using digital signatures and DNS records.
2087Mail-DKIM can be used by any Perl program that wants to provide support for
2088DKIM and/or DomainKeys.")
7e3b537c 2089 (license license:gpl3+)))
930c52ae 2090
8582202c
JL
2091(define-public dkimproxy
2092 (package
2093 (name "dkimproxy")
2094 (version "1.4.1")
2095 (source (origin
2096 (method url-fetch)
2097 (uri (string-append
2098 "mirror://sourceforge/dkimproxy/dkimproxy/"
2099 version "/dkimproxy-" version ".tar.gz"))
2100 (sha256
2101 (base32
66e39000
TGR
2102 "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75"))
2103 (patches
2104 (search-patches "dkimproxy-add-ipv6-support.patch"))))
8582202c
JL
2105 (build-system gnu-build-system)
2106 (arguments
2107 `(#:phases
2108 (modify-phases %standard-phases
2109 (add-after 'install 'make-wrapper
2110 (lambda* (#:key inputs outputs #:allow-other-keys)
8c07824c
TGR
2111 (let* ((out (assoc-ref outputs "out"))
2112 (wrap.pl (lambda (scripts keys)
2113 (for-each
2114 (lambda (script)
2115 (wrap-program (string-append out script)
2116 `("PERL5LIB" ":" prefix
2117 ,(map (λ (input)
2118 (string-append
2119 (assoc-ref inputs input)
2120 "/lib/perl5/site_perl"))
2121 keys))))
2122 scripts))))
2123 (wrap.pl (list "/bin/dkimproxy.in"
2124 "/bin/dkimproxy.out")
2125 (list "perl-crypt-openssl-rsa"
2126 "perl-io-socket-inet6"
2127 "perl-mailtools"
2128 "perl-mail-authenticationresults"
2129 "perl-mail-dkim"
2130 "perl-net-dns"
2131 "perl-net-server"
2132 "perl-socket6"))
28e4c3bb
TGR
2133 (wrap.pl (list "/bin/dkim_responder.pl")
2134 (list "perl-crypt-openssl-rsa"
2135 "perl-mail-dkim"
2136 "perl-mailtools"
2137 "perl-mime-tools"
2138 "perl-net-dns"
2139 "perl-timedate"))
8c07824c 2140 #t))))))
8582202c
JL
2141 (inputs
2142 `(("perl" ,perl)
2143 ("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
66e39000 2144 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
8582202c
JL
2145 ("perl-mailtools" ,perl-mailtools)
2146 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2147 ("perl-mail-dkim" ,perl-mail-dkim)
28e4c3bb 2148 ("perl-mime-tools" ,perl-mime-tools)
8582202c 2149 ("perl-net-dns" ,perl-net-dns)
66e39000 2150 ("perl-net-server" ,perl-net-server)
28e4c3bb
TGR
2151 ("perl-socket6" ,perl-socket6)
2152 ("perl-timedate" ,perl-timedate)))
8582202c 2153 (home-page "http://dkimproxy.sourceforge.net/")
d045dce1
TGR
2154 (synopsis "SMTP proxy to sign and verify Internet mail with DKIM headers")
2155 (description
2156 "DKIMproxy is an SMTP proxy that signs and verifies Internet mail using the
2157@code{Mail::DKIM} Perl module. It comprises two separate proxies: an outbound
8582202c 2158proxy for signing outgoing email, and an inbound proxy for verifying signatures
d045dce1
TGR
2159of incoming messages.
2160
2161It was designed for Postfix, but can be used to add DKIM support to nearly any
2162existing mail server. With Postfix, the proxies can operate as either
8582202c 2163@code{Before-Queue} or @code{After-Queue} content filters.")
7e3b537c 2164 (license license:gpl2+)))
8582202c 2165
24262239
CL
2166(define-public mb2md
2167 (package
2168 (name "mb2md")
2169 (version "3.20")
2170 (source (origin
2171 (method url-fetch)
2172 (uri (string-append
2173 "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-"
2174 version ".pl.gz"))
2175 (sha256
2176 (base32
2177 "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg"))))
2178 (build-system trivial-build-system)
2179 (arguments
2180 '(#:modules ((guix build utils))
2181 #:builder
2182 (begin
2183 (use-modules (guix build utils))
2184 (let* ((source (assoc-ref %build-inputs "source"))
2185 (out (assoc-ref %outputs "out"))
2186 (bin (string-append out "/bin"))
2187 (perl (assoc-ref %build-inputs "perl"))
2188 (gzip (assoc-ref %build-inputs "gzip"))
2189 (perl-timedate (assoc-ref %build-inputs "perl-timedate"))
2190 (perl5lib (string-append perl-timedate "/lib/perl5/site_perl")))
2191 (mkdir-p bin)
2192 (with-directory-excursion bin
2193 (copy-file source "mb2md.gz")
e3cfef22 2194 (invoke (string-append gzip "/bin/gzip") "-d" "mb2md.gz")
24262239
CL
2195 (substitute* "mb2md"
2196 (("#!/usr/bin/perl")
2197 (string-append "#!/usr/bin/perl -I " perl5lib)))
2198 (patch-shebang "mb2md" (list (string-append perl "/bin")))
2199 (chmod "mb2md" #o555))
2200 #t))))
c695fb76 2201 (native-inputs `(("gzip" ,gzip)))
24262239
CL
2202 (inputs `(("perl" ,perl)
2203 ("perl-timedate" ,perl-timedate)))
2204 (home-page "http://batleth.sapienti-sat.org/projects/mb2md/")
2205 (synopsis "Mbox to maildir converter")
2206 (description
2207 "Mb2md is a Perl script that takes one or more mbox format files and
2208converts them to maildir format directories.")
7e3b537c 2209 (license license:public-domain)))
e0d7b421
AI
2210
2211(define-public mpop
2212 (package
2213 (name "mpop")
bfdce9ff 2214 (version "1.4.10")
e0d7b421
AI
2215 (source
2216 (origin
2217 (method url-fetch)
1497b95c 2218 (uri (string-append "https://marlam.de/mpop/releases/"
822c8501 2219 "mpop-" version ".tar.xz"))
e0d7b421 2220 (sha256
bfdce9ff 2221 (base32 "1243hazpiwgvz2m3p48cdh0yw1019i6xjxgc7qyhmxcdy0inb6wy"))))
e0d7b421
AI
2222 (build-system gnu-build-system)
2223 (inputs
fb5ecdec 2224 `(("gnutls" ,gnutls)))
e0d7b421
AI
2225 (native-inputs
2226 `(("pkg-config" ,pkg-config)))
1497b95c 2227 (home-page "https://marlam.de/mpop/")
e0d7b421
AI
2228 (synopsis "POP3 mail client")
2229 (description "mpop is a small and fast POP3 client suitable as a
2230fetchmail replacement.
2231
2232mpop supports multiple accounts, header based mail filtering, delivery
40b1cee6
TGR
2233to mbox files, maildir folders or an @acronym{MDA, Mail Delivery Agent},
2234TLS/SSL, several authentication methods, @acronym{IDN, Internationalized Domain
2235Names} and SOCKS proxies.")
7e3b537c 2236 (license license:gpl3+)))
74c0282c 2237
2238(define-public mhonarc
2239 (package
2240 (name "mhonarc")
2241 (version "2.6.19")
2242 (source
2243 (origin
2244 (method url-fetch)
2245 (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-"
2246 version ".tar.gz"))
2247 (sha256
2248 (base32
2249 "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq"))))
2250 (build-system perl-build-system)
2251 (home-page "https://www.mhonarc.org/")
2252 (synopsis "Create HTML archives of mail/news messages")
2253 (description
2254 "MHonArc is a Perl mail-to-HTML converter. MHonArc
2255provides HTML mail archiving with index, mail thread linking,
2256etc; plus other capabilities including support for MIME and
2257powerful user customization features.")
7e3b537c 2258 (license license:gpl2+)))
5d87088c
JD
2259
2260
2261(define-public sendmail
2262 (package
2263 (name "sendmail")
2264 (version "8.15.2")
2265 (source
2266 (origin
2267 (method url-fetch)
2268 (uri (string-append
2269 "ftp://ftp.sendmail.org/pub/sendmail/sendmail."
2270 version ".tar.gz"))
2271 (sha256
2272 (base32
2273 "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94"))))
2274 (build-system gnu-build-system)
2275 (arguments
2276 `(#:phases
2277 (modify-phases %standard-phases
2278 (add-before 'build 'replace-/bin/sh
2279 (lambda _
2280 (substitute*
2281 (append
2282 (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio"
2283 "contrib/mmuegel" "devtools/bin/configure.sh")
2284 (find-files "." ".*\\.m4")
2285 (find-files "." ".*\\.cf"))
19527952 2286 (("/bin/sh") (which "sh")))
5d87088c
JD
2287
2288 (substitute* "devtools/bin/Build"
19527952 2289 (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh"))))
5d87088c
JD
2290 #t))
2291 (replace 'configure
2292 (lambda _
2293
2294 ;; Render harmless any attempts to chown or chgrp
2295 (substitute* "devtools/bin/install.sh"
2296 (("owner=\\$2") "owner=''")
2297 (("group=\\$2") "group=''"))
2298
2299 (with-output-to-file "devtools/Site/site.config.m4"
2300 (lambda ()
2301 (format #t "
2302define(`confCC', `gcc')
2303define(`confOPTIMIZE', `-g -O2')
2304define(`confLIBS', `-lresolv')
2305define(`confINSTALL', `~a/devtools/bin/install.sh')
2306define(`confDEPEND_TYPE', `CC-M')
2307define(`confINST_DEP', `')
55492129
TGR
2308" (getcwd))))
2309 #t))
5d87088c
JD
2310 (replace 'build
2311 (lambda _
55492129
TGR
2312 (invoke "sh" "Build")
2313 (with-directory-excursion "cf/cf"
2314 (copy-file "generic-linux.mc" "sendmail.mc")
2315 (invoke "sh" "Build" "sendmail.cf"))
2316 #t))
5d87088c
JD
2317 (add-before 'install 'pre-install
2318 (lambda _
2319 (let ((out (assoc-ref %outputs "out")))
2320 (mkdir-p (string-append out "/usr/bin"))
2321 (mkdir-p (string-append out "/usr/sbin"))
2322 (mkdir-p (string-append out "/etc/mail"))
2323 (setenv "DESTDIR" out)
2324 (with-directory-excursion "cf/cf"
55492129
TGR
2325 (invoke "sh" "Build" "install-cf"))
2326 #t))))
5d87088c
JD
2327 ;; There is no make check. There are some post installation tests, but those
2328 ;; require root privileges
2329 #:tests? #f))
2330 (inputs
2331 `(("m4" ,m4)
2332 ("perl" ,perl)))
2333 (home-page "http://sendmail.org")
2334 (synopsis
2335 "Highly configurable Mail Transfer Agent (MTA)")
2336 (description
2337 "Sendmail is a mail transfer agent (MTA) originally developed by Eric
2338Allman. It is highly configurable and supports many delivery methods and many
2339transfer protocols.")
7e3b537c
TGR
2340 (license (license:non-copyleft "file://LICENSE"
2341 "See LICENSE in the distribution."))))
5d87088c 2342
8b53366c 2343(define-public opensmtpd
2344 (package
2345 (name "opensmtpd")
6381565d 2346 (version "6.7.1p1")
4eb57ca8
TGR
2347 (source
2348 (origin
2349 (method url-fetch)
2350 (uri (string-append "https://www.opensmtpd.org/archives/"
2351 "opensmtpd-" version ".tar.gz"))
2352 (sha256
6381565d 2353 (base32 "1jh8vxfajm1mvp1v5yh6llrhjzv0n9fgab88mlwllwqynhcfjy3l"))))
4eb57ca8
TGR
2354 (build-system gnu-build-system)
2355 (inputs
2356 `(("bdb" ,bdb)
2357 ("libasr" ,libasr)
2358 ("libevent" ,libevent)
ba6b48b8 2359 ("libressl" ,libressl) ; recommended, and supports e.g. ECDSA
4eb57ca8
TGR
2360 ("linux-pam" ,linux-pam)
2361 ("zlib" ,zlib)))
2362 (native-inputs
2363 `(("bison" ,bison)
2364 ("groff" ,groff))) ; for man pages
2365 (arguments
2366 `(#:configure-flags
2367 (list "--localstatedir=/var"
2368 ;; This is the default only if it exists at build time—it doesn't.
2369 "--with-path-socket=/var/run"
2370 "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt"
2371 "--with-user-smtpd=smtpd"
2372 "--with-user-queue=smtpq" "--with-group-queue=smtpq"
2373 "--with-auth-pam"
2374 "--with-table-db")
2375 #:phases
2376 (modify-phases %standard-phases
838c4b10
MC
2377 ;; See: https://github.com/OpenSMTPD/OpenSMTPD/issues/1069.
2378 (add-after 'unpack 'fix-smtpctl-encrypt-bug
2379 (lambda _
2380 (substitute* "smtpd/smtpctl.c"
2381 (("\"encrypt\", \"--\",")
2382 "\"encrypt\","))
2383 #t))
4eb57ca8
TGR
2384 ;; Fix some incorrectly hard-coded external tool file names.
2385 (add-after 'unpack 'patch-FHS-file-names
2386 (lambda _
2387 (substitute* "smtpd/smtpctl.c"
2388 ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't.
2389 (("/bin/cat") (which "cat")))
2390 (substitute* "smtpd/mda_unpriv.c"
2391 (("/bin/sh") (which "sh")))
2392 #t))
2393 ;; OpenSMTPD provides a single smtpctl utility to control both the
2394 ;; daemon and the local submission subsystem. To accomodate systems
2395 ;; that require historical interfaces such as sendmail, newaliases or
2396 ;; makemap, smtpctl operates in compatibility mode if called with the
2397 ;; historical name.
2398 (add-after 'install 'install-compability-links
2399 (lambda* (#:key outputs #:allow-other-keys)
2400 (let* ((out (assoc-ref outputs "out"))
2401 (sbin (string-append out "/sbin/")))
2402 (for-each (lambda (command)
2403 (symlink "smtpctl" (string-append sbin command)))
2404 (list "mailq" "makemap" "newaliases"
2405 "send-mail" "sendmail")))
2406 #t)))))
2407 (synopsis "Lightweight SMTP daemon")
2408 (description
2409 "OpenSMTPD is an implementation of server-side @acronym{SMTP, Simple Mail
2410Transfer Protocol}, with some additional standard extensions. It allows
2411ordinary machines to exchange e-mails with other systems speaking the SMTP
2412protocol, or to deliver them to local users.
2413
2414In order to simplify the use of SMTP, OpenSMTPD implements a smaller set of
2415functionality than those available in other SMTP daemons. The objective is to
2416provide enough features to satisfy typical usage at the risk of unsuitability
2417to esoteric or niche requirements.")
2418 (home-page "https://www.opensmtpd.org")
7e3b537c
TGR
2419 (license (list license:bsd-2 license:bsd-3 license:bsd-4
2420 (license:non-copyleft "file://COPYING")
2421 license:public-domain license:isc license:openssl))))
4eb57ca8 2422
152ffe7c 2423(define-public opensmtpd-extras
2424 (package
2425 (name "opensmtpd-extras")
4fdf4b6c 2426 (version "6.7.1")
152ffe7c 2427 (source (origin
2428 (method url-fetch)
2429 (uri (string-append "https://www.opensmtpd.org/archives/"
6422615f 2430 "opensmtpd-extras-" version ".tar.gz"))
152ffe7c 2431 (sha256
2432 (base32
4fdf4b6c 2433 "1b1mx71bvmv92lbm08wr2p60g3qhikvv3n15zsr6dcwbk9aqahzq"))))
152ffe7c 2434 (build-system gnu-build-system)
4fdf4b6c
TGR
2435 (native-inputs
2436 `(("pkg-config" ,pkg-config)))
152ffe7c 2437 (inputs
2438 `(("libressl" ,libressl)
2439 ("libevent" ,libevent)
4fdf4b6c 2440 ("mysql" ,mysql)
152ffe7c 2441 ("opensmtpd" ,opensmtpd)
152ffe7c 2442 ("postgresql" ,postgresql)
4fdf4b6c
TGR
2443 ("python" ,python-2)
2444 ("sqlite" ,sqlite)))
152ffe7c 2445 (arguments
4fdf4b6c
TGR
2446 `(#:configure-flags
2447 (list "--sysconfdir=/etc"
2448 "--localstatedir=/var"
2449
2450 "--with-queue-null"
2451 "--with-queue-python"
2452 "--with-queue-ram"
2453 "--with-queue-stub"
2454
2455 "--with-table-ldap"
2456 "--with-table-mysql"
2457 "--with-table-postgres"
2458 ;; "--with-table-redis" ; TODO: package hiredis
2459 "--with-table-socketmap"
2460 "--with-table-passwd"
2461 "--with-table-python"
2462 "--with-table-sqlite"
2463 "--with-table-stub"
2464
2465 "--with-scheduler-ram"
2466 "--with-scheduler-stub"
2467 "--with-scheduler-python"
2468
2469 "--with-user-smtpd=smtpd"
2470
2471 ;; We have to configure it like this because the default checks for
2472 ;; for example Python in /usr/{,local/}bin and fails otherwise.
2473 (string-append "--with-python="
2474 (assoc-ref %build-inputs "python")))))
2475 (home-page "https://www.opensmtpd.org")
152ffe7c 2476 (synopsis "Extra tables, filters, and various other addons for OpenSMTPD")
2477 (description
2478 "This package provides extra tables, filters, and various other addons
2479for OpenSMTPD to extend its functionality.")
7e3b537c
TGR
2480 (license (list license:bsd-2 license:bsd-3 ; openbsd-compat
2481 license:isc)))) ; everything else
6d3dda4f 2482
b0c8358f
EF
2483(define-public mailman
2484 (package
2485 (name "mailman")
2486 (version "3.3.1")
2487 (source
2488 (origin
2489 (method url-fetch)
2490 (uri (pypi-uri "mailman" version))
2491 (sha256
2492 (base32
2493 "0idfiv48jjgc0jq4731094ddhraqq8bxnwmjk6sg5ask0jss9kxq"))))
2494 (build-system python-build-system)
2495 (propagated-inputs
2496 `(("gunicorn" ,gunicorn)
2497 ("python-aiosmtpd" ,python-aiosmtpd)
2498 ("python-alembic" ,python-alembic)
2499 ("python-atpublic" ,python-atpublic)
2500 ("python-authheaders" ,python-authheaders)
2501 ("python-authres" ,python-authres)
2502 ("python-click" ,python-click)
2503 ("python-dateutil" ,python-dateutil)
2504 ("python-dnspython" ,python-dnspython)
2505 ("python-falcon" ,python-falcon)
2506 ("python-flufl-bounce" ,python-flufl-bounce)
2507 ("python-flufl-i18n" ,python-flufl-i18n)
2508 ("python-flufl-lock" ,python-flufl-lock)
2509 ("python-importlib-resources" ,python-importlib-resources)
2510 ("python-lazr-config" ,python-lazr-config)
2511 ("python-passlib" ,python-passlib)
2512 ("python-requests" ,python-requests)
2513 ("python-sqlalchemy" ,python-sqlalchemy)
2514 ("python-zope-component" ,python-zope-component)
2515 ("python-zope-configuration" ,python-zope-configuration)
2516 ("python-zope-event" ,python-zope-event)
2517 ("python-zope-interface" ,python-zope-interface)))
2518 (native-inputs
2519 `(("python-nose" ,python-nose)))
2520 (home-page "https://www.list.org")
2521 (synopsis "Mailing list manager")
2522 (description
2523 "GNU Mailman is software for managing email discussion and mailing
2524lists. Both users and administrators generally perform their actions in a
2525web interface, although email and command-line interfaces are also provided.
2526The system features built-in archiving, automatic bounce processing, content
2527filtering, digest delivery, and more.")
2528 (license license:gpl3+)))
2529
6d3dda4f 2530(define-public python-mailmanclient
2531 (package
2532 (name "python-mailmanclient")
f1742465 2533 (version "3.3.1")
6d3dda4f 2534 (source
2535 (origin
2536 (method url-fetch)
2537 (uri (pypi-uri "mailmanclient" version))
2538 (sha256
2539 (base32
f1742465 2540 "0pjgzpvhdb6ql8asb20xr8d01m646zpghmcp9fmscks0n1k4di4g"))))
6d3dda4f 2541 (build-system python-build-system)
2542 (arguments
2543 `(#:tests? #f)) ; Requires mailman running
f22efa01 2544 (propagated-inputs
f1742465
EF
2545 `(("python-requests" ,python-requests)))
2546 ;(native-inputs
2547 ; `(("mailman" ,mailman)
2548 ; ("python-falcon" ,python-falcon)
2549 ; ("python-pytest" ,python-pytest)
2550 ; ("python-pytest-services" ,python-pytest-services)))
2551 (home-page "https://www.list.org/")
6d3dda4f 2552 (synopsis "Python bindings for the Mailman 3 REST API")
2553 (description
2554 "The mailmanclient library provides official Python bindings for
2555the GNU Mailman 3 REST API.")
f1742465 2556 (properties `((python2-variant . ,(delay python2-mailmanclient))))
7e3b537c 2557 (license license:lgpl3+)))
6d3dda4f 2558
f1742465 2559;; This is the last version which supports Python-2.
6d3dda4f 2560(define-public python2-mailmanclient
f1742465
EF
2561 (let ((base (package-with-python2
2562 (strip-python2-variant python-mailmanclient))))
2563 (package
2564 (inherit base)
2565 (version "3.1.1")
2566 (source
2567 (origin
2568 (method url-fetch)
2569 (uri (pypi-uri "mailmanclient" version))
2570 (sha256
2571 (base32
2572 "0fdfs5g3pf30v2i7w18pdkv9xnfxmfcv66mzv56dck0a1igq07m3"))))
2573 (propagated-inputs
2574 `(("python2-six" ,python2-six)
2575 ("python2-httplib2" ,python2-httplib2))))))
3163a289 2576
2577(define-public mlmmj
2578 (package
2579 (name "mlmmj")
28b48c87 2580 (version "1.3.0")
3163a289 2581 (source
2582 (origin
2583 (method url-fetch)
2584 (uri (string-append "http://mlmmj.org/releases/mlmmj-"
2585 version ".tar.bz2"))
2586 (sha256
2587 (base32
28b48c87 2588 "0hpj10qad821ci11si8xc2qnmkzfn90y13s43fm4fca38f0qjp8w"))))
3163a289 2589 (build-system gnu-build-system)
2590 (inputs
2591 `(("perl" ,perl))) ; For "contrib/web/"
2592 (native-inputs
2593 `(("pkg-config" ,pkg-config)))
2594 (arguments
2595 `(#:configure-flags
2596 ;; mlmmj-receive-strip is a replacement for mlmmj-receive
2597 ;; It opens the files control/mimedeny and control/mimestrip to get a list
2598 ;; of mimetypes for parts of multipart/mime messages that should be denied
2599 ;; or stripped. The parts then get stripped directly when the mail is
2600 ;; received. mlmmj-receive-strip also appends an extra header
2601 ;; X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted
2602 ;; mime parts
2603 (list "--enable-receive-strip")
2604 #:phases
2605 (modify-phases %standard-phases
2606 (add-before 'install 'install-contrib
2607 (lambda* (#:key outputs #:allow-other-keys)
2608 (let* ((out (assoc-ref outputs "out"))
2609 (share (string-append out "/share/mlmmj"))
2610 (contrib (string-append share "/contrib/web"))
2611 (texts (string-append share "/listtexts")))
2612 (copy-recursively "contrib/web/" contrib)
2613 (copy-recursively "listtexts" texts)
2614 (rename-file texts (string-append share "/texts"))
2615 #t))))))
2616 (home-page "http://mlmmj.org")
2617 (synopsis "Mailing list managing made joyful")
2618 (description
2619 "Mlmmj is a simple and slim mailing list manager (MLM) inspired by ezmlm.
2620It works with many different Mail Transport Agents (MTAs) and is simple for a
d1e4ad1b 2621system administrator to install, configure and integrate with other software.
3163a289 2622As it uses very few resources, and requires no daemons, it is ideal for
2623installation on systems where resources are limited. Its features include:
2624@enumerate
2625@item Archive, Custom headers / footer,
2626@item Fully automated bounce handling (similar to ezmlm),
2627@item Complete requeueing functionality, Moderation functionality, Subject prefix,
2628@item Subscribers only posting, Regular expression access control,
2629@item Functionality to retrieve old posts, Web interface, Digests,
2630@item No-mail subscription, VERP support,
2631@item Delivery Status Notification (RFC1891) support,
2632@item Rich and customisable texts for automated operations.
2633@end enumerate\n")
2634 (license license:expat)))
3a263368 2635
ba7816a2
EF
2636(define-public python-django-mailman3
2637 (package
2638 (name "python-django-mailman3")
2639 (version "1.3.4")
2640 (source
2641 (origin
2642 (method url-fetch)
2643 (uri (pypi-uri "django-mailman3" version))
2644 (sha256
2645 (base32
2646 "1yrm7wpjy34xai72vn2vkhc9131cdrbqy08rrabf36kynj5vcdvy"))))
2647 (build-system python-build-system)
2648 (arguments
2649 '(#:phases
2650 (modify-phases %standard-phases
2651 (replace 'check
2652 (lambda _
2653 (setenv "DJANGO_SETTINGS_MODULE"
2654 "django_mailman3.tests.settings_test")
2655 (invoke "django-admin" "test"
2656 "--pythonpath=."))))))
2657 (propagated-inputs
2658 `(("python-django" ,python-django)
2659 ("python-django-allauth" ,python-django-allauth)
2660 ("python-django-gravatar2" ,python-django-gravatar2)
2661 ("python-mailmanclient" ,python-mailmanclient)
2662 ("python-pytz" ,python-pytz)))
2663 (native-inputs
2664 `(("python-mock" ,python-mock)))
2665 (home-page "https://gitlab.com/mailman/django-mailman3")
2666 (synopsis "Django library to help interaction with Mailman")
2667 (description
2668 "This package contains libraries and templates for Django-based interfaces
2669interacting with Mailman.")
ff7a6c6d 2670 (properties `((python2-variant . ,(delay python2-django-mailman3))))
ba7816a2
EF
2671 (license license:gpl3+)))
2672
2673;; This is the last version to support Python-2.
ea3b9f7b 2674(define-public python2-django-mailman3
8a3741e6 2675 (package
ea3b9f7b 2676 (name "python2-django-mailman3")
bdf0c644 2677 (version "1.1.0")
8a3741e6 2678 (source
2679 (origin
2680 (method url-fetch)
2681 (uri (pypi-uri "django-mailman3" version))
2682 (sha256
2683 (base32
bdf0c644 2684 "1xjdkgfjwhgyrp5nxw65dcpcsr98ygj6856sp0bwkrmyxpd1xxk2"))))
8a3741e6 2685 (build-system python-build-system)
ea3b9f7b
CB
2686 (arguments
2687 `(#:phases
2688 (modify-phases %standard-phases
2689 (replace 'check
2690 (lambda _
dcfdaa15
TGR
2691 (invoke "django-admin"
2692 "test"
2693 "--settings=django_mailman3.tests.settings_test"
2694 "django_mailman3"))))
ea3b9f7b 2695 #:python ,python-2))
8a3741e6 2696 (inputs
ea3b9f7b 2697 `(("python2-django" ,python2-django)))
8a3741e6 2698 (propagated-inputs
ea3b9f7b
CB
2699 `(("python2-requests" ,python2-requests)
2700 ("python2-requests-oauthlib" ,python2-requests-oauthlib)
2701 ("python2-openid" ,python2-openid)
2702 ("python2-mailmanclient" ,python2-mailmanclient)
2703 ("python2-django-allauth" ,python2-django-allauth)
2704 ("python2-django-gravatar2" ,python2-django-gravatar2)
2705 ("python2-pytz" ,python2-pytz)))
8a3741e6 2706 (home-page "https://gitlab.com/mailman/django-mailman3")
2707 (synopsis "Django library for Mailman UIs")
2708 (description
2709 "Libraries and templates for Django-based interfaces
2710interacting with Mailman.")
7e3b537c 2711 (license license:gpl3+)))
8a3741e6 2712
a3bdebef
EF
2713(define-public python-mailman-hyperkitty
2714 (package
2715 (name "python-mailman-hyperkitty")
2716 (version "1.1.0")
2717 (source
2718 (origin
2719 (method url-fetch)
2720 (uri (pypi-uri "mailman-hyperkitty" version))
2721 (sha256
2722 (base32
2723 "1lfqa9admhvdv71f528jmz2wl0i5cv77v6l64px2pm4zqr9ckkjx"))
2724 (patches
2725 (list
2726 (origin
2727 ;; see: https://gitlab.com/mailman/mailman-hyperkitty/issues/17
2728 ;; fixes test_archive_message_unserializable
2729 (method url-fetch)
2730 (uri "https://salsa.debian.org/mailman-team/mailman-hyperkitty/raw/debian/1.1.0-9/debian/patches/0002-Skip-the-test_archive_message_unserializable.patch")
2731 (sha256
2732 (base32
2733 "0p1fwm46c4bl81lvsg3kjhn2r1lwgkpgxamb3xyqn7h9qdrw10hw")))))))
2734 (build-system python-build-system)
2735 (propagated-inputs
2736 `(("python-requests" ,python-requests)
2737 ("python-zope-interface" ,python-zope-interface)))
2738 (inputs
2739 `(("mailman" ,mailman)))
2740 (native-inputs
2741 `(("python-mock" ,python-mock)
2742 ("python-nose" ,python-nose)
2743 ("python-nose2" ,python-nose2)))
2744 (home-page "https://gitlab.com/mailman/mailman-hyperkitty/")
2745 (synopsis "Mailman archiver plugin for HyperKitty")
2746 (description
2747 "Mailman3 allows emails sent to its mailing lists to be archived by any
2748software provided that there is a plugin (loadable by Mailman3) designed to
2749communicate with it properly. This module contains a Mailman3 archiver plugin
2750which sends emails to HyperKitty, the official Mailman3 web archiver.")
2751 (license license:gpl3+)))
2752
6fe7d216
EF
2753(define-public python-hyperkitty
2754 (package
2755 (name "python-hyperkitty")
2756 (version "1.3.3")
2757 (source
2758 (origin
2759 (method url-fetch)
2760 (uri (pypi-uri "HyperKitty" version))
2761 (sha256
2762 (base32
2763 "0p85r9q6mn5as5b39xp9hkkipnk0156acx540n2ygk3qb3jd4a5n"))))
2764 (build-system python-build-system)
2765 (arguments
2766 '(#:phases
2767 (modify-phases %standard-phases
2768 (replace 'check
2769 (lambda _
2770 ;; It is unclear why this test fails.
2771 (substitute* "hyperkitty/tests/commands/test_import.py"
2772 (("def test_bad_content_type_part_two")
2773 "@SkipTest\n def test_bad_content_type_part_two"))
2774 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
2775 (invoke "example_project/manage.py" "test"
2776 "--settings=hyperkitty.tests.settings_test"))))))
2777 (propagated-inputs
2778 `(("python-dateutil" ,python-dateutil)
2779 ("python-django" ,python-django)
2780 ("python-django-compressor" ,python-django-compressor)
2781 ("python-django-extensions" ,python-django-extensions)
2782 ("python-django-gravatar2" ,python-django-gravatar2)
2783 ("python-django-haystack" ,python-django-haystack)
2784 ("python-django-mailman3" ,python-django-mailman3)
2785 ("python-django-q" ,python-django-q)
2786 ("python-djangorestframework" ,python-djangorestframework)
2787 ("python-flufl-lock" ,python-flufl-lock)
2788 ("python-mailmanclient" ,python-mailmanclient)
2789 ("python-networkx" ,python-networkx)
2790 ("python-pytz" ,python-pytz)
2791 ("python-robot-detection" ,python-robot-detection)))
2792 (native-inputs
2793 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2794 ("python-elasticsearch" ,python-elasticsearch)
2795 ("python-isort" ,python-isort)
2796 ("python-mock" ,python-mock)
2797 ("python-whoosh" ,python-whoosh)))
2798 (home-page "https://gitlab.com/mailman/hyperkitty")
2799 (synopsis "Web interface to access GNU Mailman v3 archives")
2800 (description
2801 "The hyperkitty Django app provides a web user interface to access GNU
2802Mailman3 archives, and manage it. This interface uses django, and requires
2803some configuration.")
2804 (license license:gpl3))) ; Some files are gpl2+
2805
d99a2add 2806(define-public postorius
2807 (package
2808 (name "postorius")
faec049c 2809 (version "1.3.3")
d99a2add 2810 (source
2811 (origin
2812 (method url-fetch)
faec049c 2813 (uri (pypi-uri "postorius" version))
d99a2add 2814 (sha256
2815 (base32
faec049c 2816 "08jn23gblbkfl09qlykbpsmp39mmach3sl69h1j5cd5kkx839rwa"))))
d99a2add 2817 (build-system python-build-system)
2818 (arguments
faec049c
EF
2819 '(#:phases
2820 (modify-phases %standard-phases
2821 (replace 'check
2822 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
2823 (add-installed-pythonpath inputs outputs)
2824 (if tests?
2825 (invoke "python" "example_project/manage.py" "test"
2826 "--settings=test_settings" "postorius")
2827 #t))))
2828 #:tests? #f)) ; Tests try to run a mailman instance to test against.
d99a2add 2829 (inputs
faec049c
EF
2830 `(("python-django" ,python-django)
2831 ("python-django-mailman3" ,python-django-mailman3)
2832 ("python-mailmanclient" ,python-mailmanclient)
2833 ("python-readme-renderer" ,python-readme-renderer)))
2834 (native-inputs
2835 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2836 ("python-isort" ,python-isort)
2837 ("python-mock" ,python-mock)
2838 ("python-vcrpy" ,python-vcrpy)))
d99a2add 2839 (home-page "https://gitlab.com/mailman/postorius")
2840 (synopsis "Web user interface for GNU Mailman")
2841 (description
2842 "Postorius is a Django app which provides a web user interface
2843to access GNU Mailman.")
7e3b537c 2844 (license (list license:gpl3+ license:lgpl3+))))
d99a2add 2845
3a263368 2846(define-public blists
2847 (package
2848 (name "blists")
18b1589b 2849 (version "2.0")
3a263368 2850 (source
2851 (origin
2852 (method url-fetch)
2853 (uri (string-append "http://download.openwall.net/pub/projects/"
2854 "blists/blists-" version ".tar.gz"))
2855 (sha256
2856 (base32
18b1589b 2857 "1xll5wn7py3bbncbwrj172f56nz75c9gwfsa80rwd96ss9gfmp3c"))))
3a263368 2858 (build-system gnu-build-system)
2859 (arguments
2860 `(#:tests? #f ; No tests
2861 #:phases
2862 (modify-phases %standard-phases
2863 (delete 'configure)
2864 (replace 'install
2865 (lambda* (#:key outputs #:allow-other-keys)
2866 (let* ((out (assoc-ref outputs "out"))
2867 (bin (string-append out "/bin")))
2868 (install-file "bindex" bin)
2869 (install-file "bit" bin)
2870 #t))))))
2871 (home-page "http://www.openwall.com/blists/")
2872 (synopsis "Web interface to mailing list archives")
2873 (description
2874 "Blists is a web interface to mailing list archives that works off
2875indexed mbox files. There are two programs: @code{bindex} and @code{bit}.
2876@code{bindex} generates or updates the index file (incremental updates
2877are supported). @code{bit} is a CGI/SSI program that generates web pages
2878on the fly. Both programs are written in C and are very fast.")
2879 (license license:expat)))
ed428a58
AI
2880
2881(define-public swaks
2882 (package
2883 (name "swaks")
f8072794 2884 (version "20190914.0")
ed428a58
AI
2885 (source
2886 (origin
2887 (method url-fetch)
2888 (uri (string-append
d72f59a4 2889 "https://jetmore.org/john/code/swaks/files/swaks-"
ed428a58
AI
2890 version ".tar.gz"))
2891 (sha256
2892 (base32
f8072794 2893 "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp"))))
ed428a58
AI
2894 (build-system perl-build-system)
2895 (inputs
2896 `(("perl-net-dns" ,perl-net-dns)
2897 ("perl-net-ssleay" ,perl-net-ssleay)))
2898 (arguments
2899 `(#:tests? #f ; No tests
2900 #:phases
2901 (modify-phases %standard-phases
2902 (delete 'configure)
2903 (replace 'build
2904 (lambda _
d72f59a4 2905 (invoke "pod2man" "doc/ref.pod" "swaks.1")))
ed428a58
AI
2906 (replace 'install
2907 (lambda* (#:key outputs #:allow-other-keys)
2908 (let ((out (assoc-ref outputs "out")))
2909 (install-file "swaks" (string-append out "/bin"))
2910 (install-file "swaks.1" (string-append out "/share/man/man1")))
2911 #t))
2912 (add-after 'install 'wrap-program
2913 (lambda* (#:key outputs #:allow-other-keys)
2914 (wrap-program (string-append (assoc-ref outputs "out")
2915 "/bin/swaks")
2916 `("PERL5LIB" ":" = (,(getenv "PERL5LIB"))))
2917 #t)))))
d72f59a4 2918 (home-page "https://jetmore.org/john/code/swaks/")
ed428a58
AI
2919 (synopsis "Featureful SMTP test tool")
2920 (description "Swaks is a flexible, scriptable, transaction-oriented SMTP
2921test tool. It handles SMTP features and extensions such as TLS,
2922authentication, and pipelining; multiple versions of the SMTP protocol
2923including SMTP, ESMTP, and LMTP; and multiple transport methods including
2924unix-domain sockets, internet-domain sockets, and pipes to spawned processes.
2925Options can be specified in environment variables, configuration files, and
2926the command line allowing maximum configurability and ease of use for
2927operators and scripters.")
7e3b537c 2928 (license license:gpl2+)))
b0eb2af2 2929
2930(define-public alpine
2931 (package
2932 (name "alpine")
0ca25073
TGR
2933 ;; Upstream doesn't use git tags, but does ‘tag’ their releases in the
2934 ;; commit message. Hence the lack of GIT-VERSIONing despite using a commit
2935 ;; ID below. Don't forget to update it…
d28692a7 2936 (version "2.22")
b0eb2af2 2937 (source
2938 (origin
0ca25073 2939 (method git-fetch)
b0eb2af2 2940 ;; There are two versions: the plain continuation of Alpine without extra
2941 ;; patches and the version which adds extra fixes. Every distro uses
2942 ;; the patched version, and so do we to not break expectations.
32f9cc33 2943 ;; http://alpine.freeiz.com/alpine/readme/README.patches
0ca25073
TGR
2944 (uri (git-reference
2945 (url "http://repo.or.cz/alpine.git")
d28692a7 2946 (commit "b50297779a4becb9ceca9c6b5b375d526fe3df78")))
0ca25073 2947 (file-name (git-file-name name version))
b0eb2af2 2948 (sha256
d28692a7 2949 (base32 "06js44fvdl7l33hfd4lsxpcd1cz3c0h796cswyzz0lkrzx89yl48"))
bc0eb347
TGR
2950 (modules '((guix build utils)))
2951 (snippet
2952 '(begin
2953 ;; Remove pre-built binaries scattered across the source repository.
2954 (for-each delete-file (find-files "." "\\.(dll|exe)"))
2955 #t))))
b0eb2af2 2956 (build-system gnu-build-system)
2957 (arguments
aa784dc8 2958 `(#:make-flags
1ca44ae3 2959 (list (string-append "CC=" ,(cc-for-target)))
b0eb2af2 2960 #:configure-flags (list (string-append "--with-ssl-include-dir="
2961 (assoc-ref %build-inputs "openssl")
2962 "/include/openssl")
2963 (string-append "--with-ssl-dir="
2964 (assoc-ref %build-inputs "openssl"))
2965 (string-append "--with-ssl-certs-dir="
2966 "/etc/ssl/certs/")
2967 (string-append "--with-ssl-lib-dir="
2968 (assoc-ref %build-inputs "openssl")
2969 "/lib")
2970 (string-append "--with-interactive-spellcheck="
2971 (assoc-ref %build-inputs "aspell")
03b6c474
TGR
2972 "/bin/aspell")
2973 "--with-date-stamp=Thu 1 Jan 01:00:01 CET 1970")
b0eb2af2 2974 #:phases
2975 (modify-phases %standard-phases
d28692a7
TGR
2976 (add-after 'unpack 'assume-shadow-passwords
2977 ;; Alpine's configure script confuses ‘shadow password support’ with
2978 ;; ‘/etc/shadow exists in the build environment’. It does not.
2979 (lambda _
2980 (substitute* "configure"
2981 (("test -f /etc/shadow") "true"))
2982 #t))
b0eb2af2 2983 (add-after 'unpack 'make-reproducible
2984 (lambda _
2985 ;; This removes time-dependent code to make alpine reproducible.
2986 (substitute* "pico/blddate.c"
2987 (("%02d-%s-%d") "1970-01-01"))
b0eb2af2 2988 #t)))))
2989 (inputs
2990 `(("ncurses" ,ncurses)
2991 ("openssl" ,openssl)
2992 ("gnutls" ,gnutls)
2993 ("openldap" ,openldap)
2994 ("cyrus-sasl" ,cyrus-sasl)
2995 ("mit-krb5" ,mit-krb5)
2996 ("aspell" ,aspell)
2997 ("tcl" ,tcl)
2998 ("linux-pam" ,linux-pam)))
da83224d 2999 (home-page "https://repo.or.cz/alpine.git")
b0eb2af2 3000 (synopsis "Alternatively Licensed Program for Internet News and Email")
3001 (description
3002 "Alpine is a text-based mail and news client. Alpine includes several
3003tools and applications:
3004@enumerate
3005@item alpine, the Alpine mailer
3006@item pico, the standalone text editor, GNU nano's predecessor
3007@item pilot, the standalone file system navigator
3008@end enumerate\n")
7e3b537c 3009 (license license:asl2.0)))
7c16151a
RS
3010
3011(define-public balsa
3012 (package
3013 (name "balsa")
e8c1e27f 3014 (version "2.6.1")
7c16151a
RS
3015 (source
3016 (origin
3017 (method url-fetch)
e9201659 3018 (uri (string-append "https://pawsa.fedorapeople.org/balsa/"
8f3f2c9b 3019 "balsa-" version ".tar.bz2"))
7c16151a 3020 (sha256
e8c1e27f 3021 (base32 "1xkxx801p7sbfkn0bh3cz85wra4xf1z1zhjqqc80z1z1nln7fhb4"))))
7c16151a
RS
3022 (build-system gnu-build-system)
3023 (arguments
3024 `(#:configure-flags
3025 '(;; Balsa tries to install additional MIME icons
3026 ;; under gtk+ directory.
3027 "--enable-extra-mimeicons=no"
3028 "--with-gtksourceview"
3029 "--with-canberra"
3030 "--with-spell-checker=gtkspell"
3031 "--with-gpgme"
3032 "--with-sqlite"
3033 "--with-compface"
3034 "--with-ldap")))
3035 (inputs
3036 `(("cyrus-sasl" ,cyrus-sasl)
3037 ("enchant" ,enchant)
3038 ("gdk-pixbuf" ,gdk-pixbuf)
7ff2159b 3039 ("gmime" ,gmime)
7c16151a
RS
3040 ("gnutls" ,gnutls)
3041 ("gpgme" ,gpgme)
3042 ("gtk+" ,gtk+)
f58b10cb 3043 ("gtksourceview" ,gtksourceview-3)
7c16151a
RS
3044 ("gtkspell3" ,gtkspell3)
3045 ("libcanberra" ,libcanberra)
3046 ("libesmtp" ,libesmtp)
7ff2159b 3047 ("libical" ,libical)
7c16151a 3048 ("libnotify" ,libnotify)
7ff2159b 3049 ("libsecret" ,libsecret)
7c16151a
RS
3050 ("openldap" ,openldap)
3051 ("sqlite" ,sqlite)
3052 ("webkitgtk" ,webkitgtk)))
3053 (native-inputs
3054 `(("compface" ,compface)
3055 ("glib" ,glib "bin")
3056 ("intltool" ,intltool)
3057 ("pkg-config" ,pkg-config)
3058 ("yelp-tools" ,yelp-tools)))
3059 (home-page "https://pawsa.fedorapeople.org/balsa")
3060 (synopsis "E-mail client for GNOME")
3061 (description "Balsa is a highly configurable and robust mail client for
3062the GNOME desktop. It supports both POP3 and IMAP servers as well as the
3063mbox, maildir and mh local mailbox formats. Balsa also supports SMTP and/or
b95d5f62 3064the use of a local MTA such as Sendmail.")
7e3b537c 3065 (license license:gpl3+)))
1e52fd83
AI
3066
3067(define-public afew
3068 (package
3069 (name "afew")
3070 (version "1.2.0")
3071 (source
3072 (origin
3073 (method url-fetch)
3074 (uri (pypi-uri "afew" version))
3075 (sha256
3076 (base32
3077 "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r"))))
3078 (build-system python-build-system)
3079 (inputs
3080 `(("python-chardet" ,python-chardet)
3081 ("python-notmuch" ,python-notmuch)))
3082 (native-inputs
3083 `(("python-setuptools-scm" ,python-setuptools-scm)))
3084 (home-page "https://github.com/afewmail/afew")
3085 (synopsis "Initial tagging script for notmuch mail")
3086 (description "afew is an initial tagging script for notmuch mail. It
3087provides automatic tagging each time new mail is registered with notmuch. It
3088can add tags based on email headers or Maildir folders and can handle spam and
3089killed threads.")
7e3b537c 3090 (license license:isc)))
1679923a
DM
3091
3092(define-public pan
3093 (package
3094 (name "pan")
de227459 3095 (version "0.146")
1679923a
DM
3096 (source
3097 (origin
3098 (method url-fetch)
3099 (uri (string-append "http://pan.rebelbase.com/download/releases/"
3100 version "/source/" name "-" version ".tar.bz2"))
3101 (sha256
de227459 3102 (base32 "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55"))))
1679923a
DM
3103 (arguments
3104 `(#:configure-flags '("--with-gtk3" "--with-gtkspell" "--with-gnutls"
3105 "--enable-libnotify" "--enable-manual"
3106 "--enable-gkr")
3107 #:phases
3108 (modify-phases %standard-phases
3109 (add-before 'configure 'patch-gpg2
3110 (lambda* (#:key inputs #:allow-other-keys)
3111 (substitute* "pan/usenet-utils/gpg.cc"
3112 (("\"gpg2\"") (string-append "\""
3113 (assoc-ref inputs "gnupg")
3114 "/bin/gpg\"")))
3115 #t)))))
3116 (inputs
8e020519 3117 `(("gmime" ,gmime-2.6)
1679923a
DM
3118 ("gnupg" ,gnupg)
3119 ("gnutls" ,gnutls)
3120 ("gtk+" ,gtk+)
3121 ("gtkspell3" ,gtkspell3)
3122 ("libnotify" ,libnotify)
3123 ("libsecret" ,libsecret)
3124 ("libxml2" ,libxml2)
3125 ("zlib" ,zlib)))
3126 (native-inputs
3127 `(("gettext-minimal" ,gettext-minimal)
3128 ("itstool" ,itstool)
3129 ("pkg-config" ,pkg-config)))
3130 (build-system gnu-build-system)
3131 (home-page "http://pan.rebelbase.com/")
3132 (synopsis "Pan newsreader")
3133 (description "@code{pan} is a Usenet newsreader that's good at both text
3134and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB,
3135PGP handling, multiple servers, and secure connections.")
3136 ;; License of the docs: fdl-1.1; Others: gpl2.
7e3b537c 3137 (license (list license:fdl1.1+ license:gpl2))))
ae7c1c37
JL
3138
3139(define-public imapfilter
3140 (package
3141 (name "imapfilter")
29a87ed1 3142 (version "2.6.16")
ae7c1c37
JL
3143 (source
3144 (origin
b1d30f46
TGR
3145 (method git-fetch)
3146 (uri (git-reference
b0e7b699 3147 (url "https://github.com/lefcha/imapfilter")
b1d30f46
TGR
3148 (commit (string-append "v" version))))
3149 (file-name (git-file-name name version))
ae7c1c37 3150 (sha256
29a87ed1 3151 (base32 "0f65sg6hhv6778fxwsz4hvarbm97dsb8jj0mg7a9qs273r35pqck"))))
ae7c1c37
JL
3152 (build-system gnu-build-system)
3153 (arguments
3154 `(#:tests? #f
3155 #:make-flags
3156 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3157 "CC=gcc")
3158 #:phases
3159 (modify-phases %standard-phases
29a87ed1 3160 (delete 'configure)))) ; no configure script
ae7c1c37
JL
3161 (native-inputs
3162 `(("lua" ,lua)
3163 ("pcre" ,pcre)
3164 ("openssl" ,openssl)))
3165 (home-page "https://github.com/lefcha/imapfilter")
3166 (synopsis "IMAP mail filtering utility")
3167 (description "IMAPFilter is a mail filtering utility. It connects
3168to remote mail servers using IMAP, sends searching queries to the server and
3169processes mailboxes based on the results. It can be used to delete, copy,
3170move, flag, etc. messages residing in mailboxes at the same or different mail
3171servers. The 4rev1 and 4 versions of IMAP are supported.")
3172 (license license:expat)))
dc8675af
EF
3173
3174(define-public urlscan
3175 (package
3176 (name "urlscan")
0ea04bad 3177 (version "0.9.5")
dc8675af
EF
3178 (source
3179 (origin
3180 (method url-fetch)
3181 (uri (pypi-uri "urlscan" version))
3182 (sha256
0ea04bad 3183 (base32 "07vcwirap0p4dkqrqblfn1q017slgd8m6qyijvbi3gxnr09pbyx2"))))
dc8675af
EF
3184 (build-system python-build-system)
3185 (propagated-inputs
3186 `(("python-urwid" ,python-urwid)))
3187 (home-page "https://github.com/firecat53/urlscan")
3188 (synopsis "View/select the URLs in an email message or file")
3189 (description
3190 "Urlscan is a small program that is designed to integrate with the
0ac65c8b 3191Mutt mail reader to allow you to easily launch a Web browser for URLs
dc8675af
EF
3192contained in email messages. It parses an email message or file and scans it
3193for URLs and email addresses. It then displays the URLs and their context
3194within the message, and allows you to choose one or more URLs to send to your
0ac65c8b
TGR
3195Web browser. Alternatively, it send a list of all URLs to standard output.
3196It is a replacement for the @command{urlview} program.")
7e3b537c 3197 (license license:gpl2)))
829785c1
EB
3198
3199(define-public tnef
3200 (package
3201 (name "tnef")
fe147c97 3202 (version "1.4.18")
829785c1
EB
3203 (source
3204 (origin
3205 (method git-fetch)
3206 (uri (git-reference
b0e7b699 3207 (url "https://github.com/verdammelt/tnef")
829785c1
EB
3208 (commit version)))
3209 (sha256
fe147c97 3210 (base32 "104g48mcm00bgiyzas2vf86331w7bnw7h3bc11ib4lp7rz6zqfck"))
829785c1
EB
3211 (file-name (git-file-name name version))))
3212 (build-system gnu-build-system)
3213 (native-inputs
3214 `(("autoconf" ,autoconf)
3215 ("automake" ,automake)))
3216 (arguments `(#:parallel-tests? #f)) ;tests are side-effect'y
3217 (home-page "https://github.com/verdammelt/tnef")
3218 (synopsis "Unpack @code{application/ms-tnef} attachments")
3219 (description
3220 "TNEF is a tar-like program that unpacks MIME attachments of type
3221@code{application/ms-tnef}.")
7e3b537c 3222 (license license:gpl2+)))
e3a47031
RW
3223
3224(define-public mumi
3fa02b2d
RW
3225 (let ((commit "5a578328199bab51a147fbadbce12c8d06959ed6")
3226 (revision "2"))
e3a47031
RW
3227 (package
3228 (name "mumi")
bc950c2f 3229 (version (git-version "0.0.1" revision commit))
e3a47031
RW
3230 (source (origin
3231 (method git-fetch)
3232 (uri (git-reference
3233 (url "https://git.elephly.net/software/mumi.git")
3234 (commit commit)))
3235 (file-name (git-file-name name version))
3236 (sha256
3237 (base32
3fa02b2d 3238 "0hngv82gd19l4q7nnbf97r120z1yagsmkp0x3lc8haza5q4mc12c"))))
e3a47031
RW
3239 (build-system gnu-build-system)
3240 (arguments
1214684b
LC
3241 `(#:modules ((guix build gnu-build-system)
3242 ((guix build guile-build-system)
3243 #:select (target-guile-effective-version))
3244 (guix build utils))
3245 #:imported-modules ((guix build guile-build-system)
3246 ,@%gnu-build-system-modules)
3247
8ff573d3
LC
3248 #:configure-flags '("--localstatedir=/var")
3249
1214684b 3250 #:phases
e3a47031
RW
3251 (modify-phases %standard-phases
3252 (add-after 'install 'wrap-executable
3253 (lambda* (#:key outputs #:allow-other-keys)
3254 (let* ((out (assoc-ref outputs "out"))
3255 (bin (string-append out "/bin"))
1214684b
LC
3256 (version (target-guile-effective-version))
3257 (scm (string-append out "/share/guile/site/" version))
3258 (go (string-append out "/lib/guile/" version
3259 "/site-ccache")))
e3a47031
RW
3260 (wrap-program (string-append bin "/mumi")
3261 `("GUILE_LOAD_PATH" ":" prefix
3262 (,scm ,(getenv "GUILE_LOAD_PATH")))
3263 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3264 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
3265 #t))))))
3266 (inputs
bc950c2f 3267 `(("guile-email" ,guile-email)
3fa02b2d 3268 ("guile-fibers" ,guile-fibers)
f00f52a1 3269 ("guile-gcrypt" ,guile-gcrypt)
170c6b03 3270 ("guile-json" ,guile-json-3)
f00f52a1 3271 ("guile-redis" ,guile-redis)
e3a47031 3272 ("guile-syntax-highlight" ,guile-syntax-highlight)
f00f52a1 3273 ("guile-webutils" ,guile-webutils)
decf7f6c 3274 ("guile-xapian" ,guile-xapian)
bc950c2f 3275 ("guile" ,guile-3.0)
decf7f6c 3276 ("mailutils" ,mailutils)))
e3a47031
RW
3277 (native-inputs
3278 `(("autoconf" ,autoconf)
3279 ("automake" ,automake)
3280 ("pkg-config" ,pkg-config)))
3281 (home-page "https://git.elephly.net/software/mumi.git")
3282 (synopsis "Debbugs web interface")
3283 (description "Mumi is a Debbugs web interface.")
7e3b537c 3284 (license license:agpl3+))))
e1c58440
RW
3285
3286(define-public ytnef
3287 (package
3288 (name "ytnef")
3289 (version "1.9.3")
3290 (source (origin
3291 (method git-fetch)
3292 (uri (git-reference
b0e7b699 3293 (url "https://github.com/Yeraze/ytnef")
e1c58440
RW
3294 (commit (string-append "v" version))))
3295 (file-name (git-file-name name version))
3296 (sha256
3297 (base32
3298 "07h48s5qf08503pp9kafqbwipdqghiif22ghki7z8j67gyp04l6l"))))
3299 (build-system gnu-build-system)
3300 (native-inputs
3301 `(("autoconf" ,autoconf)
3302 ("automake" ,automake)
3303 ("libtool" ,libtool)))
3304 (home-page "https://github.com/Yeraze/ytnef/")
3305 (synopsis "TNEF stream reader for winmail.dat files")
3306 (description "This package provides a TNEF stream reader library and
3307related tools to process winmail.dat files.")
7e3b537c 3308 (license license:gpl2+)))
eff3a9b2
SB
3309
3310(define-public public-inbox
c87d737d
AI
3311 (package
3312 (name "public-inbox")
3313 (version "1.5.0")
3314 (source
3315 (origin (method git-fetch)
3316 (uri (git-reference
3317 (url "https://public-inbox.org")
3318 (commit (string-append "v" version))))
3319 (sha256
3320 (base32
3321 "03zj7shdl3vibs7k5lr673bwcf8j1xx8is3mjz34ca4cdh6p5j2k"))
3322 (file-name (git-file-name name version))))
3323 (build-system perl-build-system)
3324 (arguments
3325 '(#:phases
3326 (modify-phases %standard-phases
3327 (add-before 'configure 'qualify-paths
3328 (lambda _
3329 ;; Use absolute paths for 'xapian-compact'.
3330 (let ((xapian-compact (which "xapian-compact")))
3331 (substitute* "script/public-inbox-compact"
3332 (("xapian-compact") xapian-compact)))
3333 #t))
3334 (add-before 'check 'pre-check
3335 (lambda _
3336 (substitute* "t/spawn.t"
3337 (("\\['env'\\]") (string-append "['" (which "env") "']")))
3338 (substitute* "t/ds-leak.t"
3339 (("/bin/sh") (which "sh")))
3340 (invoke "./certs/create-certs.perl")
3341 ;; XXX: This test fails due to zombie process is not reaped by
3342 ;; the builder.
3343 (substitute* "t/httpd-unix.t"
3344 (("^SKIP: \\{") "SKIP: { skip('Guix');"))
3345 #t))
3346 (add-after 'install 'wrap-programs
3347 (lambda* (#:key inputs outputs #:allow-other-keys)
3348 (let ((out (assoc-ref outputs "out")))
3349 (for-each
3350 (lambda (prog)
3351 (wrap-program prog
3352 ;; Let those scripts find their perl modules.
3353 `("PERL5LIB" ":" prefix
3354 (,(string-append out "/lib/perl5/site_perl")
3355 ,(getenv "PERL5LIB")))
3356 ;; 'git' is invoked in various files of the PublicInbox
3357 ;; perl module.
3358 `("PATH" ":" prefix
3359 (,(string-append (assoc-ref inputs "git") "/bin")))))
3360 (find-files (string-append out "/bin"))))
3361 #t)))))
3362 (native-inputs
3363 `(("xapian" ,xapian)
3364 ;; For testing.
3365 ("lsof" ,lsof)
3366 ("openssl" ,openssl)))
3367 (inputs
3368 `(("git" ,git)
3369 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
3370 ("perl-dbi" ,perl-dbi)
3371 ("perl-email-address-xs" ,perl-email-address-xs)
3372 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
3373 ("perl-email-mime" ,perl-email-mime)
3374 ("perl-email-simple" ,perl-email-simple)
3375 ("perl-net-server" ,perl-net-server)
3376 ("perl-filesys-notify-simple" ,perl-filesys-notify-simple)
3377 ("perl-plack-middleware-deflater" ,perl-plack-middleware-deflater)
3378 ("perl-plack-middleware-reverseproxy" ,perl-plack-middleware-reverseproxy)
3379 ("perl-plack" ,perl-plack)
3380 ("perl-search-xapian" ,perl-search-xapian)
3381 ("perl-timedate" ,perl-timedate)
3382 ("perl-uri-escape" ,perl-uri-escape)
3383 ;; For testing.
3384 ("perl-ipc-run" ,perl-ipc-run)
3385 ("perl-xml-feed" ,perl-xml-feed)))
3386 (home-page "https://public-inbox.org/README.html")
3387 (synopsis "Archive mailing lists in git repositories")
3388 (description
3389 "public-inbox implements the sharing of an email inbox via git to
eff3a9b2
SB
3390complement or replace traditional mailing lists. Readers may read via NNTP,
3391Atom feeds or HTML archives.")
c87d737d 3392 (license license:agpl3+)))
660611e5
EB
3393
3394(define-public sylpheed
3395 (package
3396 (name "sylpheed")
3397 (version "3.7.0")
3398 (source (origin
3399 (method url-fetch)
3400 (uri (string-append "https://sylpheed.sraoss.jp/sylpheed/v3.7/"
3401 name "-" version ".tar.xz"))
3402 (sha256
3403 (base32
3404 "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd"))))
3405 (build-system gnu-build-system)
3406 (native-inputs
3407 `(("pkg-config" ,pkg-config)))
3408 (inputs
3409 `(("bogofilter" ,bogofilter)
3410 ("compface" ,compface)
3411 ("gnupg" ,gnupg-1)
3412 ("gpgme" ,gpgme)
3413 ("gtk+-2.0" ,gtk+-2)
3414 ("gtkspell" ,gtkspell3)
3415 ("libnsl" ,libnsl)
3416 ("openldap" ,openldap)
3417 ("openssl" ,openssl)))
3418 (home-page "https://sylpheed.sraoss.jp/en/")
3419 (synopsis "Lightweight GTK+ email client")
3420 (description
3421 "Sylpheed is a simple, lightweight but featureful, and easy-to-use e-mail
3422client. Sylpheed provides intuitive user-interface. Sylpheed is also
3423designed for keyboard-oriented operation.")
7e3b537c 3424 (license license:gpl2+)))
99d48f7a
EF
3425
3426(define-public python-authres
3427 (package
3428 (name "python-authres")
3429 (version "1.2.0")
3430 (source
3431 (origin
3432 (method url-fetch)
3433 (uri (pypi-uri "authres" version))
3434 (sha256
3435 (base32
3436 "1dr5zpqnb54h4f5ax8334l1dcp8j9083d7v4vdi1xqkwmnavklck"))))
3437 (build-system python-build-system)
3438 (arguments
3439 '(#:phases
3440 (modify-phases %standard-phases
3441 (replace 'check
3442 ;; Run doctests as described in the README.
3443 (lambda _
3444 (invoke "python" "-m" "authres" "-v"))))))
3445 (home-page "https://launchpad.net/authentication-results-python")
3446 (synopsis "Email Authentication Results Header Module")
3447 (description
3448 "This module can be used to generate and parse RFC 5451/7001/7601
3449Authentication-Results headers. It also supports Authentication Results
3450extensions:
3451@itemize
3452@item RFC 5617 DKIM/ADSP
3453@item RFC 6008 DKIM signature identification (header.b)
3454@item RFC 6212 Vouch By Reference (VBR)
3455@item RFC 6577 Sender Policy Framework (SPF)
3456@item RFC 7281 Authentication-Results Registration for S/MIME
3457@item RFC 7293 The Require-Recipient-Valid-Since Header Field
3458@item RFC 7489 Domain-based Message Authentication, Reporting, and Conformance (DMARC)
3459@item Authenticated Recieved Chain (ARC) (draft-ietf-dmarc-arc-protocol-08)
3460@end itemize
3461Note: RFC 7601 obsoletes RFC 5451, 6577, 7001, and 7410. Authres supports the
3462current standard. No backward compatibility issues have been noted.")
3463 (license license:asl2.0)))
5c4332e5
EF
3464
3465(define-public python-dkimpy
3466 (package
3467 (name "python-dkimpy")
bf2727c1 3468 (version "1.0.5")
5c4332e5
EF
3469 (source
3470 (origin
3471 (method url-fetch)
3472 (uri (pypi-uri "dkimpy" version))
3473 (sha256
bf2727c1 3474 (base32 "088iz5cqjqh4c7141d94pvn13bh25aizqlrifwv6fs5g16zj094s"))))
5c4332e5
EF
3475 (build-system python-build-system)
3476 (arguments
3477 '(#:phases
3478 (modify-phases %standard-phases
3479 (add-after 'patch-source-shebangs 'patch-more-source
3480 (lambda* (#:key inputs #:allow-other-keys)
3481 (let ((openssl (assoc-ref inputs "openssl")))
3482 (substitute* "dkim/dknewkey.py"
3483 (("/usr/bin/openssl") (string-append openssl "/bin/openssl"))))
3484 #t))
3485 (replace 'check
3486 (lambda _
3487 (invoke "python" "test.py"))))))
3488 (propagated-inputs
3489 `(("python-dnspython" ,python-dnspython)))
3490 (native-inputs
3491 `(("python-authres" ,python-authres)
3492 ("python-pynacl" ,python-pynacl)))
3493 (inputs
3494 `(("openssl" ,openssl)))
3495 (home-page "https://launchpad.net/dkimpy")
3496 (synopsis "DKIM (DomainKeys Identified Mail)")
3497 (description "Python module that implements @dfn{DKIM} (DomainKeys
3498Identified Mail) email signing and verification (RFC6376). It also provides
3499helper scripts for command line signing and verification. It supports DKIM
3500signing/verifying of ed25519-sha256 signatures (RFC 8463). It also supports
3501the RFC 8617 Authenticated Received Chain (ARC) protocol.")
3502 (license license:bsd-3)))
83dd7825
EF
3503
3504(define-public python-authheaders
3505 (package
3506 (name "python-authheaders")
3507 (version "0.13.0")
3508 (source
3509 (origin
3510 (method url-fetch)
3511 (uri (pypi-uri "authheaders" version))
3512 (sha256
3513 (base32
3514 "14k6i72k5f8dyvps8vc0aq0cczc8lvqpgjfjzsy6qqychjvjcmwk"))))
3515 (build-system python-build-system)
3516 (propagated-inputs
3517 `(("python-authres" ,python-authres)
3518 ("python-dkimpy" ,python-dkimpy)
3519 ("python-dnspython" ,python-dnspython)
3520 ("python-publicsuffix2" ,python-publicsuffix2)))
3521 (home-page "https://github.com/ValiMail/authentication-headers")
3522 (synopsis "Library wrapping email authentication header verification and generation")
3523 (description
3524 "This is a Python library for the generation of email authentication
3525headers. The library can perform DKIM, SPF, and DMARC validation, and the
3526results are packaged into the Authentication-Results header. The library can
3527DKIM and ARC sign messages and output the corresponding signature headers.")
3528 ;; The package's metadata claims it were MIT licensed, but the source file
3529 ;; headers disagree. MPL-2 for the public suffix list.
3530 (license (list license:zpl2.1 license:zlib license:mpl2.0))))
3a98604f
EF
3531
3532(define-public python-aiosmtpd
3533 (package
3534 (name "python-aiosmtpd")
525304e1 3535 (version "1.2.1")
3a98604f 3536 (source
525304e1
TGR
3537 (origin
3538 (method git-fetch)
3539 (uri (git-reference
3540 (url "https://github.com/aio-libs/aiosmtpd")
3541 (commit version)))
3542 (sha256
3543 (base32 "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7"))
3544 (file-name (git-file-name name version))))
3a98604f
EF
3545 (build-system python-build-system)
3546 (arguments
3547 '(#:phases
3548 (modify-phases %standard-phases
525304e1 3549 (add-after 'unpack 'delete-failing-tests
3a98604f 3550 (lambda _
525304e1 3551 ;; This test uses an expired certificate.
3a98604f
EF
3552 (delete-file "aiosmtpd/tests/test_smtps.py")
3553 #t))
3554 (replace 'check
3555 (lambda _
3556 (invoke "python" "-m" "nose2" "-v"))))))
3557 (native-inputs
3558 `(("python-flufl-testing" ,python-flufl-testing)
3559 ("python-nose2" ,python-nose2)))
3560 (propagated-inputs
3561 `(("python-atpublic" ,python-atpublic)))
3562 (home-page "https://aiosmtpd.readthedocs.io/")
3563 (synopsis "Asyncio based SMTP server")
3564 (description
3565 "This project is a reimplementation of the Python stdlib @code{smtpd.py}
3566based on asyncio.")
3567 (license (list license:asl2.0
3568 license:lgpl3)))) ; only for setup_helpers.py