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