1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com>
6 ;;; Copyright © 2014, 2019 Julien Lepiller <julien@lepiller.eu>
7 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
8 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
9 ;;; Copyright © 2015, 2016, 2018 Eric Bavier <bavier@member.fsf.org>
10 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
11 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
14 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
22 ;;; Copyright © 2016, 2018 Marius Bakke <mbakke@fastmail.com>
23 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
24 ;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
25 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
26 ;;; Copyright © 2017, 2018, 2020 Rene Saavedra <pacoon@protonmail.com>
27 ;;; Copyright © 2018, 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
28 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
29 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
30 ;;; Copyright © 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
33 ;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
34 ;;; Copyright © 2020 Eric Brown <ecbrown@ericcbrown.com>
35 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
36 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
38 ;;; This file is part of GNU Guix.
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.
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.
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/>.
53 (define-module (gnu packages mail)
54 #:use-module (gnu packages)
55 #:use-module (gnu packages admin)
56 #:use-module (gnu packages aspell)
57 #:use-module (gnu packages autotools)
58 #:use-module (gnu packages backup)
59 #:use-module (gnu packages base)
60 #:use-module (gnu packages bash)
61 #:use-module (gnu packages bison)
62 #:use-module (gnu packages calendar)
63 #:use-module (gnu packages check)
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages crypto)
66 #:use-module (gnu packages curl)
67 #:use-module (gnu packages cyrus-sasl)
68 #:use-module (gnu packages databases)
69 #:use-module (gnu packages dbm)
70 #:use-module (gnu packages dejagnu)
71 #:use-module (gnu packages django)
72 #:use-module (gnu packages dns)
73 #:use-module (gnu packages docbook)
74 #:use-module (gnu packages documentation)
75 #:use-module (gnu packages emacs)
76 #:use-module (gnu packages enchant)
77 #:use-module (gnu packages gdb)
78 #:use-module (gnu packages gettext)
79 #:use-module (gnu packages ghostscript)
80 #:use-module (gnu packages glib)
81 #:use-module (gnu packages gnome)
82 #:use-module (gnu packages gnupg)
83 #:use-module (gnu packages groff)
84 #:use-module (gnu packages gsasl)
85 #:use-module (gnu packages gtk)
86 #:use-module (gnu packages guile)
87 #:use-module (gnu packages guile-xyz)
88 #:use-module (gnu packages flex)
89 #:use-module (gnu packages haskell-xyz)
90 #:use-module (gnu packages kerberos)
91 #:use-module (gnu packages libcanberra)
92 #:use-module (gnu packages libevent)
93 #:use-module (gnu packages libidn)
94 #:use-module (gnu packages libunistring)
95 #:use-module (gnu packages libunwind)
96 #:use-module (gnu packages linux)
97 #:use-module (gnu packages lsof)
98 #:use-module (gnu packages lua)
99 #:use-module (gnu packages m4)
100 #:use-module (gnu packages man)
101 #:use-module (gnu packages ncurses)
102 #:use-module (gnu packages networking)
103 #:use-module (gnu packages openldap)
104 #:use-module (gnu packages onc-rpc)
105 #:use-module (gnu packages pcre)
106 #:use-module (gnu packages perl)
107 #:use-module (gnu packages perl-check)
108 #:use-module (gnu packages perl-web)
109 #:use-module (gnu packages pkg-config)
110 #:use-module (gnu packages python)
111 #:use-module (gnu packages python-check)
112 #:use-module (gnu packages python-crypto)
113 #:use-module (gnu packages python-web)
114 #:use-module (gnu packages python-xyz)
115 #:use-module (gnu packages readline)
116 #:use-module (gnu packages ruby)
117 #:use-module (gnu packages search)
118 #:use-module (gnu packages serialization)
119 #:use-module (gnu packages samba)
120 #:use-module (gnu packages screen)
121 #:use-module (gnu packages sphinx)
122 #:use-module (gnu packages sqlite)
123 #:use-module (gnu packages tcl)
124 #:use-module (gnu packages texinfo)
125 #:use-module (gnu packages time)
126 #:use-module (gnu packages tls)
127 #:use-module (gnu packages version-control)
128 #:use-module (gnu packages w3m)
129 #:use-module (gnu packages web)
130 #:use-module (gnu packages webkit)
131 #:use-module (gnu packages xdisorg)
132 #:use-module (gnu packages xorg)
133 #:use-module (gnu packages xml)
134 #:use-module ((guix licenses) #:prefix license:)
135 #:use-module (guix packages)
136 #:use-module (guix download)
137 #:use-module (guix git-download)
138 #:use-module (guix utils)
139 #:use-module (guix build-system gnu)
140 #:use-module (guix build-system guile)
141 #:use-module (guix build-system perl)
142 #:use-module (guix build-system python)
143 #:use-module (guix build-system trivial)
144 #:use-module (srfi srfi-1)
145 #:use-module (ice-9 match))
147 (define-public anubis
150 ;; This 4.2.90 alpha release adds support for Guile 3 and has fixes for
156 (uri (string-append "https://alpha.gnu.org/gnu/anubis/anubis-"
160 "0dvm6acl32dv8bixx9z50gzwfp6kj4kxnn1j3dcwjlp7sasjp41s"))))
161 (build-system gnu-build-system)
163 `(("automake" ,automake)
164 ("autoconf" ,autoconf)
165 ("gettext" ,gettext-minimal)
166 ("m4" ,m4))) ;for the test suite
173 ("libgcrypt" ,libgcrypt) ;gnutls support depends on libgcrypt
174 ("libgpg-error" ,libgpg-error)))
175 (outputs '("out" "debug"))
176 (synopsis "SMTP message submission daemon")
177 (description "Anubis is a daemon that sits between the Mail User
178 Agent (MUA) and the Mail Transfer Agent (MTA). When a mail is sent by a user
179 in the MUA, it is first passed to Anubis, which performs additional processing
180 to the message before passing it on for delivery by the MTA. Anubis may, for
181 example, modify the message headers or body, or encrypt or sign the message.")
182 (home-page "https://www.gnu.org/software/anubis/manual/")
183 (license license:gpl3+)))
185 (define-public mailutils
191 (uri (string-append "mirror://gnu/mailutils/mailutils-"
195 "17smrxjdgbbzbzakik30vj46q4iib85ksqhb82jr4vjp57akszh9"))))
196 (build-system gnu-build-system)
199 (modify-phases %standard-phases
200 (add-before 'check 'prepare-test-suite
202 ;; Use the right file name for `cat'.
203 (substitute* "testsuite/lib/mailutils.exp"
207 ;; Tests try to invoke 'mda' such that it looks up the
208 ;; 'root' user, which does not exist in the build
210 (substitute* '("mda/mda/tests/testsuite"
211 "mda/lmtpd/tests/testsuite")
212 (("root <") "nobody <")
213 (("spool/root") "spool/nobody")
214 (("root@localhost") "nobody@localhost"))
216 ;; The 'pipeact.at' tests generate a shell script; make
217 ;; sure it uses the right shell.
218 (substitute* '("sieve/tests/testsuite"
219 "mh/tests/testsuite")
221 (string-append "#!" (which "sh"))))
223 (substitute* "mh/tests/testsuite"
224 (("moreproc: /bin/cat")
225 (string-append "moreproc: " (which "cat"))))
227 ;; XXX: The comsatd tests rely on being able to open
228 ;; /dev/tty, but that gives ENODEV in the build
229 ;; environment. Thus, ignore test failures here.
230 (substitute* "comsat/tests/Makefile.in"
231 (("\\$\\(SHELL\\) \\$\\(TESTSUITE\\)" all)
232 (string-append "-" all)))
234 ;; XXX: The ‘moderator: program discard’ test does not specify
235 ;; an explicit From: but does expect an exact match. But why are
236 ;; all other tests unaffected?
237 (substitute* "sieve/tests/testsuite"
241 ;; 'frm' tests expect write access to $HOME.
242 (setenv "HOME" (getcwd))
244 ;; Avoid the message "I'm going to create the standard MH path
245 ;; for you", which would lead to one test failure (when diffing
246 ;; stdout of 'fmtcheck'.)
247 (call-with-output-file ".mh_profile"
249 (format port "Path: ~a/Mail-for-tests~%"
253 ;; TODO: Add `--with-sql'.
255 (list "--sysconfdir=/etc"
257 ;; Add "/X.Y" to the installation directory.
258 (string-append "--with-guile-site-dir="
259 (assoc-ref %outputs "out")
261 ,(match (assoc "guile"
262 (package-inputs this-package))
265 (package-version guile))))))
267 #:parallel-tests? #f))
269 `(("perl" ,perl) ;for 'gylwrap'
271 ("dejagnu" ,dejagnu)))
278 ("readline" ,readline)
279 ("linux-pam" ,linux-pam)
283 ;; Required for SEARCH CHARSET.
284 ("libiconv" ,libiconv)
285 ("libunistring" ,libunistring)))
286 (home-page "https://mailutils.org")
287 (synopsis "Utilities and library for reading and serving mail")
289 "GNU Mailutils is a collection of programs for managing, viewing and
290 processing electronic mail. It contains both utilities and server daemons
291 and all operate in a protocol-agnostic way. The underlying libraries are
292 also available, simplifying the addition of mail capabilities to new
295 ;; Libraries are under LGPLv3+, and programs under GPLv3+.
296 (list license:gpl3+ license:lgpl3+))))
298 (define-public guile2.2-mailutils
301 (name "guile2.2-mailutils")
303 `(("guile" ,guile-2.2)
304 ,@(alist-delete "guile" (package-inputs mailutils))))))
306 (define-public guile3.0-mailutils
307 (deprecated-package "guile3.0-mailutils" mailutils))
309 (define-public nullmailer
317 (string-append "https://untroubled.org/nullmailer/"
318 "nullmailer-" version ".tar.gz")
319 ;; Previous releases are moved to this subdirectory.
320 (string-append "https://untroubled.org/nullmailer/archive/"
321 "nullmailer-" version ".tar.gz")))
323 (base32 "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq"))))
324 (build-system gnu-build-system)
328 "--localstatedir=/var"
331 (modify-phases %standard-phases
332 (add-before 'check 'patch-test-FHS-file-names
334 (with-directory-excursion "test"
335 (substitute* (list "functions.in"
337 ;; Fix some shebangs later generated on the fly.
338 (("/bin/sh") (which "bash"))))
340 (add-before 'check 'pass-PATH-to-tests
341 ;; ‘runtest’ launches each test through ‘env -’, clearing $PATH. The
342 ;; tests then source ‘functions’, which first demands a working $PATH
343 ;; only to clobber it later. Pass our $PATH to the test environment
344 ;; and don't touch it after that.
346 (with-directory-excursion "test"
347 (substitute* "runtests"
349 (string-append "env - PATH=\"" (getenv "PATH") "\" bash")))
350 (substitute* "functions.in"
351 (("export PATH=.*") "")))
353 (add-before 'check 'delete-failing-tests
355 (with-directory-excursion "test/tests"
356 (for-each delete-file
358 ;; XXX ‘nullmailer-inject: nullmailer-queue failed: 15’
360 ;; XXX These require the not-yet-packaged tcpserver.
361 "protocols" "smtp-auth")))
363 (add-before 'install 'skip-install-data-local
364 ;; Don't attempt to install run-time files outside of the store.
366 (substitute* "Makefile"
367 ((" install-data-local") ""))
371 `(("daemontools" ,daemontools))) ; for svc
373 `(("gnutls" ,gnutls)))
374 (home-page "https://untroubled.org/nullmailer/")
375 (synopsis "Simple relay-only mail transfer agent")
377 "Nullmailer is a simple replacement @acronym{MTA, Mail Transfer Agent} for
378 hosts that receive no local mail and only relay mail to a fixed set of smart
379 relays. It's useful for systems such as Web servers that must be able to send
380 email notifications, without having to run a full-blown MTA such as sendmail
383 Nullmailer is designed to be simple to configure, easy to extend, and secure.
384 It requires little ongoing administration. The included @command{sendmail}
385 emulator front-end should allow most (if not all) sendmail-compatible programs
386 to run without any changes.")
387 (license (list license:lgpl2.1+ ; lib/cli++/ (but some files lack headers)
388 license:gpl2+)))) ; everything else
390 (define-public fetchmail
397 (uri (string-append "mirror://sourceforge/fetchmail/branch_"
398 (version-major+minor version) "/"
399 "fetchmail-" version ".tar.xz"))
401 (base32 "1g893dr3982vrqzxybmflnqfmd1q6yipd9krvxn0avhlrrp97k96"))))
402 (build-system gnu-build-system)
404 `(("openssl" ,openssl)))
407 (list (string-append "--with-ssl="
408 (assoc-ref %build-inputs "openssl")))))
409 (home-page "https://www.fetchmail.info/")
410 (synopsis "Remote-mail retrieval and forwarding utility")
412 "Fetchmail is a full-featured, robust, well-documented remote-mail
413 retrieval and forwarding utility intended to be used over on-demand
414 TCP/IP links (such as SLIP or PPP connections). It supports every
415 remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP,
416 KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6
419 Fetchmail retrieves mail from remote mail servers and forwards it via SMTP,
420 so it can then be read by normal mail user agents such as mutt, elm
421 or BSD Mail. It allows all your system MTA's filtering, forwarding, and
422 aliasing facilities to work just as they would on normal mail.")
423 (license license:gpl2+))) ; most files are actually public domain or x11
432 (string-append "https://bitbucket.org/mutt/mutt/downloads/"
433 "mutt-" version ".tar.gz")
434 (string-append "http://ftp.mutt.org/pub/mutt/mutt-"
438 "0i0q6vwhnb1grimsrpmz8maw255rh9k0laijzxkry6xqa80jm5s7"))
439 (patches (search-patches "mutt-store-references.patch"))))
440 (build-system gnu-build-system)
442 `(("cyrus-sasl" ,cyrus-sasl)
451 `(#:configure-flags '("--enable-smtp"
455 "--enable-hcache" ; for header caching
460 "--with-sqlite3" ; required for Autocrypt
461 "--with-idn2" ; recommended for Autocrypt
462 ;; So that mutt does not check whether the path
463 ;; exists, which it does not in the chroot.
464 "--with-mailpath=/var/mail")))
465 (home-page "http://www.mutt.org/")
466 (synopsis "Mail client")
468 "Mutt is a small but very powerful text-based mail client for Unix
470 (license license:gpl2+)))
472 (define-public neomutt
480 (url "https://github.com/neomutt/neomutt")
482 (file-name (git-file-name name version))
484 (base32 "1k4k07l6h5krc3fx928qvdq3ssw9fxn95aj7k885xlckd2i1lnb5"))))
485 (build-system gnu-build-system)
487 `(("cyrus-sasl" ,cyrus-sasl)
492 ("openssl" ,openssl) ; for S/MIME
494 ("kyotocabinet" ,kyotocabinet)
499 ("notmuch" ,notmuch)))
501 `(("automake" ,automake)
502 ("gettext-minimal" ,gettext-minimal)
503 ("pkg-config" ,pkg-config)
504 ("docbook-xsl" ,docbook-xsl)
505 ("docbook-xml" ,docbook-xml-4.2)
509 `(#:test-target "test"
513 ;; Database, implies header caching.
514 "--disable-tokyocabinet"
525 (string-append "--with-sasl="
526 (assoc-ref %build-inputs "cyrus-sasl"))
534 ;; If we do not set this, neomutt wants to check
535 ;; whether the path exists, which it does not
537 "--with-mailpath=/var/mail"
540 (string-append "--with-ncurses="
541 (assoc-ref %build-inputs "ncurses"))
542 (string-append "--prefix="
543 (assoc-ref %outputs "out"))
546 (modify-phases %standard-phases
547 ;; TODO: autosetup is meant to be included in the source,
548 ;; but we should package autosetup and use our own version of it.
550 (lambda* (#:key outputs inputs configure-flags #:allow-other-keys)
551 (let* ((out (assoc-ref outputs "out"))
552 (flags `(,@configure-flags))
553 (bash (which "bash")))
554 (setenv "SHELL" bash)
555 (setenv "CONFIG_SHELL" bash)
557 (string-append (getcwd) "/configure")
559 (home-page "https://neomutt.org/")
560 (synopsis "Command-line mail reader based on Mutt")
562 "NeoMutt is a command-line mail reader which is based on mutt.
563 It adds a large amount of new and improved features to mutt.")
564 (license license:gpl2+)))
572 (uri (string-append "mirror://gnome/sources/gmime/"
573 (version-major+minor version)
574 "/gmime-" version ".tar.xz"))
577 "0i3xfc84qn1z99i70q68kbnp9rmgqrnprqb418ba52s6g9j9dsia"))))
578 (build-system gnu-build-system)
580 `(("pkg-config" ,pkg-config)
581 ("gnupg" ,gnupg))) ; for tests only
582 (inputs `(("glib" ,glib)
587 (modify-phases %standard-phases
589 'unpack 'patch-paths-in-tests
591 ;; The test programs run several programs using 'system' with
592 ;; hard-coded paths. Here we patch them all.
593 ;; We use ISO-8859-1 here because test-iconv.c contains
594 ;; raw byte sequences in several different encodings.
595 (with-fluids ((%default-port-encoding #f))
596 (substitute* (find-files "tests" "\\.c$")
597 (("(system *\\(\")(/[^ ]*)" all pre prog-path)
598 (let* ((base (basename prog-path))
601 (or prog (error "not found: " base)))))))
603 (home-page "http://spruce.sourceforge.net/gmime/")
604 (synopsis "MIME message parser and creator library")
606 "GMime provides a core library and set of utilities which may be used for
607 the creation and parsing of messages using the Multipurpose Internet Mail
609 (license (list license:lgpl2.1+ license:gpl2+ license:gpl3+))))
611 ;; Some packages are not ready for GMime 3 yet.
612 (define-public gmime-2.6
618 (uri (string-append "mirror://gnome/sources/gmime/"
619 (version-major+minor version)
620 "/gmime-" version ".tar.xz"))
623 "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
625 (define-public bogofilter
632 (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-stable/"
633 "bogofilter-" version ".tar.xz"))
635 (base32 "1sl9xrnnlk2sn8gmibhn8li09vnansjbxb9l1182qmgz7cvs2j1j"))))
636 (build-system gnu-build-system)
639 (modify-phases %standard-phases
640 (add-before 'check 'pre-check
642 (substitute* "src/tests/t.frame"
644 (string-append "GREP=" (which "grep") "\n")))
646 (native-inputs `(("flex" ,flex)))
647 (inputs `(("bdb" ,bdb)))
648 (home-page "https://bogofilter.sourceforge.io/")
649 (synopsis "Mail classifier based on a Bayesian filter")
651 "Bogofilter is a mail filter that classifies mail as spam or ham
652 (non-spam) by a statistical analysis of the message's header and
653 content (body). The program is able to learn from the user's classifications
654 and corrections. It is based on a Bayesian filter.")
655 (license license:gpl3+)))
657 (define-public offlineimap
664 (url "https://github.com/OfflineIMAP/offlineimap")
665 (commit (string-append "v" version))))
666 (file-name (git-file-name name version))
669 "0h5q5nk2p2vx86w6rrbs7v70h81dpqqr68x6l3klzl3m0yj9agb1"))))
670 (build-system python-build-system)
672 `(("asciidoc" ,asciidoc)))
673 (inputs `(("python2-pysqlite" ,python2-pysqlite)
674 ("python2-six" ,python2-six)))
676 ;; The setup.py script expects python-2.
678 ;; Tests require a modifiable IMAP account.
681 (modify-phases %standard-phases
682 (add-after 'build 'build-documentation
684 (substitute* "docs/Makefile"
685 ;; Prevent xmllint and xsltproc from downloading a DTD file.
686 (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v"))
687 (invoke "make" "-C" "docs" "man")))
688 (add-after 'install 'install-documentation
689 (lambda* (#:key outputs #:allow-other-keys)
690 (let* ((out (assoc-ref outputs "out"))
691 (man (string-append out "/share/man")))
692 (install-file "docs/offlineimap.1" (string-append man "/man1"))
693 (install-file "docs/offlineimapui.7" (string-append man "/man7"))
695 (home-page "https://www.offlineimap.org")
696 (synopsis "Sync emails between two repositories")
698 "OfflineImap synchronizes emails between two repositories, so that you
699 can read the same mailbox from multiple computers. It supports IMAP as REMOTE
700 repository and Maildir/IMAP as LOCAL repository.")
701 (license license:gpl2+)))
703 (define-public emacs-mew
709 (uri (string-append "https://mew.org/Release/mew-"
713 "0ixzyq33l6j34410kqav3lwn2wx171zvqd3irvns2jvhrbww8i6g"))))
717 `(("ruby-sqlite3" ,ruby-sqlite3) ; optional for the database of messages
718 ("ruby" ,ruby))) ; to set GEM_PATH so ruby-sqlite3 is found at runtime
719 (build-system gnu-build-system)
721 (let ((elisp-dir "/share/emacs/site-lisp")
722 (icon-dir "/share/mew"))
723 `(#:modules ((guix build gnu-build-system)
725 (guix build emacs-utils))
726 #:imported-modules (,@%gnu-build-system-modules
727 (guix build emacs-utils))
729 (list (string-append "--with-elispdir=" %output ,elisp-dir)
730 (string-append "--with-etcdir=" %output ,icon-dir))
732 (modify-phases %standard-phases
733 (add-after 'configure 'patch-mew-icon-directory
734 (lambda* (#:key outputs #:allow-other-keys)
735 (emacs-substitute-sexps "mew-key.el"
736 ("(def.* mew-icon-directory"
738 (add-to-list 'image-load-path 'mew-icon-directory)
739 ,(string-append (assoc-ref outputs "out") ,icon-dir))))
741 (add-after 'install 'generate-autoloads
742 (lambda* (#:key outputs #:allow-other-keys)
743 (emacs-generate-autoloads
744 "mew" (string-append (assoc-ref outputs "out") ,elisp-dir))
747 (home-page "https://mew.org")
748 (synopsis "Emacs e-mail client")
749 (description "Mew (Messaging in the Emacs World) is a user interface
750 for text messages, multimedia messages (MIME), news articles and
751 security functionality including PGP, S/MIME, SSH, and SSL.")
752 (license license:bsd-3)))
760 (uri (string-append "https://github.com/djcb/mu/releases/"
761 "download/" version "/"
762 "mu-" version ".tar.xz"))
765 "13kfpr77qrnp3i5qnb5zd03frd3fdviggnl50973gdk0hr7m0smj"))))
766 (build-system gnu-build-system)
768 `(("pkg-config" ,pkg-config)
769 ("glib" ,glib "bin") ; for gtester
770 ("emacs" ,emacs-minimal)
771 ("tzdata" ,tzdata-for-tests))) ; for mu/test/test-mu-query.c
778 `(#:modules ((guix build gnu-build-system)
780 (guix build emacs-utils))
781 #:imported-modules (,@%gnu-build-system-modules
782 (guix build emacs-utils))
784 (modify-phases %standard-phases
785 (add-after 'unpack 'patch-configure
786 ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e",
787 ;; so our Emacs package can't find it. Setting "--with-lispdir"
788 ;; configure flag doesn't help because "mu4e" will be added to
789 ;; the lispdir anyway, so we have to modify "configure.ac".
791 (substitute* "configure"
792 (("^ +lispdir=\"\\$\\{lispdir\\}/mu4e/\".*") "")
794 (("guile-2.0") "guile-2.2"))
795 (substitute* '("guile/Makefile.in"
796 "guile/mu/Makefile.in")
797 (("share/guile/site/2.0/") "share/guile/site/2.2/"))
799 (add-after 'unpack 'patch-bin-sh-in-tests
801 (substitute* '("guile/tests/test-mu-guile.c"
803 "mu/test-mu-cmd-cfind.c"
805 "mu/test-mu-threads.c")
806 (("/bin/sh") (which "sh")))
808 (add-before 'install 'fix-ffi
809 (lambda* (#:key outputs #:allow-other-keys)
810 (substitute* "guile/mu.scm"
812 (format #f "\"~a/lib/libguile-mu\""
813 (assoc-ref outputs "out"))))
815 (add-before 'check 'check-tz-setup
816 (lambda* (#:key inputs #:allow-other-keys)
817 ;; For mu/test/test-mu-query.c
819 (string-append (assoc-ref inputs "tzdata")
822 (add-after 'install 'install-emacs-autoloads
823 (lambda* (#:key outputs #:allow-other-keys)
824 (emacs-generate-autoloads
826 (string-append (assoc-ref outputs "out")
827 "/share/emacs/site-lisp"))
829 (home-page "https://www.djcbsoftware.nl/code/mu/")
830 (synopsis "Quickly find emails")
832 "Mu is a tool for dealing with e-mail messages stored in the
833 Maildir-format. Mu's purpose in life is to help you to quickly find the
834 messages you need; in addition, it allows you to view messages, extract
835 attachments, create new maildirs, and so on.")
836 (license license:gpl3+)))
844 ;; package author intends on distributing via github rather
846 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
847 (uri (string-append "https://github.com/pazz/alot/archive/"
849 (file-name (string-append "alot-" version ".tar.gz"))
852 "0wax30hjzmkqfml7hig1dqw1v1y63yc0cgbzl96x58b9h2ggqx3a"))))
853 (build-system python-build-system)
855 `(;; python 3 is currently unsupported, more info:
856 ;; https://github.com/pazz/alot/blob/master/docs/source/faq.rst
859 `(("python2-mock" ,python2-mock)))
861 `(("python2-magic" ,python2-magic)
862 ("python2-configobj" ,python2-configobj)
863 ("python2-twisted" ,python2-twisted)
864 ("python2-urwid" ,python2-urwid)
865 ("python2-urwidtrees" ,python2-urwidtrees)
866 ("python2-pygpgme" ,python2-pygpgme)
867 ("python2-notmuch" ,python2-notmuch)))
868 (home-page "https://github.com/pazz/alot")
869 (synopsis "Command-line MUA using @code{notmuch}")
871 "Alot is an experimental terminal mail user agent (@dfn{MUA}) based on
872 @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.")
873 (license license:gpl3+)))
875 (define-public notifymuch
877 ((commit "9d4aaf54599282ce80643b38195ff501120807f0")
881 (version (string-append "0.1-" revision "." (string-take commit 7)))
886 (url "https://github.com/kspi/notifymuch")
890 "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4"))
891 (file-name (string-append name "-" version "-checkout"))))
892 (build-system python-build-system)
894 `(("python-notmuch" ,python-notmuch)
895 ("python-pygobject" ,python-pygobject)
896 ("gobject-introspection" ,gobject-introspection)
897 ("libnotify" ,libnotify)
901 (modify-phases %standard-phases
902 (add-after 'install 'wrap-binary
903 (lambda* (#:key outputs #:allow-other-keys)
904 (let* ((out (assoc-ref outputs "out"))
905 (bin (string-append out "/bin/notifymuch")))
907 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
908 `("GI_TYPELIB_PATH" ":" prefix
909 (,(getenv "GI_TYPELIB_PATH")
910 ,(string-append out "/lib/girepository-1.0")))))
912 (home-page "https://github.com/kspi/notifymuch")
913 (synopsis "Displays notifications for changes in the notmuch email database")
914 (description "notifymuch displays desktop notifications for messages in
915 the notmuch database. The notifications are sent using libnotify to a
916 notification daemon. The query to find messages to send a notification about
917 is configurable, and a notification for the same message will not be send
918 within a configurable period (defaults to 48 hours). To use notifymuch, run
919 @command{notifymuch} after new mail is indexed, this can be automated by
920 invoking @command{notifymuch} from the post-new hook.")
921 (license license:gpl3))))
923 (define-public notmuch
929 (uri (string-append "https://notmuchmail.org/releases/notmuch-"
933 "0dfwa38vgnxk9cvvpza66szjgp8lir6iz6yy0cry9593lywh9xym"))))
934 (build-system gnu-build-system)
936 `(#:modules ((guix build gnu-build-system)
937 ((guix build emacs-build-system) #:prefix emacs:)
939 #:imported-modules (,@%gnu-build-system-modules
940 (guix build emacs-build-system)
941 (guix build emacs-utils))
943 (list "V=1" ; verbose test output
944 "NOTMUCH_TEST_TIMEOUT=1h") ; don't fail on slow machines
945 #:phases (modify-phases %standard-phases
946 (add-after 'unpack 'patch-notmuch-lib.el
948 (substitute* "emacs/notmuch-lib.el"
949 (("/bin/sh") (which "sh")))
952 (lambda* (#:key outputs #:allow-other-keys)
954 (setenv "CONFIG_SHELL" (which "sh"))
956 (let* ((out (assoc-ref outputs "out"))
958 (string-append out "/share/emacs/site-lisp/")))
959 (invoke "./configure"
960 (string-append "--prefix=" out)
961 (string-append "--emacslispdir=" elisp)
962 (string-append "--emacsetcdir=" elisp)))))
963 (add-before 'check 'prepare-test-environment
965 (setenv "TEST_CC" "gcc")
966 ;; Patch various inline shell invocations.
967 (substitute* (find-files "test" "\\.sh$")
968 (("/bin/sh") (which "sh")))
970 (add-after 'install 'make-autoloads
971 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
973 `(("bash-completion" ,bash-completion)
974 ("emacs" ,emacs-no-x) ; -minimal lacks libxml, needed for some tests
975 ("pkg-config" ,pkg-config)
977 ("python-docutils" ,python-docutils)
978 ("sphinx" ,python-sphinx)
980 ;; The following are required for tests only.
992 (home-page "https://notmuchmail.org/")
993 (synopsis "Thread-based email index, search, and tagging")
995 "Notmuch is a command-line based program for indexing, searching, read-
996 ing, and tagging large collections of email messages.")
997 (license license:gpl3+)))
999 (define-public notmuch-addrlookup-c
1001 (name "notmuch-addrlookup-c")
1002 (version (string-append "9"))
1006 (url "https://github.com/aperezdc/notmuch-addrlookup-c")
1007 (commit (string-append "v" version))))
1008 (file-name (string-append name "-" version "-checkout"))
1011 "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc"))))
1012 (build-system gnu-build-system)
1014 '(#:tests? #f ; no tests
1015 #:make-flags (list "CC=gcc")
1016 #:phases (modify-phases %standard-phases
1018 ;; Remove vim code completion config, it's not needed to
1019 ;; build (or be patched).
1020 (add-before 'patch-source-shebangs 'delete-ycm-file
1021 (lambda _ (delete-file ".ycm_extra_conf.py")))
1023 (lambda* (#:key outputs #:allow-other-keys)
1024 (let ((bin (string-append
1025 (assoc-ref outputs "out") "/bin")))
1026 (install-file "notmuch-addrlookup" bin)))))))
1028 `(("pkg-config" ,pkg-config)))
1031 ("notmuch" ,notmuch)))
1032 (home-page "https://github.com/aperezdc/notmuch-addrlookup-c")
1033 (synopsis "Address lookup tool for Notmuch")
1034 (description "This is an address lookup tool using a Notmuch database,
1035 useful for email address completion.")
1036 (license license:expat)))
1038 (define-public python-notmuch
1040 (name "python-notmuch")
1041 (version (package-version notmuch))
1042 ;; Notmuch python bindings are now unavailable on pypi. The
1043 ;; bindings are distributed via the notmuch release tarball.
1044 (source (package-source notmuch))
1045 (build-system python-build-system)
1046 (inputs `(("notmuch" ,notmuch)))
1048 `(#:tests? #f ; no "test" target
1050 (modify-phases %standard-phases
1051 ;; This python package lives in a subdirectory of the notmuch source
1052 ;; tree, so chdir into it before building.
1053 (add-after 'unpack 'enter-python-dir
1054 (lambda _ (chdir "bindings/python") #t))
1055 ;; Make sure the correct notmuch shared library gets loaded.
1056 (add-before 'build 'set-libnotmuch-file-name
1057 (lambda* (#:key inputs #:allow-other-keys)
1058 (let ((notmuch (assoc-ref inputs "notmuch")))
1059 (substitute* "notmuch/globals.py"
1060 (("libnotmuch\\.so\\.")
1061 (string-append notmuch "/lib/libnotmuch.so.")))
1063 (home-page (package-home-page notmuch))
1064 (synopsis "Python bindings of the Notmuch mail indexing library")
1066 "This package provides Python bindings to use the Notmuch mail indexing
1067 and search library.")
1068 (license license:gpl3+)))
1070 (define-public python2-notmuch
1071 (package-with-python2 python-notmuch))
1073 (define-public muchsync
1080 (uri (string-append "http://www.muchsync.org/src/"
1081 "muchsync-" version ".tar.gz"))
1083 (base32 "1k2m44pj5i6vfhp9icdqs42chsp208llanc666p3d9nww8ngq2lb"))))
1084 (build-system gnu-build-system)
1086 `(("ghc-pandoc" ,ghc-pandoc)
1087 ("pkg-config" ,pkg-config)))
1089 `(("libcrypto" ,openssl)
1090 ("notmuch" ,notmuch)
1092 ("xapian" ,xapian)))
1093 (home-page "http://www.muchsync.org/")
1094 (synopsis "Synchronize notmuch mail across machines")
1096 "Muchsync brings Notmuch to all of your computers by synchronizing your
1097 mail messages and Notmuch tags across machines. The protocol is heavily
1098 pipelined to work efficiently over high-latency networks such as mobile
1099 broadband. Muchsync supports arbitrary pairwise synchronization among
1100 replicas. A version-vector-based algorithm allows it to exchange only the
1101 minimum information necessary to bring replicas up to date regardless of which
1102 pairs have previously synchronized.")
1103 (license license:gpl2+)))
1105 (define-public getmail
1112 (uri (string-append "http://pyropus.ca/software/getmail/old-versions/"
1113 "getmail-" version ".tar.gz"))
1115 (base32 "1hcrd9h4g12f5gvl1djsbchcjry02ghq4icdr897s8v48pkrzagk"))))
1116 (build-system python-build-system)
1118 `(#:tests? #f ; no tests
1119 #:python ,python-2))
1120 (home-page "http://pyropus.ca/software/getmail/")
1121 (synopsis "Mail retriever")
1123 "A flexible, extensible mail retrieval system with support for
1124 POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs,
1125 arbitrary message filtering, single-user and domain-mailboxes, and many other
1128 ;; License is specified in file '__init__.py'.
1129 (license license:gpl2)))
1131 (define-public libetpan
1138 (url "https://github.com/dinhviethoa/libetpan.git")
1140 (file-name (git-file-name name version))
1142 (base32 "19g4qskg71jv7sxfxsdkjmrxk9mk5kf9b6fhw06g6wvm3205n95f"))))
1143 (build-system gnu-build-system)
1144 (native-inputs `(("autoconf" ,autoconf-wrapper)
1145 ("automake" ,automake)
1146 ("libtool" ,libtool)
1147 ("pkg-config" ,pkg-config)))
1149 ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these
1150 ;; libraries need to be propagated.
1151 `(("cyrus-sasl" ,cyrus-sasl)
1152 ("openssl" ,openssl)))
1159 '("--disable-static" "--disable-db")))
1160 (home-page "https://www.etpan.org/libetpan.html")
1161 (synopsis "Portable middleware for email access")
1163 "The purpose of this mail library is to provide a portable, efficient
1164 framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It
1165 provides an API for C language. It's the low-level API used by MailCore and
1167 (license license:bsd-3)))
1169 (define-public compface
1175 (uri (string-append "https://ftp.heanet.ie/mirrors/"
1176 "ftp.xemacs.org/aux/"
1177 "compface-" version ".tar.gz"))
1180 "09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6"))))
1181 (build-system gnu-build-system)
1184 (synopsis "Portrait image compressor")
1185 (description "This package takes your 48x48x1 portrait image and
1187 (home-page "https://legacy.cs.indiana.edu/ftp/faces/")
1188 (license (license:x11-style "file://README"))))
1190 (define-public claws-mail
1197 "https://www.claws-mail.org/releases/claws-mail-" version
1201 "1s05qw0r0gqwvvkxvrrwbjkbi61dvilixiwrpgcq21qc9csc9r0m"))))
1202 (build-system gnu-build-system)
1203 (native-inputs `(("pkg-config" ,pkg-config)))
1204 (inputs `(("bogofilter" ,bogofilter)
1206 ("dbus-glib" ,dbus-glib)
1207 ("enchant" ,enchant)
1209 ("ghostscript" ,ghostscript)
1210 ("hicolor-icon-theme" ,hicolor-icon-theme)
1215 ("libarchive" ,libarchive)
1216 ("libcanberra" ,libcanberra)
1217 ("libetpan" ,libetpan)
1218 ("libical" ,libical)
1219 ("libnotify" ,libnotify)
1221 ("libxml2" ,libxml2)
1223 ("python-2" ,python-2)
1224 ("mime-info" ,shared-mime-info)
1225 ("startup-notification" ,startup-notification)))
1228 '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant"
1231 ;; Disable updating icon cache since it's done by the profile hook.
1232 ;; Conflict with other packages in the profile would be inevitable
1234 '("gtk_update_icon_cache=true")
1235 #:phases (modify-phases %standard-phases
1236 (add-before 'build 'patch-mime
1237 (lambda* (#:key inputs #:allow-other-keys)
1238 (substitute* "src/procmime.c"
1239 (("/usr/share/mime/globs")
1240 (string-append (assoc-ref inputs "mime-info")
1241 "/share/mime/globs"))))))))
1242 (synopsis "GTK-based Email client")
1244 "Claws-Mail is an email client (and news reader) based on GTK+. The
1245 appearance and interface are designed to be familiar to new users coming from
1246 other popular email clients, as well as experienced users. Almost all commands
1247 are accessible with the keyboard. Plus, Claws-Mail is extensible via addons
1248 which can add many functionalities to the base client.")
1249 (home-page "https://www.claws-mail.org/")
1250 (license license:gpl3+))) ; most files are actually public domain or x11
1252 (define-public msmtp
1259 (uri (string-append "https://marlam.de/msmtp/releases/"
1260 "/msmtp-" version ".tar.xz"))
1262 (base32 "0q0fg235qk448l1xjcwyxr7vcpzk6w57jzhjbkb0m7nffyhhypzj"))))
1263 (build-system gnu-build-system)
1265 `(("libsecret" ,libsecret)
1270 `(("pkg-config" ,pkg-config)))
1271 (home-page "https://marlam.de/msmtp/")
1273 `(#:configure-flags (list "--with-libgsasl"
1275 "--with-tls=gnutls")
1277 (modify-phases %standard-phases
1278 (add-after 'install 'install-additional-files
1279 (lambda* (#:key outputs #:allow-other-keys)
1280 (let* ((out (assoc-ref outputs "out"))
1281 (bin (string-append out "/bin"))
1282 (doc (string-append out "/share/doc/msmtp"))
1283 (msmtpq "scripts/msmtpq")
1284 (vimfiles (string-append out "/share/vim/vimfiles/plugin")))
1285 (install-file (string-append msmtpq "/msmtpq") bin)
1286 (install-file (string-append msmtpq "/msmtp-queue") bin)
1287 (install-file (string-append msmtpq "/README.msmtpq") doc)
1288 (install-file "scripts/vim/msmtp.vim" vimfiles)
1289 ;; Don't rely on netcat being in the PATH to test for a
1290 ;; connection, instead try tp ing debian.org.
1291 (substitute* (string-append bin "/msmtpq")
1292 (("EMAIL_CONN_TEST=n") "EMAIL_CONN_TEST=p"))
1295 "Simple and easy to use SMTP client with decent sendmail compatibility")
1297 "msmtp is an SMTP client. In the default mode, it transmits a mail to
1298 an SMTP server (for example at a free mail provider) which takes care of further
1300 (license license:gpl3+)))
1309 (uri (let ((file-name (string-append "exim-" version ".tar.xz")))
1310 (list (string-append "https://ftp.exim.org/pub/exim/exim4/"
1312 ;; ‘Fix’ releases (exim-x.y.z.f) are kept separately.
1313 (string-append "https://ftp.exim.org/pub/exim/exim4/fixes/"
1315 ;; After a new non-fix release, the old one is moved here.
1316 (string-append "https://ftp.exim.org/pub/exim/exim4/old/"
1319 (base32 "1nsb2i5mqxfz1sl1bmbxmpb2qiaf3wffhfiw4j9vfpagy3xfhzpp"))))
1320 (build-system gnu-build-system)
1322 `(("bdb" ,bdb-5.3) ; ‘#error Version 6 and later BDB API is not supported’
1323 ("gnutls" ,gnutls/dane)
1330 ("libxaw" ,libxaw)))
1332 `(("pcre" ,pcre "bin")
1334 ("pkg-config" ,pkg-config)))
1337 (modify-phases %standard-phases
1339 ;; We'd use #:make-flags but the top-level Makefile calls others
1340 ;; recursively, so just set all variables this way.
1341 (lambda* (#:key outputs inputs #:allow-other-keys)
1342 (substitute* '("Makefile" "OS/Makefile-Default")
1343 (("(RM_COMMAND=).*" all var)
1344 (string-append var "rm\n")))
1345 (copy-file "src/EDITME" "Local/Makefile")
1346 (copy-file "exim_monitor/EDITME" "Local/eximon.conf")
1347 (let ((out (assoc-ref outputs "out"))
1348 (gzip (assoc-ref inputs "gzip"))
1349 (bzip2 (assoc-ref inputs "bzip2"))
1350 (xz (assoc-ref inputs "xz")))
1351 (substitute* '("Local/Makefile")
1352 (("(BIN_DIRECTORY=).*" all var)
1353 (string-append var out "/bin\n"))
1354 (("(CONFIGURE_FILE=).*" all var)
1355 (string-append var out "/etc/exim.conf\n"))
1356 (("(EXIM_USER=).*" all var)
1357 (string-append var "nobody\n"))
1358 (("(FIXED_NEVER_USERS=).*" all var)
1359 (string-append var "\n")) ; XXX no root in build environment
1360 (("(COMPRESS_COMMAND=).*" all var)
1361 (string-append var gzip "/bin/gzip\n"))
1362 (("(ZCAT_COMMAND=).*" all var)
1363 (string-append var gzip "/bin/zcat\n"))
1364 (("# (USE_GNUTLS(|_PC)=.*)" all line)
1365 (string-append line "\n")))
1366 ;; This file has hard-coded relative file names for tools despite
1367 ;; the zcat configuration above.
1368 (substitute* '("src/exigrep.src")
1369 (("'zcat'") (string-append "'" gzip "/bin/zcat'"))
1370 (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'"))
1371 (("'xzcat'") (string-append "'" xz "/bin/xzcat'"))
1372 (("'lzma'") (string-append "'" xz "/bin/lzma'"))))
1374 (add-before 'build 'fix-sh-paths
1375 (lambda* (#:key inputs #:allow-other-keys)
1376 (substitute* '("scripts/lookups-Makefile" "scripts/reversion")
1377 (("SHELL=/bin/sh") "SHELL=sh"))
1378 (substitute* '("scripts/Configure-config.h")
1379 (("\\| /bin/sh") "| sh"))
1380 (let ((bash (assoc-ref inputs "bash")))
1381 (substitute* '("scripts/Configure-eximon")
1382 (("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))
1384 (add-before 'build 'build-reproducibly
1386 ;; The ‘compilation number’ is incremented for every build from the
1387 ;; same source tree. It appears to vary over different (parallel?)
1388 ;; builds. Make it a ‘constant number’ instead.
1389 (substitute* "src/version.c"
1390 (("#include \"cnumber.h\"") "1")))))
1393 "INSTALL_ARG=-no_chown")
1394 ;; No 'check' target. There is a test suite in test/, which assumes that
1395 ;; certain build options were (not) used and that it can freely ‘sudo’.
1397 (home-page "https://www.exim.org/")
1399 "Message Transfer Agent (MTA) developed at the University of Cambridge")
1401 "Exim is a message transfer agent (MTA) developed at the University of
1402 Cambridge for use on Unix systems connected to the Internet. In style it is
1403 similar to Smail 3, but its facilities are more general. There is a great
1404 deal of flexibility in the way mail can be routed, and there are extensive
1405 facilities for checking incoming mail.")
1406 (license license:gpl2+)))
1408 (define-public dovecot
1411 (version "2.3.11.3")
1415 (uri (string-append "https://www.dovecot.org/releases/"
1416 (version-major+minor version) "/"
1417 "dovecot-" version ".tar.gz"))
1419 (base32 "1p5gp8jbavcsaara5mfn5cbrnlxssajnchczbgmmfzr7228fmnfk"))))
1420 (build-system gnu-build-system)
1422 `(("pkg-config" ,pkg-config)))
1425 ("libsodium" ,libsodium) ; extra password algorithms
1426 ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's
1427 ;; backtrace_symbol() function so fallback to using libunwind.
1429 `(("libunwind" ,libunwind))
1431 ("linux-pam" ,linux-pam)
1433 ("openssl" ,openssl)
1437 `(#:configure-flags '("--sysconfdir=/etc"
1438 "--localstatedir=/var"
1439 "--with-sqlite") ; not auto-detected
1441 (modify-phases %standard-phases
1442 (add-after 'unpack 'patch-file-names
1444 (substitute* "src/lib-program-client/test-program-client-local.c"
1445 (("(/bin/| )cat") (which "cat"))
1446 (("/bin/echo") (which "echo"))
1447 (("/bin/false") (which "false"))
1448 (("/bin/sh") (which "bash"))
1449 (("head") (which "head"))
1450 (("sleep") (which "sleep")))
1451 (substitute* (list "src/lib-smtp/test-bin/sendmail-exit-1.sh"
1452 "src/lib-smtp/test-bin/sendmail-success.sh")
1453 (("cat") (which "cat")))
1456 (lambda* (#:key make-flags #:allow-other-keys)
1457 ;; Simple hack to avoid installing a trivial README in /etc.
1458 (apply invoke "make" "install" "sysconfdir=/tmp/bogus"
1460 (home-page "https://www.dovecot.org")
1461 (synopsis "Secure POP3/IMAP server")
1463 "Dovecot is a mail server whose major goals are security and reliability.
1464 It supports mbox/Maildir and its own dbox/mdbox formats.")
1465 ;; Most source files are covered by either lgpl2.1 or expat. The SHA code
1466 ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the
1467 ;; Unicode, Inc. License Agreement for Data Files and Software.
1468 (license (list license:lgpl2.1 license:expat
1469 (license:non-copyleft "file://COPYING")))))
1471 (define-public dovecot-trees
1473 (name "dovecot-trees")
1478 (uri (string-append "https://0xacab.org/riseuplabs/trees/repository/"
1479 "archive.tar.gz?ref=v" version))
1480 (file-name (string-append name "-" version ".tar.gz"))
1483 "0rkk10b1bsjz979sc864vpgcdchy7yxwmyv4ik50lar1h6awdnrf"))
1485 (search-patches "dovecot-trees-support-dovecot-2.3.patch"))))
1486 (build-system gnu-build-system)
1488 `(("automake" ,automake)
1489 ("autoconf" ,autoconf)
1490 ("libtool" ,libtool)
1491 ("dovecot" ,dovecot)
1492 ("pkg-config" ,pkg-config)))
1494 `(("libsodium" ,libsodium)))
1496 `(#:tests? #f ;No tests exist.
1497 #:configure-flags (list (string-append "--with-dovecot="
1498 (assoc-ref %build-inputs "dovecot")
1500 (home-page "https://0xacab.org/riseuplabs/trees")
1501 (synopsis "NaCL-based Dovecot email storage encryption plugin")
1503 "Technology for Resting Email Encrypted Storage (TREES) is a NaCL-based
1504 Dovecot encryption plugin. This plugin adds individually encrypted mail
1505 storage to the Dovecot IMAP server. It is inspired by Posteo's scrambler
1506 which uses OpenSSL and RSA keypairs. TREES works in a similar way, but uses
1507 the Sodium crypto library (based on NaCL).
1511 @item On IMAP log in, the user's cleartext password is passed to the plugin.
1512 @item The plugin creates an argon2 digest from the password.
1513 @item This password digest is used as a symmetric secret to decrypt a libsodium secretbox.
1514 @item Inside the secretbox is stored a Curve25519 private key.
1515 @item The Curve25519 private key is used to decrypt each individual message,
1516 using libsodium sealed boxes.
1517 @item New mail is encrypted as it arrives using the Curve25519 public key.
1519 (license license:agpl3)))
1521 (define-public dovecot-libsodium-plugin
1522 (let ((commit "044de73c01c35385df0105f6b387bec5d5317ce7")
1525 (name "dovecot-libsodium-plugin")
1526 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1531 (url "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1533 (file-name (string-append name "-" version "-checkout"))
1536 "13h07l7xy713zchnj2p9fhvq7fdl4zy1ai94li3ygkqjjj8hrgas"))))
1537 (build-system gnu-build-system)
1539 `(("automake" ,automake)
1540 ("autoconf" ,autoconf)
1541 ("libtool" ,libtool)
1542 ("dovecot" ,dovecot)
1543 ("pkg-config" ,pkg-config)))
1545 `(("libsodium" ,libsodium)))
1547 `(#:tests? #f ;No tests exist.
1548 #:configure-flags (list (string-append "--with-dovecot="
1549 (assoc-ref %build-inputs "dovecot")
1551 (home-page "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1552 (synopsis "Libsodium password hashing schemes plugin for Dovecot")
1554 "@code{dovecot-libsodium-plugin} provides a libsodium password
1555 hashing scheme (such as scrypt) plug-in for @code{Dovecot}.")
1556 (license license:gpl3+))))
1558 (define-public isync
1565 (uri (string-append "mirror://sourceforge/isync/isync/"
1566 version "/isync-" version ".tar.gz"))
1568 "10n8ykag0q3ws6fc15xqyg3v980v5nq3kzpablly2rh2z7vkn8gj"))))
1569 (build-system gnu-build-system)
1574 ("cyrus-sasl" ,cyrus-sasl)
1575 ("openssl" ,openssl-1.0)
1577 (home-page "https://isync.sourceforge.io/")
1578 (synopsis "Mailbox synchronization program")
1580 "isync/mbsync is a command-line tool for two-way synchronization of
1581 mailboxes. Currently Maildir and IMAP are supported types.")
1582 (license license:gpl2+)))
1584 (define-public perl-email-abstract
1586 (name "perl-email-abstract")
1591 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1592 "Email-Abstract-" version ".tar.gz"))
1595 "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw"))))
1596 (build-system perl-build-system)
1598 `(("perl-email-simple" ,perl-email-simple)
1599 ("perl-module-pluggable" ,perl-module-pluggable)
1600 ("perl-mro-compat" ,perl-mro-compat)))
1601 (home-page "https://metacpan.org/release/Email-Abstract")
1602 (synopsis "Interface to mail representations")
1603 (description "Email::Abstract provides module writers with the ability to
1604 write simple, representation-independent mail handling code.")
1605 (license license:perl-license)))
1607 (define-public perl-email-address
1609 (name "perl-email-address")
1614 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1615 "Email-Address-" version ".tar.gz"))
1617 (base32 "1vzr0vx4zsw4zbc9xdffc31wnkc1raqmyfiyws06fbyck197i8qg"))))
1618 (build-system perl-build-system)
1619 (home-page "https://metacpan.org/release/Email-Address")
1620 (synopsis "Email address parsing and creation")
1621 (description "Email::Address implements a regex-based RFC 2822 parser that
1622 locates email addresses in strings and returns a list of Email::Address
1623 objects found. Alternatively you may construct objects manually.")
1624 (license license:perl-license)))
1626 (define-public perl-email-address-xs
1628 (name "perl-email-address-xs")
1633 (uri (string-append "mirror://cpan/authors/id/P/PA/PALI/"
1634 "Email-Address-XS-" version ".tar.gz"))
1637 "0gjrrl81z3sfwavgx5kwjd87gj44mlnbbqsm3dgdv1xllw26spwr"))))
1638 (build-system perl-build-system)
1639 (home-page "https://metacpan.org/release/Email-Address-XS")
1640 (synopsis "Parse and format RFC 5322 email addresses and groups")
1642 "Email::Address::XS implements RFC 5322 parser and formatter of email
1643 addresses and groups. Unlike Email::Address, this module does not use regular
1644 expressions for parsing but instead is implemented in XS and uses shared code
1645 from Dovecot IMAP server.")
1646 (license license:perl-license)))
1648 (define-public perl-email-date-format
1650 (name "perl-email-date-format")
1655 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1656 "Email-Date-Format-" version ".tar.gz"))
1659 "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p"))))
1660 (build-system perl-build-system)
1661 (home-page "https://metacpan.org/release/Email-Date-Format")
1662 (synopsis "Produce RFC 2822 date strings")
1663 (description "Email::Date::Format provides a means for generating an RFC
1664 2822 compliant datetime string.")
1665 (license license:perl-license)))
1667 (define-public perl-email-messageid
1669 (name "perl-email-messageid")
1674 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1675 "Email-MessageID-" version ".tar.gz"))
1678 "1f22sdnfq169qw1l0lg7y74pmiam7j9v95bggjnf3q4mygdmshpc"))))
1679 (build-system perl-build-system)
1680 (home-page "https://metacpan.org/release/Email-MessageID")
1681 (synopsis "Generate world unique message-ids")
1682 (description "Email::MessageID generates recommended message-ids to
1683 identify a message uniquely.")
1684 (license license:perl-license)))
1686 (define-public perl-email-mime
1688 (name "perl-email-mime")
1693 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1694 "Email-MIME-" version ".tar.gz"))
1697 "0z1k3i0lzp2k421gc8f3wq0jbqflkbw2xqd2k7n7pmv56417kvk8"))))
1698 (build-system perl-build-system)
1700 `(("perl-email-address" ,perl-email-address)
1701 ("perl-email-messageid" ,perl-email-messageid)
1702 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
1703 ("perl-email-mime-encodings" ,perl-email-mime-encodings)
1704 ("perl-email-simple" ,perl-email-simple)
1705 ("perl-mime-types" ,perl-mime-types)
1706 ("perl-module-runtime" ,perl-module-runtime)))
1707 (home-page "https://metacpan.org/release/Email-MIME")
1708 (synopsis "MIME message handling")
1709 (description "Email::MIME is an extension of the Email::Simple module, to
1710 handle MIME encoded messages. It takes a message as a string, splits it up
1711 into its constituent parts, and allows you access to various parts of the
1712 message. Headers are decoded from MIME encoding.")
1713 (license license:perl-license)))
1715 (define-public perl-email-mime-contenttype
1717 (name "perl-email-mime-contenttype")
1722 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1723 "Email-MIME-ContentType-" version ".tar.gz"))
1726 "042kxhs3bp1ab9z0mbr1wy21ld4lxd6v2a2mmrashqnsn2075fws"))))
1727 (build-system perl-build-system)
1729 `(("perl-capture-tiny" ,perl-capture-tiny)))
1730 (home-page "https://metacpan.org/release/Email-MIME-ContentType")
1731 (synopsis "Parse MIME Content-Type headers")
1732 (description "Email::MIME::ContentType parses a MIME Content-Type
1734 (license license:perl-license)))
1736 (define-public perl-email-mime-encodings
1738 (name "perl-email-mime-encodings")
1743 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1744 "Email-MIME-Encodings-" version ".tar.gz"))
1747 "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac"))))
1748 (build-system perl-build-system)
1750 `(("perl-capture-tiny" ,perl-capture-tiny)))
1751 (home-page "https://metacpan.org/release/Email-MIME-Encodings")
1752 (synopsis "Unified interface to MIME encoding and decoding")
1753 (description "This module wraps MIME::Base64 and MIME::QuotedPrint.")
1754 (license license:perl-license)))
1756 (define-public perl-email-sender
1758 (name "perl-email-sender")
1759 (version "1.300034")
1763 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1764 "Email-Sender-" version ".tar.gz"))
1766 (base32 "14aj9kqa9dr2bdhzn2qvjj2mffj8wjb5397z8qw7qg057fk3ib05"))))
1767 (build-system perl-build-system)
1769 `(("perl-capture-tiny" ,perl-capture-tiny)))
1771 `(("perl-email-abstract" ,perl-email-abstract)
1772 ("perl-email-address" ,perl-email-address)
1773 ("perl-email-simple" ,perl-email-simple)
1774 ("perl-list-moreutils" ,perl-list-moreutils)
1775 ("perl-module-runtime" ,perl-module-runtime)
1776 ("perl-moo" ,perl-moo)
1777 ("perl-moox-types-mooselike" ,perl-moox-types-mooselike)
1778 ("perl-sub-exporter" ,perl-sub-exporter)
1779 ("perl-throwable" ,perl-throwable)
1780 ("perl-try-tiny" ,perl-try-tiny)))
1781 (home-page "https://metacpan.org/release/Email-Sender")
1782 (synopsis "Perl library for sending email")
1783 (description "Email::Sender replaces the old and sometimes problematic
1784 Email::Send library.")
1785 (license license:perl-license)))
1787 (define-public perl-email-simple
1789 (name "perl-email-simple")
1794 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1795 "Email-Simple-" version ".tar.gz"))
1798 "1m4brbjvalyp5kjqslqv4155dzwg977shxin208i7lc8236n6pyq"))))
1799 (build-system perl-build-system)
1801 `(("perl-email-date-format" ,perl-email-date-format)))
1802 (home-page "https://metacpan.org/release/Email-Simple")
1803 (synopsis "Parsing of RFC 2822 messages")
1804 (description "Email::Simple provides simple parsing of RFC 2822 message
1805 format and headers.")
1806 (license license:perl-license)))
1808 (define-public libesmtp
1815 (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/"
1816 "libesmtp/libesmtp-" version ".tar.bz2/"
1817 "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-"
1819 ;; XXX This site is offline, so we fetch Fedora's cached copy
1820 ;; of the source tarball.
1821 (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-"
1822 version ".tar.bz2")))
1825 "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh"))))
1826 (build-system gnu-build-system)
1828 `(("openssl" ,openssl)))
1829 (home-page "http://www.stafford.uklinux.net/libesmtp/")
1830 (synopsis "Library for sending mail via remote hosts using SMTP")
1831 (description "libESMTP is an SMTP client which manages posting (or
1832 submission of) electronic mail via a preconfigured Mail Transport Agent (MTA).
1833 It may be used as part of a Mail User Agent (MUA) or other program that must
1834 be able to post electronic mail where mail functionality may not be that
1835 program's primary purpose.")
1836 (license (list license:lgpl2.1+ license:gpl2+))))
1838 (define-public esmtp
1846 (url "https://github.com/andywingo/esmtp")
1847 (commit "01bf9fc")))
1850 "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2"))
1851 (file-name (string-append name "-" version "-checkout"))))
1853 `(#:phases (modify-phases %standard-phases
1855 (lambda _ (invoke "autoreconf" "-vfi"))))))
1856 (build-system gnu-build-system)
1860 ("autoconf" ,autoconf)
1861 ("automake" ,automake)
1862 ("libtool" ,libtool)))
1864 `(("libesmtp" ,libesmtp)))
1865 (home-page "https://sourceforge.net/projects/esmtp/")
1866 (synopsis "Relay-only mail transfer agent (MTA)")
1867 (description "Esmtp is a simple relay-only mail transfer agent built using
1868 libESMTP. It sends e-mail via a remote SMTP server using credentials from the
1869 user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man
1870 page for more on configuration. This package also provides minimal
1871 compatibility shims for the @command{sendmail}, @command{mailq}, and
1872 @command{newaliases} commands.")
1873 (license license:gpl2+)))
1881 (uri (string-append "https://github.com/nicm/fdm/releases/download/"
1882 version "/fdm-" version ".tar.gz"))
1884 (base32 "196fs1z8y7p12wmqn1bylzz94szl58yv2aby3p30nmwjnyv8rch6"))))
1885 (build-system gnu-build-system)
1888 ("openssl" ,openssl)
1890 (home-page "https://github.com/nicm/fdm")
1891 (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)")
1892 (description "fdm is a program designed to fetch mail from POP3
1893 or IMAP servers, or receive local mail from stdin, and
1894 deliver it in various ways.")
1896 ;; Why point to a source file? Well, all the individual files have a
1897 ;; copy of this license in their headers, but there's no seprate file
1898 ;; with that information.
1899 (license:non-copyleft
1900 "https://github.com/nicm/fdm/blob/master/command.c"))))
1903 (define-public procmail
1911 "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-"
1916 "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"))
1917 ;; The following patch fixes an ambiguous definition of
1918 ;; getline() in formail.c. The patch is provided by Debian as
1920 (patches (search-patches "procmail-ambiguous-getline-debian.patch"
1921 "procmail-CVE-2014-3618.patch"
1922 "procmail-CVE-2017-16844.patch"))))
1924 `(#:phases (modify-phases %standard-phases
1927 (substitute* "Makefile"
1931 (assoc-ref %outputs "out"))
1935 #:tests? #f)) ;; There are no tests indicating a successful
1936 ;; build. Some tests of basic locking mechanisms provided by the
1937 ;; file system are performed during 'make install'. However, these
1938 ;; are performed before the actual build process.
1939 (build-system gnu-build-system)
1940 (inputs `(("exim" ,exim)))
1941 (home-page "http://www.procmail.org/")
1942 (synopsis "Versatile mail delivery agent (MDA)")
1943 (description "Procmail is a mail delivery agent (MDA) featuring support
1944 for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail
1945 can be sorted into separate files/directories and arbitrary commands can be
1946 executed on mail arrival. Procmail is considered stable, but is no longer
1948 (license license:gpl2+))) ;; procmail allows to choose the
1949 ;; nonfree Artistic License 1.0
1950 ;; as alternative to the GPL2+.
1951 ;; This option is not listed here.
1953 (define-public khard
1959 (uri (pypi-uri name version))
1962 "062nv4xkfsjc11k9m52dh6xjn9z68a4a6x1s8z05wwv4jbp1lkhn"))))
1963 (build-system python-build-system)
1966 (modify-phases %standard-phases
1967 (add-after 'install 'install-completions
1968 (lambda* (#:key outputs #:allow-other-keys)
1969 (let* ((out (assoc-ref outputs "out"))
1970 (zsh (string-append out "/share/zsh/site-functions")))
1971 (copy-recursively "misc/zsh" zsh)
1974 `(("python-setuptools-scm" ,python-setuptools-scm)))
1976 `(("python-atomicwrites" ,python-atomicwrites)
1977 ("python-configobj" ,python-configobj)
1978 ("python-ruamel.yaml" ,python-ruamel.yaml)
1979 ("python-unidecode" ,python-unidecode)
1980 ("python-vobject" ,python-vobject)))
1981 (synopsis "Console address book using CardDAV")
1982 (description "Khard is an address book for the console. It creates, reads,
1983 modifies and removes CardDAV address book entries at your local machine. For
1984 synchronizing with a remote address book, @command{vdirsyncer} is recommended.
1985 Khard can also be used from within the email client @command{mutt}.")
1986 (home-page "https://github.com/scheibler/khard")
1987 (license license:gpl3+)))
1989 (define-public perl-mail-spf
1991 (name "perl-mail-spf")
1997 "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v"
2001 (base32 "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1"))))
2002 (build-system perl-build-system)
2004 `(("perl-module-build" ,perl-module-build)
2005 ("perl-net-dns-resolver-programmable"
2006 ,perl-net-dns-resolver-programmable)))
2009 (modify-phases %standard-phases
2010 (add-before 'configure 'modify-Build.PL
2011 (lambda* (#:key outputs #:allow-other-keys)
2012 (substitute* "Build.PL"
2013 (("'/usr/sbin'") (string-append "'"
2014 (assoc-ref outputs "out")
2018 `(("perl-error" ,perl-error)
2019 ("perl-net-dns" ,perl-net-dns)
2020 ("perl-netaddr-ip" ,perl-netaddr-ip)
2021 ("perl-uri" ,perl-uri)))
2022 (home-page "https://metacpan.org/release/Mail-SPF")
2023 (synopsis "Perl implementation of Sender Policy Framework")
2024 (description "Mail::SPF is the Sender Policy Framework implemented
2026 (license license:bsd-3)))
2028 (define-public perl-mail-authenticationresults
2030 (name "perl-mail-authenticationresults")
2031 (version "1.20180923")
2035 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2036 "Mail-AuthenticationResults-" version ".tar.gz"))
2039 "1g1wym9vcbhldwvi4w5pl0fhd4jh2icj975awf4wr5xmkli9mxbz"))))
2040 (build-system perl-build-system)
2042 `(("perl-test-exception" ,perl-test-exception)))
2043 (home-page "https://metacpan.org/release/Mail-AuthenticationResults")
2044 (synopsis "Object Oriented Authentication-Results Headers")
2045 (description "Mail::AuthenticationResults parses the message header field
2046 that indicates the message authentication status as per RFC7601. This module
2047 is not fully compliant with the RFC but it tries to implement most styles of
2048 Authentication-Results header seen in the wild.")
2049 (license license:perl-license)))
2051 (define-public perl-mail-dkim
2053 (name "perl-mail-dkim")
2058 "mirror://cpan/authors/id/M/MB/MBRADSHAW/Mail-DKIM-"
2063 "0cgkal65qqcy57b21lgij90ba36wl66byw9i76g5yhwaa8ms8hqa"))))
2064 (build-system perl-build-system)
2066 `(("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2067 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2068 ("perl-mailtools" ,perl-mailtools)
2069 ("perl-net-dns" ,perl-net-dns)))
2071 `(("perl-net-dns-resolver-mock" ,perl-net-dns-resolver-mock)
2072 ("perl-test-requiresinternet" ,perl-test-requiresinternet)
2073 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
2074 (home-page "https://metacpan.org/release/Mail-DKIM")
2075 (synopsis "Signs/verifies Internet mail with DKIM/DomainKey signatures")
2076 (description "Mail::DKIM is a Perl module that implements the new Domain
2077 Keys Identified Mail (DKIM) standard, and the older Yahoo! DomainKeys standard,
2078 both of which sign and verify emails using digital signatures and DNS records.
2079 Mail-DKIM can be used by any Perl program that wants to provide support for
2080 DKIM and/or DomainKeys.")
2081 (license license:gpl3+)))
2083 (define-public dkimproxy
2090 "mirror://sourceforge/dkimproxy/dkimproxy/"
2091 version "/dkimproxy-" version ".tar.gz"))
2094 "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75"))
2096 (search-patches "dkimproxy-add-ipv6-support.patch"))))
2097 (build-system gnu-build-system)
2100 (modify-phases %standard-phases
2101 (add-after 'install 'make-wrapper
2102 (lambda* (#:key inputs outputs #:allow-other-keys)
2103 (let* ((out (assoc-ref outputs "out"))
2104 (wrap.pl (lambda (scripts keys)
2107 (wrap-program (string-append out script)
2108 `("PERL5LIB" ":" prefix
2111 (assoc-ref inputs input)
2112 "/lib/perl5/site_perl"))
2115 (wrap.pl (list "/bin/dkimproxy.in"
2116 "/bin/dkimproxy.out")
2117 (list "perl-crypt-openssl-rsa"
2118 "perl-io-socket-inet6"
2120 "perl-mail-authenticationresults"
2125 (wrap.pl (list "/bin/dkim_responder.pl")
2126 (list "perl-crypt-openssl-rsa"
2135 ("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2136 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2137 ("perl-mailtools" ,perl-mailtools)
2138 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2139 ("perl-mail-dkim" ,perl-mail-dkim)
2140 ("perl-mime-tools" ,perl-mime-tools)
2141 ("perl-net-dns" ,perl-net-dns)
2142 ("perl-net-server" ,perl-net-server)
2143 ("perl-socket6" ,perl-socket6)
2144 ("perl-timedate" ,perl-timedate)))
2145 (home-page "http://dkimproxy.sourceforge.net/")
2146 (synopsis "SMTP proxy to sign and verify Internet mail with DKIM headers")
2148 "DKIMproxy is an SMTP proxy that signs and verifies Internet mail using the
2149 @code{Mail::DKIM} Perl module. It comprises two separate proxies: an outbound
2150 proxy for signing outgoing email, and an inbound proxy for verifying signatures
2151 of incoming messages.
2153 It was designed for Postfix, but can be used to add DKIM support to nearly any
2154 existing mail server. With Postfix, the proxies can operate as either
2155 @code{Before-Queue} or @code{After-Queue} content filters.")
2156 (license license:gpl2+)))
2158 (define-public mb2md
2165 "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-"
2169 "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg"))))
2170 (build-system trivial-build-system)
2172 '(#:modules ((guix build utils))
2175 (use-modules (guix build utils))
2176 (let* ((source (assoc-ref %build-inputs "source"))
2177 (out (assoc-ref %outputs "out"))
2178 (bin (string-append out "/bin"))
2179 (perl (assoc-ref %build-inputs "perl"))
2180 (gzip (assoc-ref %build-inputs "gzip"))
2181 (perl-timedate (assoc-ref %build-inputs "perl-timedate"))
2182 (perl5lib (string-append perl-timedate "/lib/perl5/site_perl")))
2184 (with-directory-excursion bin
2185 (copy-file source "mb2md.gz")
2186 (invoke (string-append gzip "/bin/gzip") "-d" "mb2md.gz")
2187 (substitute* "mb2md"
2188 (("#!/usr/bin/perl")
2189 (string-append "#!/usr/bin/perl -I " perl5lib)))
2190 (patch-shebang "mb2md" (list (string-append perl "/bin")))
2191 (chmod "mb2md" #o555))
2193 (native-inputs `(("gzip" ,gzip)))
2194 (inputs `(("perl" ,perl)
2195 ("perl-timedate" ,perl-timedate)))
2196 (home-page "http://batleth.sapienti-sat.org/projects/mb2md/")
2197 (synopsis "Mbox to maildir converter")
2199 "Mb2md is a Perl script that takes one or more mbox format files and
2200 converts them to maildir format directories.")
2201 (license license:public-domain)))
2210 (uri (string-append "https://marlam.de/mpop/releases/"
2211 "mpop-" version ".tar.xz"))
2213 (base32 "1243hazpiwgvz2m3p48cdh0yw1019i6xjxgc7qyhmxcdy0inb6wy"))))
2214 (build-system gnu-build-system)
2216 `(("gnutls" ,gnutls)))
2218 `(("pkg-config" ,pkg-config)))
2219 (home-page "https://marlam.de/mpop/")
2220 (synopsis "POP3 mail client")
2221 (description "mpop is a small and fast POP3 client suitable as a
2222 fetchmail replacement.
2224 mpop supports multiple accounts, header based mail filtering, delivery
2225 to mbox files, maildir folders or an @acronym{MDA, Mail Delivery Agent},
2226 TLS/SSL, several authentication methods, @acronym{IDN, Internationalized Domain
2227 Names} and SOCKS proxies.")
2228 (license license:gpl3+)))
2230 (define-public mhonarc
2237 (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-"
2241 "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq"))))
2242 (build-system perl-build-system)
2243 (home-page "https://www.mhonarc.org/")
2244 (synopsis "Create HTML archives of mail/news messages")
2246 "MHonArc is a Perl mail-to-HTML converter. MHonArc
2247 provides HTML mail archiving with index, mail thread linking,
2248 etc; plus other capabilities including support for MIME and
2249 powerful user customization features.")
2250 (license license:gpl2+)))
2253 (define-public sendmail
2261 "ftp://ftp.sendmail.org/pub/sendmail/sendmail."
2265 "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94"))))
2266 (build-system gnu-build-system)
2269 (modify-phases %standard-phases
2270 (add-before 'build 'replace-/bin/sh
2274 (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio"
2275 "contrib/mmuegel" "devtools/bin/configure.sh")
2276 (find-files "." ".*\\.m4")
2277 (find-files "." ".*\\.cf"))
2278 (("/bin/sh") (which "sh")))
2280 (substitute* "devtools/bin/Build"
2281 (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh"))))
2286 ;; Render harmless any attempts to chown or chgrp
2287 (substitute* "devtools/bin/install.sh"
2288 (("owner=\\$2") "owner=''")
2289 (("group=\\$2") "group=''"))
2291 (with-output-to-file "devtools/Site/site.config.m4"
2294 define(`confCC', `gcc')
2295 define(`confOPTIMIZE', `-g -O2')
2296 define(`confLIBS', `-lresolv')
2297 define(`confINSTALL', `~a/devtools/bin/install.sh')
2298 define(`confDEPEND_TYPE', `CC-M')
2299 define(`confINST_DEP', `')
2304 (invoke "sh" "Build")
2305 (with-directory-excursion "cf/cf"
2306 (copy-file "generic-linux.mc" "sendmail.mc")
2307 (invoke "sh" "Build" "sendmail.cf"))
2309 (add-before 'install 'pre-install
2311 (let ((out (assoc-ref %outputs "out")))
2312 (mkdir-p (string-append out "/usr/bin"))
2313 (mkdir-p (string-append out "/usr/sbin"))
2314 (mkdir-p (string-append out "/etc/mail"))
2315 (setenv "DESTDIR" out)
2316 (with-directory-excursion "cf/cf"
2317 (invoke "sh" "Build" "install-cf"))
2319 ;; There is no make check. There are some post installation tests, but those
2320 ;; require root privileges
2325 (home-page "http://sendmail.org")
2327 "Highly configurable Mail Transfer Agent (MTA)")
2329 "Sendmail is a mail transfer agent (MTA) originally developed by Eric
2330 Allman. It is highly configurable and supports many delivery methods and many
2331 transfer protocols.")
2332 (license (license:non-copyleft "file://LICENSE"
2333 "See LICENSE in the distribution."))))
2335 (define-public opensmtpd
2342 (uri (string-append "https://www.opensmtpd.org/archives/"
2343 "opensmtpd-" version ".tar.gz"))
2345 (base32 "1jh8vxfajm1mvp1v5yh6llrhjzv0n9fgab88mlwllwqynhcfjy3l"))))
2346 (build-system gnu-build-system)
2350 ("libevent" ,libevent)
2351 ("libressl" ,libressl) ; recommended, and supports e.g. ECDSA
2352 ("linux-pam" ,linux-pam)
2356 ("groff" ,groff))) ; for man pages
2359 (list "--localstatedir=/var"
2360 ;; This is the default only if it exists at build time—it doesn't.
2361 "--with-path-socket=/var/run"
2362 "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt"
2363 "--with-user-smtpd=smtpd"
2364 "--with-user-queue=smtpq" "--with-group-queue=smtpq"
2368 (modify-phases %standard-phases
2369 ;; See: https://github.com/OpenSMTPD/OpenSMTPD/issues/1069.
2370 (add-after 'unpack 'fix-smtpctl-encrypt-bug
2372 (substitute* "smtpd/smtpctl.c"
2373 (("\"encrypt\", \"--\",")
2376 ;; Fix some incorrectly hard-coded external tool file names.
2377 (add-after 'unpack 'patch-FHS-file-names
2379 (substitute* "smtpd/smtpctl.c"
2380 ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't.
2381 (("/bin/cat") (which "cat")))
2382 (substitute* "smtpd/mda_unpriv.c"
2383 (("/bin/sh") (which "sh")))
2385 ;; OpenSMTPD provides a single smtpctl utility to control both the
2386 ;; daemon and the local submission subsystem. To accomodate systems
2387 ;; that require historical interfaces such as sendmail, newaliases or
2388 ;; makemap, smtpctl operates in compatibility mode if called with the
2390 (add-after 'install 'install-compability-links
2391 (lambda* (#:key outputs #:allow-other-keys)
2392 (let* ((out (assoc-ref outputs "out"))
2393 (sbin (string-append out "/sbin/")))
2394 (for-each (lambda (command)
2395 (symlink "smtpctl" (string-append sbin command)))
2396 (list "mailq" "makemap" "newaliases"
2397 "send-mail" "sendmail")))
2399 (synopsis "Lightweight SMTP daemon")
2401 "OpenSMTPD is an implementation of server-side @acronym{SMTP, Simple Mail
2402 Transfer Protocol}, with some additional standard extensions. It allows
2403 ordinary machines to exchange e-mails with other systems speaking the SMTP
2404 protocol, or to deliver them to local users.
2406 In order to simplify the use of SMTP, OpenSMTPD implements a smaller set of
2407 functionality than those available in other SMTP daemons. The objective is to
2408 provide enough features to satisfy typical usage at the risk of unsuitability
2409 to esoteric or niche requirements.")
2410 (home-page "https://www.opensmtpd.org")
2411 (license (list license:bsd-2 license:bsd-3 license:bsd-4
2412 (license:non-copyleft "file://COPYING")
2413 license:public-domain license:isc license:openssl))))
2415 (define-public opensmtpd-extras
2417 (name "opensmtpd-extras")
2421 (uri (string-append "https://www.opensmtpd.org/archives/"
2422 "opensmtpd-extras-" version ".tar.gz"))
2425 "1b1mx71bvmv92lbm08wr2p60g3qhikvv3n15zsr6dcwbk9aqahzq"))))
2426 (build-system gnu-build-system)
2428 `(("pkg-config" ,pkg-config)))
2430 `(("libressl" ,libressl)
2431 ("libevent" ,libevent)
2433 ("opensmtpd" ,opensmtpd)
2434 ("postgresql" ,postgresql)
2435 ("python" ,python-2)
2436 ("sqlite" ,sqlite)))
2439 (list "--sysconfdir=/etc"
2440 "--localstatedir=/var"
2443 "--with-queue-python"
2448 "--with-table-mysql"
2449 "--with-table-postgres"
2450 ;; "--with-table-redis" ; TODO: package hiredis
2451 "--with-table-socketmap"
2452 "--with-table-passwd"
2453 "--with-table-python"
2454 "--with-table-sqlite"
2457 "--with-scheduler-ram"
2458 "--with-scheduler-stub"
2459 "--with-scheduler-python"
2461 "--with-user-smtpd=smtpd"
2463 ;; We have to configure it like this because the default checks for
2464 ;; for example Python in /usr/{,local/}bin and fails otherwise.
2465 (string-append "--with-python="
2466 (assoc-ref %build-inputs "python")))))
2467 (home-page "https://www.opensmtpd.org")
2468 (synopsis "Extra tables, filters, and various other addons for OpenSMTPD")
2470 "This package provides extra tables, filters, and various other addons
2471 for OpenSMTPD to extend its functionality.")
2472 (license (list license:bsd-2 license:bsd-3 ; openbsd-compat
2473 license:isc)))) ; everything else
2475 (define-public mailman
2482 (uri (pypi-uri "mailman" version))
2485 "0idfiv48jjgc0jq4731094ddhraqq8bxnwmjk6sg5ask0jss9kxq"))))
2486 (build-system python-build-system)
2488 `(("gunicorn" ,gunicorn)
2489 ("python-aiosmtpd" ,python-aiosmtpd)
2490 ("python-alembic" ,python-alembic)
2491 ("python-atpublic" ,python-atpublic)
2492 ("python-authheaders" ,python-authheaders)
2493 ("python-authres" ,python-authres)
2494 ("python-click" ,python-click)
2495 ("python-dateutil" ,python-dateutil)
2496 ("python-dnspython" ,python-dnspython)
2497 ("python-falcon" ,python-falcon)
2498 ("python-flufl-bounce" ,python-flufl-bounce)
2499 ("python-flufl-i18n" ,python-flufl-i18n)
2500 ("python-flufl-lock" ,python-flufl-lock)
2501 ("python-importlib-resources" ,python-importlib-resources)
2502 ("python-lazr-config" ,python-lazr-config)
2503 ("python-passlib" ,python-passlib)
2504 ("python-requests" ,python-requests)
2505 ("python-sqlalchemy" ,python-sqlalchemy)
2506 ("python-zope-component" ,python-zope-component)
2507 ("python-zope-configuration" ,python-zope-configuration)
2508 ("python-zope-event" ,python-zope-event)
2509 ("python-zope-interface" ,python-zope-interface)))
2511 `(("python-nose" ,python-nose)))
2512 (home-page "https://www.list.org")
2513 (synopsis "Mailing list manager")
2515 "GNU Mailman is software for managing email discussion and mailing
2516 lists. Both users and administrators generally perform their actions in a
2517 web interface, although email and command-line interfaces are also provided.
2518 The system features built-in archiving, automatic bounce processing, content
2519 filtering, digest delivery, and more.")
2520 (license license:gpl3+)))
2522 (define-public python-mailmanclient
2524 (name "python-mailmanclient")
2529 (uri (pypi-uri "mailmanclient" version))
2532 "0pjgzpvhdb6ql8asb20xr8d01m646zpghmcp9fmscks0n1k4di4g"))))
2533 (build-system python-build-system)
2535 `(#:tests? #f)) ; Requires mailman running
2537 `(("python-requests" ,python-requests)))
2539 ; `(("mailman" ,mailman)
2540 ; ("python-falcon" ,python-falcon)
2541 ; ("python-pytest" ,python-pytest)
2542 ; ("python-pytest-services" ,python-pytest-services)))
2543 (home-page "https://www.list.org/")
2544 (synopsis "Python bindings for the Mailman 3 REST API")
2546 "The mailmanclient library provides official Python bindings for
2547 the GNU Mailman 3 REST API.")
2548 (properties `((python2-variant . ,(delay python2-mailmanclient))))
2549 (license license:lgpl3+)))
2551 ;; This is the last version which supports Python-2.
2552 (define-public python2-mailmanclient
2553 (let ((base (package-with-python2
2554 (strip-python2-variant python-mailmanclient))))
2561 (uri (pypi-uri "mailmanclient" version))
2564 "0fdfs5g3pf30v2i7w18pdkv9xnfxmfcv66mzv56dck0a1igq07m3"))))
2566 `(("python2-six" ,python2-six)
2567 ("python2-httplib2" ,python2-httplib2))))))
2569 (define-public mlmmj
2576 (uri (string-append "http://mlmmj.org/releases/mlmmj-"
2577 version ".tar.bz2"))
2580 "0hpj10qad821ci11si8xc2qnmkzfn90y13s43fm4fca38f0qjp8w"))))
2581 (build-system gnu-build-system)
2583 `(("perl" ,perl))) ; For "contrib/web/"
2585 `(("pkg-config" ,pkg-config)))
2588 ;; mlmmj-receive-strip is a replacement for mlmmj-receive
2589 ;; It opens the files control/mimedeny and control/mimestrip to get a list
2590 ;; of mimetypes for parts of multipart/mime messages that should be denied
2591 ;; or stripped. The parts then get stripped directly when the mail is
2592 ;; received. mlmmj-receive-strip also appends an extra header
2593 ;; X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted
2595 (list "--enable-receive-strip")
2597 (modify-phases %standard-phases
2598 (add-before 'install 'install-contrib
2599 (lambda* (#:key outputs #:allow-other-keys)
2600 (let* ((out (assoc-ref outputs "out"))
2601 (share (string-append out "/share/mlmmj"))
2602 (contrib (string-append share "/contrib/web"))
2603 (texts (string-append share "/listtexts")))
2604 (copy-recursively "contrib/web/" contrib)
2605 (copy-recursively "listtexts" texts)
2606 (rename-file texts (string-append share "/texts"))
2608 (home-page "http://mlmmj.org")
2609 (synopsis "Mailing list managing made joyful")
2611 "Mlmmj is a simple and slim mailing list manager (MLM) inspired by ezmlm.
2612 It works with many different Mail Transport Agents (MTAs) and is simple for a
2613 system administrator to install, configure and integrate with other software.
2614 As it uses very few resources, and requires no daemons, it is ideal for
2615 installation on systems where resources are limited. Its features include:
2617 @item Archive, Custom headers / footer,
2618 @item Fully automated bounce handling (similar to ezmlm),
2619 @item Complete requeueing functionality, Moderation functionality, Subject prefix,
2620 @item Subscribers only posting, Regular expression access control,
2621 @item Functionality to retrieve old posts, Web interface, Digests,
2622 @item No-mail subscription, VERP support,
2623 @item Delivery Status Notification (RFC1891) support,
2624 @item Rich and customisable texts for automated operations.
2626 (license license:expat)))
2628 (define-public python-django-mailman3
2630 (name "python-django-mailman3")
2635 (uri (pypi-uri "django-mailman3" version))
2638 "1yrm7wpjy34xai72vn2vkhc9131cdrbqy08rrabf36kynj5vcdvy"))))
2639 (build-system python-build-system)
2642 (modify-phases %standard-phases
2645 (setenv "DJANGO_SETTINGS_MODULE"
2646 "django_mailman3.tests.settings_test")
2647 (invoke "django-admin" "test"
2648 "--pythonpath=."))))))
2650 `(("python-django" ,python-django)
2651 ("python-django-allauth" ,python-django-allauth)
2652 ("python-django-gravatar2" ,python-django-gravatar2)
2653 ("python-mailmanclient" ,python-mailmanclient)
2654 ("python-pytz" ,python-pytz)))
2656 `(("python-mock" ,python-mock)))
2657 (home-page "https://gitlab.com/mailman/django-mailman3")
2658 (synopsis "Django library to help interaction with Mailman")
2660 "This package contains libraries and templates for Django-based interfaces
2661 interacting with Mailman.")
2662 (properties `((python2-variant . ,(delay python2-django-mailman3))))
2663 (license license:gpl3+)))
2665 ;; This is the last version to support Python-2.
2666 (define-public python2-django-mailman3
2668 (name "python2-django-mailman3")
2673 (uri (pypi-uri "django-mailman3" version))
2676 "1xjdkgfjwhgyrp5nxw65dcpcsr98ygj6856sp0bwkrmyxpd1xxk2"))))
2677 (build-system python-build-system)
2680 (modify-phases %standard-phases
2683 (invoke "django-admin"
2685 "--settings=django_mailman3.tests.settings_test"
2686 "django_mailman3"))))
2687 #:python ,python-2))
2689 `(("python2-django" ,python2-django)))
2691 `(("python2-requests" ,python2-requests)
2692 ("python2-requests-oauthlib" ,python2-requests-oauthlib)
2693 ("python2-openid" ,python2-openid)
2694 ("python2-mailmanclient" ,python2-mailmanclient)
2695 ("python2-django-allauth" ,python2-django-allauth)
2696 ("python2-django-gravatar2" ,python2-django-gravatar2)
2697 ("python2-pytz" ,python2-pytz)))
2698 (home-page "https://gitlab.com/mailman/django-mailman3")
2699 (synopsis "Django library for Mailman UIs")
2701 "Libraries and templates for Django-based interfaces
2702 interacting with Mailman.")
2703 (license license:gpl3+)))
2705 (define-public python-mailman-hyperkitty
2707 (name "python-mailman-hyperkitty")
2712 (uri (pypi-uri "mailman-hyperkitty" version))
2715 "1lfqa9admhvdv71f528jmz2wl0i5cv77v6l64px2pm4zqr9ckkjx"))
2719 ;; see: https://gitlab.com/mailman/mailman-hyperkitty/issues/17
2720 ;; fixes test_archive_message_unserializable
2722 (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")
2725 "0p1fwm46c4bl81lvsg3kjhn2r1lwgkpgxamb3xyqn7h9qdrw10hw")))))))
2726 (build-system python-build-system)
2728 `(("python-requests" ,python-requests)
2729 ("python-zope-interface" ,python-zope-interface)))
2731 `(("mailman" ,mailman)))
2733 `(("python-mock" ,python-mock)
2734 ("python-nose" ,python-nose)
2735 ("python-nose2" ,python-nose2)))
2736 (home-page "https://gitlab.com/mailman/mailman-hyperkitty/")
2737 (synopsis "Mailman archiver plugin for HyperKitty")
2739 "Mailman3 allows emails sent to its mailing lists to be archived by any
2740 software provided that there is a plugin (loadable by Mailman3) designed to
2741 communicate with it properly. This module contains a Mailman3 archiver plugin
2742 which sends emails to HyperKitty, the official Mailman3 web archiver.")
2743 (license license:gpl3+)))
2745 (define-public python-hyperkitty
2747 (name "python-hyperkitty")
2752 (uri (pypi-uri "HyperKitty" version))
2755 "0p85r9q6mn5as5b39xp9hkkipnk0156acx540n2ygk3qb3jd4a5n"))))
2756 (build-system python-build-system)
2759 (modify-phases %standard-phases
2762 ;; It is unclear why this test fails.
2763 (substitute* "hyperkitty/tests/commands/test_import.py"
2764 (("def test_bad_content_type_part_two")
2765 "@SkipTest\n def test_bad_content_type_part_two"))
2766 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
2767 (invoke "example_project/manage.py" "test"
2768 "--settings=hyperkitty.tests.settings_test"))))))
2770 `(("python-dateutil" ,python-dateutil)
2771 ("python-django" ,python-django)
2772 ("python-django-compressor" ,python-django-compressor)
2773 ("python-django-extensions" ,python-django-extensions)
2774 ("python-django-gravatar2" ,python-django-gravatar2)
2775 ("python-django-haystack" ,python-django-haystack)
2776 ("python-django-mailman3" ,python-django-mailman3)
2777 ("python-django-q" ,python-django-q)
2778 ("python-djangorestframework" ,python-djangorestframework)
2779 ("python-flufl-lock" ,python-flufl-lock)
2780 ("python-mailmanclient" ,python-mailmanclient)
2781 ("python-networkx" ,python-networkx)
2782 ("python-pytz" ,python-pytz)
2783 ("python-robot-detection" ,python-robot-detection)))
2785 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2786 ("python-elasticsearch" ,python-elasticsearch)
2787 ("python-isort" ,python-isort)
2788 ("python-mock" ,python-mock)
2789 ("python-whoosh" ,python-whoosh)))
2790 (home-page "https://gitlab.com/mailman/hyperkitty")
2791 (synopsis "Web interface to access GNU Mailman v3 archives")
2793 "The hyperkitty Django app provides a web user interface to access GNU
2794 Mailman3 archives, and manage it. This interface uses django, and requires
2795 some configuration.")
2796 (license license:gpl3))) ; Some files are gpl2+
2798 (define-public postorius
2805 (uri (pypi-uri "postorius" version))
2808 "08jn23gblbkfl09qlykbpsmp39mmach3sl69h1j5cd5kkx839rwa"))))
2809 (build-system python-build-system)
2812 (modify-phases %standard-phases
2814 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
2815 (add-installed-pythonpath inputs outputs)
2817 (invoke "python" "example_project/manage.py" "test"
2818 "--settings=test_settings" "postorius")
2820 #:tests? #f)) ; Tests try to run a mailman instance to test against.
2822 `(("python-django" ,python-django)
2823 ("python-django-mailman3" ,python-django-mailman3)
2824 ("python-mailmanclient" ,python-mailmanclient)
2825 ("python-readme-renderer" ,python-readme-renderer)))
2827 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2828 ("python-isort" ,python-isort)
2829 ("python-mock" ,python-mock)
2830 ("python-vcrpy" ,python-vcrpy)))
2831 (home-page "https://gitlab.com/mailman/postorius")
2832 (synopsis "Web user interface for GNU Mailman")
2834 "Postorius is a Django app which provides a web user interface
2835 to access GNU Mailman.")
2836 (license (list license:gpl3+ license:lgpl3+))))
2838 (define-public blists
2845 (uri (string-append "http://download.openwall.net/pub/projects/"
2846 "blists/blists-" version ".tar.gz"))
2849 "1xll5wn7py3bbncbwrj172f56nz75c9gwfsa80rwd96ss9gfmp3c"))))
2850 (build-system gnu-build-system)
2852 `(#:tests? #f ; No tests
2854 (modify-phases %standard-phases
2857 (lambda* (#:key outputs #:allow-other-keys)
2858 (let* ((out (assoc-ref outputs "out"))
2859 (bin (string-append out "/bin")))
2860 (install-file "bindex" bin)
2861 (install-file "bit" bin)
2863 (home-page "http://www.openwall.com/blists/")
2864 (synopsis "Web interface to mailing list archives")
2866 "Blists is a web interface to mailing list archives that works off
2867 indexed mbox files. There are two programs: @code{bindex} and @code{bit}.
2868 @code{bindex} generates or updates the index file (incremental updates
2869 are supported). @code{bit} is a CGI/SSI program that generates web pages
2870 on the fly. Both programs are written in C and are very fast.")
2871 (license license:expat)))
2873 (define-public swaks
2876 (version "20190914.0")
2881 "https://jetmore.org/john/code/swaks/files/swaks-"
2885 "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp"))))
2886 (build-system perl-build-system)
2888 `(("perl-net-dns" ,perl-net-dns)
2889 ("perl-net-ssleay" ,perl-net-ssleay)))
2891 `(#:tests? #f ; No tests
2893 (modify-phases %standard-phases
2897 (invoke "pod2man" "doc/ref.pod" "swaks.1")))
2899 (lambda* (#:key outputs #:allow-other-keys)
2900 (let ((out (assoc-ref outputs "out")))
2901 (install-file "swaks" (string-append out "/bin"))
2902 (install-file "swaks.1" (string-append out "/share/man/man1")))
2904 (add-after 'install 'wrap-program
2905 (lambda* (#:key outputs #:allow-other-keys)
2906 (wrap-program (string-append (assoc-ref outputs "out")
2908 `("PERL5LIB" ":" = (,(getenv "PERL5LIB"))))
2910 (home-page "https://jetmore.org/john/code/swaks/")
2911 (synopsis "Featureful SMTP test tool")
2912 (description "Swaks is a flexible, scriptable, transaction-oriented SMTP
2913 test tool. It handles SMTP features and extensions such as TLS,
2914 authentication, and pipelining; multiple versions of the SMTP protocol
2915 including SMTP, ESMTP, and LMTP; and multiple transport methods including
2916 unix-domain sockets, internet-domain sockets, and pipes to spawned processes.
2917 Options can be specified in environment variables, configuration files, and
2918 the command line allowing maximum configurability and ease of use for
2919 operators and scripters.")
2920 (license license:gpl2+)))
2922 (define-public alpine
2925 ;; Upstream doesn't use git tags, but does ‘tag’ their releases in the
2926 ;; commit message. Hence the lack of GIT-VERSIONing despite using a commit
2927 ;; ID below. Don't forget to update it…
2932 ;; There are two versions: the plain continuation of Alpine without extra
2933 ;; patches and the version which adds extra fixes. Every distro uses
2934 ;; the patched version, and so do we to not break expectations.
2935 ;; http://alpine.freeiz.com/alpine/readme/README.patches
2937 (url "http://repo.or.cz/alpine.git")
2938 (commit "b50297779a4becb9ceca9c6b5b375d526fe3df78")))
2939 (file-name (git-file-name name version))
2941 (base32 "06js44fvdl7l33hfd4lsxpcd1cz3c0h796cswyzz0lkrzx89yl48"))
2942 (modules '((guix build utils)))
2945 ;; Remove pre-built binaries scattered across the source repository.
2946 (for-each delete-file (find-files "." "\\.(dll|exe)"))
2948 (build-system gnu-build-system)
2951 (list (string-append "CC=" ,(cc-for-target)))
2952 #:configure-flags (list (string-append "--with-ssl-include-dir="
2953 (assoc-ref %build-inputs "openssl")
2955 (string-append "--with-ssl-dir="
2956 (assoc-ref %build-inputs "openssl"))
2957 (string-append "--with-ssl-certs-dir="
2959 (string-append "--with-ssl-lib-dir="
2960 (assoc-ref %build-inputs "openssl")
2962 (string-append "--with-interactive-spellcheck="
2963 (assoc-ref %build-inputs "aspell")
2965 "--with-date-stamp=Thu 1 Jan 01:00:01 CET 1970")
2967 (modify-phases %standard-phases
2968 (add-after 'unpack 'assume-shadow-passwords
2969 ;; Alpine's configure script confuses ‘shadow password support’ with
2970 ;; ‘/etc/shadow exists in the build environment’. It does not.
2972 (substitute* "configure"
2973 (("test -f /etc/shadow") "true"))
2975 (add-after 'unpack 'make-reproducible
2977 ;; This removes time-dependent code to make alpine reproducible.
2978 (substitute* "pico/blddate.c"
2979 (("%02d-%s-%d") "1970-01-01"))
2982 `(("ncurses" ,ncurses)
2983 ("openssl" ,openssl)
2985 ("openldap" ,openldap)
2986 ("cyrus-sasl" ,cyrus-sasl)
2987 ("mit-krb5" ,mit-krb5)
2990 ("linux-pam" ,linux-pam)))
2991 (home-page "https://repo.or.cz/alpine.git")
2992 (synopsis "Alternatively Licensed Program for Internet News and Email")
2994 "Alpine is a text-based mail and news client. Alpine includes several
2995 tools and applications:
2997 @item alpine, the Alpine mailer
2998 @item pico, the standalone text editor, GNU nano's predecessor
2999 @item pilot, the standalone file system navigator
3001 (license license:asl2.0)))
3003 (define-public balsa
3010 (uri (string-append "https://pawsa.fedorapeople.org/balsa/"
3011 "balsa-" version ".tar.bz2"))
3013 (base32 "1xkxx801p7sbfkn0bh3cz85wra4xf1z1zhjqqc80z1z1nln7fhb4"))))
3014 (build-system gnu-build-system)
3017 '(;; Balsa tries to install additional MIME icons
3018 ;; under gtk+ directory.
3019 "--enable-extra-mimeicons=no"
3020 "--with-gtksourceview"
3022 "--with-spell-checker=gtkspell"
3028 `(("cyrus-sasl" ,cyrus-sasl)
3029 ("enchant" ,enchant)
3030 ("gdk-pixbuf" ,gdk-pixbuf)
3035 ("gtksourceview" ,gtksourceview-3)
3036 ("gtkspell3" ,gtkspell3)
3037 ("libcanberra" ,libcanberra)
3038 ("libesmtp" ,libesmtp)
3039 ("libical" ,libical)
3040 ("libnotify" ,libnotify)
3041 ("libsecret" ,libsecret)
3042 ("openldap" ,openldap)
3044 ("webkitgtk" ,webkitgtk)))
3046 `(("compface" ,compface)
3047 ("glib" ,glib "bin")
3048 ("intltool" ,intltool)
3049 ("pkg-config" ,pkg-config)
3050 ("yelp-tools" ,yelp-tools)))
3051 (home-page "https://pawsa.fedorapeople.org/balsa")
3052 (synopsis "E-mail client for GNOME")
3053 (description "Balsa is a highly configurable and robust mail client for
3054 the GNOME desktop. It supports both POP3 and IMAP servers as well as the
3055 mbox, maildir and mh local mailbox formats. Balsa also supports SMTP and/or
3056 the use of a local MTA such as Sendmail.")
3057 (license license:gpl3+)))
3066 (uri (pypi-uri "afew" version))
3069 "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r"))))
3070 (build-system python-build-system)
3072 `(("python-chardet" ,python-chardet)
3073 ("python-notmuch" ,python-notmuch)))
3075 `(("python-setuptools-scm" ,python-setuptools-scm)))
3076 (home-page "https://github.com/afewmail/afew")
3077 (synopsis "Initial tagging script for notmuch mail")
3078 (description "afew is an initial tagging script for notmuch mail. It
3079 provides automatic tagging each time new mail is registered with notmuch. It
3080 can add tags based on email headers or Maildir folders and can handle spam and
3082 (license license:isc)))
3091 (uri (string-append "http://pan.rebelbase.com/download/releases/"
3092 version "/source/" name "-" version ".tar.bz2"))
3094 (base32 "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55"))))
3096 `(#:configure-flags '("--with-gtk3" "--with-gtkspell" "--with-gnutls"
3097 "--enable-libnotify" "--enable-manual"
3100 (modify-phases %standard-phases
3101 (add-before 'configure 'patch-gpg2
3102 (lambda* (#:key inputs #:allow-other-keys)
3103 (substitute* "pan/usenet-utils/gpg.cc"
3104 (("\"gpg2\"") (string-append "\""
3105 (assoc-ref inputs "gnupg")
3109 `(("gmime" ,gmime-2.6)
3113 ("gtkspell3" ,gtkspell3)
3114 ("libnotify" ,libnotify)
3115 ("libsecret" ,libsecret)
3116 ("libxml2" ,libxml2)
3119 `(("gettext-minimal" ,gettext-minimal)
3120 ("itstool" ,itstool)
3121 ("pkg-config" ,pkg-config)))
3122 (build-system gnu-build-system)
3123 (home-page "http://pan.rebelbase.com/")
3124 (synopsis "Pan newsreader")
3125 (description "@code{pan} is a Usenet newsreader that's good at both text
3126 and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB,
3127 PGP handling, multiple servers, and secure connections.")
3128 ;; License of the docs: fdl-1.1; Others: gpl2.
3129 (license (list license:fdl1.1+ license:gpl2))))
3131 (define-public imapfilter
3139 (url "https://github.com/lefcha/imapfilter")
3140 (commit (string-append "v" version))))
3141 (file-name (git-file-name name version))
3143 (base32 "0f65sg6hhv6778fxwsz4hvarbm97dsb8jj0mg7a9qs273r35pqck"))))
3144 (build-system gnu-build-system)
3148 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3151 (modify-phases %standard-phases
3152 (delete 'configure)))) ; no configure script
3156 ("openssl" ,openssl)))
3157 (home-page "https://github.com/lefcha/imapfilter")
3158 (synopsis "IMAP mail filtering utility")
3159 (description "IMAPFilter is a mail filtering utility. It connects
3160 to remote mail servers using IMAP, sends searching queries to the server and
3161 processes mailboxes based on the results. It can be used to delete, copy,
3162 move, flag, etc. messages residing in mailboxes at the same or different mail
3163 servers. The 4rev1 and 4 versions of IMAP are supported.")
3164 (license license:expat)))
3166 (define-public urlscan
3173 (uri (pypi-uri "urlscan" version))
3175 (base32 "07vcwirap0p4dkqrqblfn1q017slgd8m6qyijvbi3gxnr09pbyx2"))))
3176 (build-system python-build-system)
3178 `(("python-urwid" ,python-urwid)))
3179 (home-page "https://github.com/firecat53/urlscan")
3180 (synopsis "View/select the URLs in an email message or file")
3182 "Urlscan is a small program that is designed to integrate with the
3183 Mutt mail reader to allow you to easily launch a Web browser for URLs
3184 contained in email messages. It parses an email message or file and scans it
3185 for URLs and email addresses. It then displays the URLs and their context
3186 within the message, and allows you to choose one or more URLs to send to your
3187 Web browser. Alternatively, it send a list of all URLs to standard output.
3188 It is a replacement for the @command{urlview} program.")
3189 (license license:gpl2)))
3199 (url "https://github.com/verdammelt/tnef")
3202 (base32 "104g48mcm00bgiyzas2vf86331w7bnw7h3bc11ib4lp7rz6zqfck"))
3203 (file-name (git-file-name name version))))
3204 (build-system gnu-build-system)
3206 `(("autoconf" ,autoconf)
3207 ("automake" ,automake)))
3208 (arguments `(#:parallel-tests? #f)) ;tests are side-effect'y
3209 (home-page "https://github.com/verdammelt/tnef")
3210 (synopsis "Unpack @code{application/ms-tnef} attachments")
3212 "TNEF is a tar-like program that unpacks MIME attachments of type
3213 @code{application/ms-tnef}.")
3214 (license license:gpl2+)))
3217 (let ((commit "5a578328199bab51a147fbadbce12c8d06959ed6")
3221 (version (git-version "0.0.1" revision commit))
3225 (url "https://git.elephly.net/software/mumi.git")
3227 (file-name (git-file-name name version))
3230 "0hngv82gd19l4q7nnbf97r120z1yagsmkp0x3lc8haza5q4mc12c"))))
3231 (build-system gnu-build-system)
3233 `(#:modules ((guix build gnu-build-system)
3234 ((guix build guile-build-system)
3235 #:select (target-guile-effective-version))
3237 #:imported-modules ((guix build guile-build-system)
3238 ,@%gnu-build-system-modules)
3240 #:configure-flags '("--localstatedir=/var")
3243 (modify-phases %standard-phases
3244 (add-after 'install 'wrap-executable
3245 (lambda* (#:key outputs #:allow-other-keys)
3246 (let* ((out (assoc-ref outputs "out"))
3247 (bin (string-append out "/bin"))
3248 (version (target-guile-effective-version))
3249 (scm (string-append out "/share/guile/site/" version))
3250 (go (string-append out "/lib/guile/" version
3252 (wrap-program (string-append bin "/mumi")
3253 `("GUILE_LOAD_PATH" ":" prefix
3254 (,scm ,(getenv "GUILE_LOAD_PATH")))
3255 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3256 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
3259 `(("guile-email" ,guile-email)
3260 ("guile-fibers" ,guile-fibers)
3261 ("guile-gcrypt" ,guile-gcrypt)
3262 ("guile-json" ,guile-json-3)
3263 ("guile-redis" ,guile-redis)
3264 ("guile-syntax-highlight" ,guile-syntax-highlight)
3265 ("guile-webutils" ,guile-webutils)
3266 ("guile-xapian" ,guile-xapian)
3267 ("guile" ,guile-3.0)
3268 ("mailutils" ,mailutils)))
3270 `(("autoconf" ,autoconf)
3271 ("automake" ,automake)
3272 ("pkg-config" ,pkg-config)))
3273 (home-page "https://git.elephly.net/software/mumi.git")
3274 (synopsis "Debbugs web interface")
3275 (description "Mumi is a Debbugs web interface.")
3276 (license license:agpl3+))))
3278 (define-public ytnef
3285 (url "https://github.com/Yeraze/ytnef")
3286 (commit (string-append "v" version))))
3287 (file-name (git-file-name name version))
3290 "07h48s5qf08503pp9kafqbwipdqghiif22ghki7z8j67gyp04l6l"))))
3291 (build-system gnu-build-system)
3293 `(("autoconf" ,autoconf)
3294 ("automake" ,automake)
3295 ("libtool" ,libtool)))
3296 (home-page "https://github.com/Yeraze/ytnef/")
3297 (synopsis "TNEF stream reader for winmail.dat files")
3298 (description "This package provides a TNEF stream reader library and
3299 related tools to process winmail.dat files.")
3300 (license license:gpl2+)))
3302 (define-public public-inbox
3304 (name "public-inbox")
3307 (origin (method git-fetch)
3309 (url "https://public-inbox.org")
3310 (commit (string-append "v" version))))
3313 "03zj7shdl3vibs7k5lr673bwcf8j1xx8is3mjz34ca4cdh6p5j2k"))
3314 (file-name (git-file-name name version))))
3315 (build-system perl-build-system)
3318 (modify-phases %standard-phases
3319 (add-before 'configure 'qualify-paths
3321 ;; Use absolute paths for 'xapian-compact'.
3322 (let ((xapian-compact (which "xapian-compact")))
3323 (substitute* "script/public-inbox-compact"
3324 (("xapian-compact") xapian-compact)))
3326 (add-before 'check 'pre-check
3328 (substitute* "t/spawn.t"
3329 (("\\['env'\\]") (string-append "['" (which "env") "']")))
3330 (substitute* "t/ds-leak.t"
3331 (("/bin/sh") (which "sh")))
3332 (invoke "./certs/create-certs.perl")
3333 ;; XXX: This test fails due to zombie process is not reaped by
3335 (substitute* "t/httpd-unix.t"
3336 (("^SKIP: \\{") "SKIP: { skip('Guix');"))
3338 (add-after 'install 'wrap-programs
3339 (lambda* (#:key inputs outputs #:allow-other-keys)
3340 (let ((out (assoc-ref outputs "out")))
3344 ;; Let those scripts find their perl modules.
3345 `("PERL5LIB" ":" prefix
3346 (,(string-append out "/lib/perl5/site_perl")
3347 ,(getenv "PERL5LIB")))
3348 ;; 'git' is invoked in various files of the PublicInbox
3351 (,(string-append (assoc-ref inputs "git") "/bin")))))
3352 (find-files (string-append out "/bin"))))
3355 `(("xapian" ,xapian)
3358 ("openssl" ,openssl)))
3361 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
3362 ("perl-dbi" ,perl-dbi)
3363 ("perl-email-address-xs" ,perl-email-address-xs)
3364 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
3365 ("perl-email-mime" ,perl-email-mime)
3366 ("perl-email-simple" ,perl-email-simple)
3367 ("perl-net-server" ,perl-net-server)
3368 ("perl-filesys-notify-simple" ,perl-filesys-notify-simple)
3369 ("perl-plack-middleware-deflater" ,perl-plack-middleware-deflater)
3370 ("perl-plack-middleware-reverseproxy" ,perl-plack-middleware-reverseproxy)
3371 ("perl-plack" ,perl-plack)
3372 ("perl-search-xapian" ,perl-search-xapian)
3373 ("perl-timedate" ,perl-timedate)
3374 ("perl-uri-escape" ,perl-uri-escape)
3376 ("perl-ipc-run" ,perl-ipc-run)
3377 ("perl-xml-feed" ,perl-xml-feed)))
3378 (home-page "https://public-inbox.org/README.html")
3379 (synopsis "Archive mailing lists in git repositories")
3381 "public-inbox implements the sharing of an email inbox via git to
3382 complement or replace traditional mailing lists. Readers may read via NNTP,
3383 Atom feeds or HTML archives.")
3384 (license license:agpl3+)))
3386 (define-public sylpheed
3392 (uri (string-append "https://sylpheed.sraoss.jp/sylpheed/v3.7/"
3393 name "-" version ".tar.xz"))
3396 "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd"))))
3397 (build-system gnu-build-system)
3399 `(("pkg-config" ,pkg-config)))
3401 `(("bogofilter" ,bogofilter)
3402 ("compface" ,compface)
3405 ("gtk+-2.0" ,gtk+-2)
3406 ("gtkspell" ,gtkspell3)
3408 ("openldap" ,openldap)
3409 ("openssl" ,openssl)))
3410 (home-page "https://sylpheed.sraoss.jp/en/")
3411 (synopsis "Lightweight GTK+ email client")
3413 "Sylpheed is a simple, lightweight but featureful, and easy-to-use e-mail
3414 client. Sylpheed provides intuitive user-interface. Sylpheed is also
3415 designed for keyboard-oriented operation.")
3416 (license license:gpl2+)))
3418 (define-public python-authres
3420 (name "python-authres")
3425 (uri (pypi-uri "authres" version))
3428 "1dr5zpqnb54h4f5ax8334l1dcp8j9083d7v4vdi1xqkwmnavklck"))))
3429 (build-system python-build-system)
3432 (modify-phases %standard-phases
3434 ;; Run doctests as described in the README.
3436 (invoke "python" "-m" "authres" "-v"))))))
3437 (home-page "https://launchpad.net/authentication-results-python")
3438 (synopsis "Email Authentication Results Header Module")
3440 "This module can be used to generate and parse RFC 5451/7001/7601
3441 Authentication-Results headers. It also supports Authentication Results
3444 @item RFC 5617 DKIM/ADSP
3445 @item RFC 6008 DKIM signature identification (header.b)
3446 @item RFC 6212 Vouch By Reference (VBR)
3447 @item RFC 6577 Sender Policy Framework (SPF)
3448 @item RFC 7281 Authentication-Results Registration for S/MIME
3449 @item RFC 7293 The Require-Recipient-Valid-Since Header Field
3450 @item RFC 7489 Domain-based Message Authentication, Reporting, and Conformance (DMARC)
3451 @item Authenticated Recieved Chain (ARC) (draft-ietf-dmarc-arc-protocol-08)
3453 Note: RFC 7601 obsoletes RFC 5451, 6577, 7001, and 7410. Authres supports the
3454 current standard. No backward compatibility issues have been noted.")
3455 (license license:asl2.0)))
3457 (define-public python-dkimpy
3459 (name "python-dkimpy")
3464 (uri (pypi-uri "dkimpy" version))
3466 (base32 "088iz5cqjqh4c7141d94pvn13bh25aizqlrifwv6fs5g16zj094s"))))
3467 (build-system python-build-system)
3470 (modify-phases %standard-phases
3471 (add-after 'patch-source-shebangs 'patch-more-source
3472 (lambda* (#:key inputs #:allow-other-keys)
3473 (let ((openssl (assoc-ref inputs "openssl")))
3474 (substitute* "dkim/dknewkey.py"
3475 (("/usr/bin/openssl") (string-append openssl "/bin/openssl"))))
3479 (invoke "python" "test.py"))))))
3481 `(("python-dnspython" ,python-dnspython)))
3483 `(("python-authres" ,python-authres)
3484 ("python-pynacl" ,python-pynacl)))
3486 `(("openssl" ,openssl)))
3487 (home-page "https://launchpad.net/dkimpy")
3488 (synopsis "DKIM (DomainKeys Identified Mail)")
3489 (description "Python module that implements @dfn{DKIM} (DomainKeys
3490 Identified Mail) email signing and verification (RFC6376). It also provides
3491 helper scripts for command line signing and verification. It supports DKIM
3492 signing/verifying of ed25519-sha256 signatures (RFC 8463). It also supports
3493 the RFC 8617 Authenticated Received Chain (ARC) protocol.")
3494 (license license:bsd-3)))
3496 (define-public python-authheaders
3498 (name "python-authheaders")
3503 (uri (pypi-uri "authheaders" version))
3506 "14k6i72k5f8dyvps8vc0aq0cczc8lvqpgjfjzsy6qqychjvjcmwk"))))
3507 (build-system python-build-system)
3509 `(("python-authres" ,python-authres)
3510 ("python-dkimpy" ,python-dkimpy)
3511 ("python-dnspython" ,python-dnspython)
3512 ("python-publicsuffix2" ,python-publicsuffix2)))
3513 (home-page "https://github.com/ValiMail/authentication-headers")
3514 (synopsis "Library wrapping email authentication header verification and generation")
3516 "This is a Python library for the generation of email authentication
3517 headers. The library can perform DKIM, SPF, and DMARC validation, and the
3518 results are packaged into the Authentication-Results header. The library can
3519 DKIM and ARC sign messages and output the corresponding signature headers.")
3520 ;; The package's metadata claims it were MIT licensed, but the source file
3521 ;; headers disagree. MPL-2 for the public suffix list.
3522 (license (list license:zpl2.1 license:zlib license:mpl2.0))))
3524 (define-public python-aiosmtpd
3526 (name "python-aiosmtpd")
3532 (url "https://github.com/aio-libs/aiosmtpd")
3535 (base32 "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7"))
3536 (file-name (git-file-name name version))))
3537 (build-system python-build-system)
3540 (modify-phases %standard-phases
3541 (add-after 'unpack 'delete-failing-tests
3543 ;; This test uses an expired certificate.
3544 (delete-file "aiosmtpd/tests/test_smtps.py")
3548 (invoke "python" "-m" "nose2" "-v"))))))
3550 `(("python-flufl-testing" ,python-flufl-testing)
3551 ("python-nose2" ,python-nose2)))
3553 `(("python-atpublic" ,python-atpublic)))
3554 (home-page "https://aiosmtpd.readthedocs.io/")
3555 (synopsis "Asyncio based SMTP server")
3557 "This project is a reimplementation of the Python stdlib @code{smtpd.py}
3559 (license (list license:asl2.0
3560 license:lgpl3)))) ; only for setup_helpers.py