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