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, 2020 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 icu4c)
91 #:use-module (gnu packages kerberos)
92 #:use-module (gnu packages language)
93 #:use-module (gnu packages libcanberra)
94 #:use-module (gnu packages libevent)
95 #:use-module (gnu packages libidn)
96 #:use-module (gnu packages libunistring)
97 #:use-module (gnu packages libunwind)
98 #:use-module (gnu packages linux)
99 #:use-module (gnu packages lsof)
100 #:use-module (gnu packages lua)
101 #:use-module (gnu packages m4)
102 #:use-module (gnu packages man)
103 #:use-module (gnu packages ncurses)
104 #:use-module (gnu packages networking)
105 #:use-module (gnu packages openldap)
106 #:use-module (gnu packages onc-rpc)
107 #:use-module (gnu packages pcre)
108 #:use-module (gnu packages perl)
109 #:use-module (gnu packages perl-check)
110 #:use-module (gnu packages perl-web)
111 #:use-module (gnu packages pkg-config)
112 #:use-module (gnu packages python)
113 #:use-module (gnu packages python-check)
114 #:use-module (gnu packages python-crypto)
115 #:use-module (gnu packages python-web)
116 #:use-module (gnu packages python-xyz)
117 #:use-module (gnu packages rdf)
118 #:use-module (gnu packages readline)
119 #:use-module (gnu packages ruby)
120 #:use-module (gnu packages search)
121 #:use-module (gnu packages serialization)
122 #:use-module (gnu packages samba)
123 #:use-module (gnu packages screen)
124 #:use-module (gnu packages sphinx)
125 #:use-module (gnu packages sqlite)
126 #:use-module (gnu packages tcl)
127 #:use-module (gnu packages texinfo)
128 #:use-module (gnu packages time)
129 #:use-module (gnu packages tls)
130 #:use-module (gnu packages version-control)
131 #:use-module (gnu packages w3m)
132 #:use-module (gnu packages web)
133 #:use-module (gnu packages webkit)
134 #:use-module (gnu packages xdisorg)
135 #:use-module (gnu packages xorg)
136 #:use-module (gnu packages xml)
137 #:use-module ((guix licenses) #:prefix license:)
138 #:use-module (guix packages)
139 #:use-module (guix download)
140 #:use-module (guix git-download)
141 #:use-module (guix utils)
142 #:use-module (guix build-system gnu)
143 #:use-module (guix build-system guile)
144 #:use-module (guix build-system perl)
145 #:use-module (guix build-system python)
146 #:use-module (guix build-system trivial)
147 #:use-module (srfi srfi-1)
148 #:use-module (ice-9 match))
150 (define-public anubis
153 ;; This 4.2.90 alpha release adds support for Guile 3 and has fixes for
159 (uri (string-append "https://alpha.gnu.org/gnu/anubis/anubis-"
163 "0dvm6acl32dv8bixx9z50gzwfp6kj4kxnn1j3dcwjlp7sasjp41s"))))
164 (build-system gnu-build-system)
166 `(("automake" ,automake)
167 ("autoconf" ,autoconf)
168 ("gettext" ,gettext-minimal)
169 ("m4" ,m4))) ;for the test suite
176 ("libgcrypt" ,libgcrypt) ;gnutls support depends on libgcrypt
177 ("libgpg-error" ,libgpg-error)))
178 (outputs '("out" "debug"))
179 (synopsis "SMTP message submission daemon")
180 (description "Anubis is a daemon that sits between the Mail User
181 Agent (MUA) and the Mail Transfer Agent (MTA). When a mail is sent by a user
182 in the MUA, it is first passed to Anubis, which performs additional processing
183 to the message before passing it on for delivery by the MTA. Anubis may, for
184 example, modify the message headers or body, or encrypt or sign the message.")
185 (home-page "https://www.gnu.org/software/anubis/manual/")
186 (license license:gpl3+)))
188 (define-public mailutils
194 (uri (string-append "mirror://gnu/mailutils/mailutils-"
198 "17smrxjdgbbzbzakik30vj46q4iib85ksqhb82jr4vjp57akszh9"))))
199 (build-system gnu-build-system)
202 (modify-phases %standard-phases
203 (add-before 'check 'prepare-test-suite
205 ;; Use the right file name for `cat'.
206 (substitute* "testsuite/lib/mailutils.exp"
210 ;; Tests try to invoke 'mda' such that it looks up the
211 ;; 'root' user, which does not exist in the build
213 (substitute* '("mda/mda/tests/testsuite"
214 "mda/lmtpd/tests/testsuite")
215 (("root <") "nobody <")
216 (("spool/root") "spool/nobody")
217 (("root@localhost") "nobody@localhost"))
219 ;; The 'pipeact.at' tests generate a shell script; make
220 ;; sure it uses the right shell.
221 (substitute* '("sieve/tests/testsuite"
222 "mh/tests/testsuite")
224 (string-append "#!" (which "sh"))))
226 (substitute* "mh/tests/testsuite"
227 (("moreproc: /bin/cat")
228 (string-append "moreproc: " (which "cat"))))
230 ;; XXX: The comsatd tests rely on being able to open
231 ;; /dev/tty, but that gives ENODEV in the build
232 ;; environment. Thus, ignore test failures here.
233 (substitute* "comsat/tests/Makefile.in"
234 (("\\$\\(SHELL\\) \\$\\(TESTSUITE\\)" all)
235 (string-append "-" all)))
237 ;; XXX: The ‘moderator: program discard’ test does not specify
238 ;; an explicit From: but does expect an exact match. But why are
239 ;; all other tests unaffected?
240 (substitute* "sieve/tests/testsuite"
244 ;; 'frm' tests expect write access to $HOME.
245 (setenv "HOME" (getcwd))
247 ;; Avoid the message "I'm going to create the standard MH path
248 ;; for you", which would lead to one test failure (when diffing
249 ;; stdout of 'fmtcheck'.)
250 (call-with-output-file ".mh_profile"
252 (format port "Path: ~a/Mail-for-tests~%"
256 ;; TODO: Add `--with-sql'.
258 (list "--sysconfdir=/etc"
260 ;; Add "/X.Y" to the installation directory.
261 (string-append "--with-guile-site-dir="
262 (assoc-ref %outputs "out")
264 ,(match (assoc "guile"
265 (package-inputs this-package))
268 (package-version guile))))))
270 #:parallel-tests? #f))
272 `(("perl" ,perl) ;for 'gylwrap'
274 ("dejagnu" ,dejagnu)))
281 ("readline" ,readline)
282 ("linux-pam" ,linux-pam)
286 ;; Required for SEARCH CHARSET.
287 ("libiconv" ,libiconv)
288 ("libunistring" ,libunistring)))
289 (home-page "https://mailutils.org")
290 (synopsis "Utilities and library for reading and serving mail")
292 "GNU Mailutils is a collection of programs for managing, viewing and
293 processing electronic mail. It contains both utilities and server daemons
294 and all operate in a protocol-agnostic way. The underlying libraries are
295 also available, simplifying the addition of mail capabilities to new
298 ;; Libraries are under LGPLv3+, and programs under GPLv3+.
299 (list license:gpl3+ license:lgpl3+))))
301 (define-public guile2.2-mailutils
304 (name "guile2.2-mailutils")
306 `(("guile" ,guile-2.2)
307 ,@(alist-delete "guile" (package-inputs mailutils))))))
309 (define-public guile3.0-mailutils
310 (deprecated-package "guile3.0-mailutils" mailutils))
312 (define-public nullmailer
320 (string-append "https://untroubled.org/nullmailer/"
321 "nullmailer-" version ".tar.gz")
322 ;; Previous releases are moved to this subdirectory.
323 (string-append "https://untroubled.org/nullmailer/archive/"
324 "nullmailer-" version ".tar.gz")))
326 (base32 "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq"))))
327 (build-system gnu-build-system)
331 "--localstatedir=/var"
334 (modify-phases %standard-phases
335 (add-before 'check 'patch-test-FHS-file-names
337 (with-directory-excursion "test"
338 (substitute* (list "functions.in"
340 ;; Fix some shebangs later generated on the fly.
341 (("/bin/sh") (which "bash"))))
343 (add-before 'check 'pass-PATH-to-tests
344 ;; ‘runtest’ launches each test through ‘env -’, clearing $PATH. The
345 ;; tests then source ‘functions’, which first demands a working $PATH
346 ;; only to clobber it later. Pass our $PATH to the test environment
347 ;; and don't touch it after that.
349 (with-directory-excursion "test"
350 (substitute* "runtests"
352 (string-append "env - PATH=\"" (getenv "PATH") "\" bash")))
353 (substitute* "functions.in"
354 (("export PATH=.*") "")))
356 (add-before 'check 'delete-failing-tests
358 (with-directory-excursion "test/tests"
359 (for-each delete-file
361 ;; XXX ‘nullmailer-inject: nullmailer-queue failed: 15’
363 ;; XXX These require the not-yet-packaged tcpserver.
364 "protocols" "smtp-auth")))
366 (add-before 'install 'skip-install-data-local
367 ;; Don't attempt to install run-time files outside of the store.
369 (substitute* "Makefile"
370 ((" install-data-local") ""))
374 `(("daemontools" ,daemontools))) ; for svc
376 `(("gnutls" ,gnutls)))
377 (home-page "https://untroubled.org/nullmailer/")
378 (synopsis "Simple relay-only mail transfer agent")
380 "Nullmailer is a simple replacement @acronym{MTA, Mail Transfer Agent} for
381 hosts that receive no local mail and only relay mail to a fixed set of smart
382 relays. It's useful for systems such as Web servers that must be able to send
383 email notifications, without having to run a full-blown MTA such as sendmail
386 Nullmailer is designed to be simple to configure, easy to extend, and secure.
387 It requires little ongoing administration. The included @command{sendmail}
388 emulator front-end should allow most (if not all) sendmail-compatible programs
389 to run without any changes.")
390 (license (list license:lgpl2.1+ ; lib/cli++/ (but some files lack headers)
391 license:gpl2+)))) ; everything else
393 (define-public fetchmail
400 (uri (string-append "mirror://sourceforge/fetchmail/branch_"
401 (version-major+minor version) "/"
402 "fetchmail-" version ".tar.xz"))
404 (base32 "177276dha2pchsvlki0skf460kmjnixqmzc6nj33fz4hd7c1sj1y"))))
405 (build-system gnu-build-system)
407 `(("openssl" ,openssl)))
410 (list (string-append "--with-ssl="
411 (assoc-ref %build-inputs "openssl")))))
412 (home-page "https://www.fetchmail.info/")
413 (synopsis "Remote-mail retrieval and forwarding utility")
415 "Fetchmail is a full-featured, robust, well-documented remote-mail
416 retrieval and forwarding utility intended to be used over on-demand
417 TCP/IP links (such as SLIP or PPP connections). It supports every
418 remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP,
419 KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6
422 Fetchmail retrieves mail from remote mail servers and forwards it via SMTP,
423 so it can then be read by normal mail user agents such as mutt, elm
424 or BSD Mail. It allows all your system MTA's filtering, forwarding, and
425 aliasing facilities to work just as they would on normal mail.")
426 (license license:gpl2+))) ; most files are actually public domain or x11
435 (string-append "https://bitbucket.org/mutt/mutt/downloads/"
436 "mutt-" version ".tar.gz")
437 (string-append "http://ftp.mutt.org/pub/mutt/mutt-"
441 "0r58xnjgkw0kmnnzhb32mk5gkkani5kbi5krybpbag156fqhgxg4"))
442 (patches (search-patches "mutt-store-references.patch"))))
443 (build-system gnu-build-system)
445 `(("cyrus-sasl" ,cyrus-sasl)
454 `(#:configure-flags '("--enable-smtp"
458 "--enable-hcache" ; for header caching
463 "--with-sqlite3" ; required for Autocrypt
464 "--with-idn2" ; recommended for Autocrypt
465 ;; So that mutt does not check whether the path
466 ;; exists, which it does not in the chroot.
467 "--with-mailpath=/var/mail")))
468 (home-page "http://www.mutt.org/")
469 (synopsis "Mail client")
471 "Mutt is a small but very powerful text-based mail client for Unix
473 (license license:gpl2+)))
475 (define-public neomutt
483 (url "https://github.com/neomutt/neomutt")
485 (file-name (git-file-name name version))
487 (base32 "1k4k07l6h5krc3fx928qvdq3ssw9fxn95aj7k885xlckd2i1lnb5"))))
488 (build-system gnu-build-system)
490 `(("cyrus-sasl" ,cyrus-sasl)
495 ("openssl" ,openssl) ; for S/MIME
497 ("kyotocabinet" ,kyotocabinet)
502 ("notmuch" ,notmuch)))
504 `(("automake" ,automake)
505 ("gettext-minimal" ,gettext-minimal)
506 ("pkg-config" ,pkg-config)
507 ("docbook-xsl" ,docbook-xsl)
508 ("docbook-xml" ,docbook-xml-4.2)
512 `(#:test-target "test"
516 ;; Database, implies header caching.
517 "--disable-tokyocabinet"
528 (string-append "--with-sasl="
529 (assoc-ref %build-inputs "cyrus-sasl"))
537 ;; If we do not set this, neomutt wants to check
538 ;; whether the path exists, which it does not
540 "--with-mailpath=/var/mail"
543 (string-append "--with-ncurses="
544 (assoc-ref %build-inputs "ncurses"))
545 (string-append "--prefix="
546 (assoc-ref %outputs "out"))
549 (modify-phases %standard-phases
550 ;; TODO: autosetup is meant to be included in the source,
551 ;; but we should package autosetup and use our own version of it.
553 (lambda* (#:key outputs inputs configure-flags #:allow-other-keys)
554 (let* ((out (assoc-ref outputs "out"))
555 (flags `(,@configure-flags))
556 (bash (which "bash")))
557 (setenv "SHELL" bash)
558 (setenv "CONFIG_SHELL" bash)
560 (string-append (getcwd) "/configure")
562 (home-page "https://neomutt.org/")
563 (synopsis "Command-line mail reader based on Mutt")
565 "NeoMutt is a command-line mail reader which is based on mutt.
566 It adds a large amount of new and improved features to mutt.")
567 (license license:gpl2+)))
575 (uri (string-append "mirror://gnome/sources/gmime/"
576 (version-major+minor version)
577 "/gmime-" version ".tar.xz"))
580 "0i3xfc84qn1z99i70q68kbnp9rmgqrnprqb418ba52s6g9j9dsia"))))
581 (build-system gnu-build-system)
583 `(("pkg-config" ,pkg-config)
584 ("gnupg" ,gnupg))) ; for tests only
585 (inputs `(("glib" ,glib)
590 (modify-phases %standard-phases
592 'unpack 'patch-paths-in-tests
594 ;; The test programs run several programs using 'system' with
595 ;; hard-coded paths. Here we patch them all.
596 ;; We use ISO-8859-1 here because test-iconv.c contains
597 ;; raw byte sequences in several different encodings.
598 (with-fluids ((%default-port-encoding #f))
599 (substitute* (find-files "tests" "\\.c$")
600 (("(system *\\(\")(/[^ ]*)" all pre prog-path)
601 (let* ((base (basename prog-path))
604 (or prog (error "not found: " base)))))))
606 (home-page "http://spruce.sourceforge.net/gmime/")
607 (synopsis "MIME message parser and creator library")
609 "GMime provides a core library and set of utilities which may be used for
610 the creation and parsing of messages using the Multipurpose Internet Mail
612 (license (list license:lgpl2.1+ license:gpl2+ license:gpl3+))))
614 ;; Some packages are not ready for GMime 3 yet.
615 (define-public gmime-2.6
621 (uri (string-append "mirror://gnome/sources/gmime/"
622 (version-major+minor version)
623 "/gmime-" version ".tar.xz"))
626 "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
628 (define-public bogofilter
635 (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-stable/"
636 "bogofilter-" version ".tar.xz"))
638 (base32 "1sl9xrnnlk2sn8gmibhn8li09vnansjbxb9l1182qmgz7cvs2j1j"))))
639 (build-system gnu-build-system)
642 (modify-phases %standard-phases
643 (add-before 'check 'pre-check
645 (substitute* "src/tests/t.frame"
647 (string-append "GREP=" (which "grep") "\n")))
649 (native-inputs `(("flex" ,flex)))
650 (inputs `(("bdb" ,bdb)))
651 (home-page "https://bogofilter.sourceforge.io/")
652 (synopsis "Mail classifier based on a Bayesian filter")
654 "Bogofilter is a mail filter that classifies mail as spam or ham
655 (non-spam) by a statistical analysis of the message's header and
656 content (body). The program is able to learn from the user's classifications
657 and corrections. It is based on a Bayesian filter.")
658 (license license:gpl3+)))
660 (define-public offlineimap
667 (url "https://github.com/OfflineIMAP/offlineimap")
668 (commit (string-append "v" version))))
669 (file-name (git-file-name name version))
672 "0h5q5nk2p2vx86w6rrbs7v70h81dpqqr68x6l3klzl3m0yj9agb1"))))
673 (build-system python-build-system)
675 `(("asciidoc" ,asciidoc)))
676 (inputs `(("python2-pysqlite" ,python2-pysqlite)
677 ("python2-six" ,python2-six)))
679 ;; The setup.py script expects python-2.
681 ;; Tests require a modifiable IMAP account.
684 (modify-phases %standard-phases
685 (add-after 'build 'build-documentation
687 (substitute* "docs/Makefile"
688 ;; Prevent xmllint and xsltproc from downloading a DTD file.
689 (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v"))
690 (invoke "make" "-C" "docs" "man")))
691 (add-after 'install 'install-documentation
692 (lambda* (#:key outputs #:allow-other-keys)
693 (let* ((out (assoc-ref outputs "out"))
694 (man (string-append out "/share/man")))
695 (install-file "docs/offlineimap.1" (string-append man "/man1"))
696 (install-file "docs/offlineimapui.7" (string-append man "/man7"))
698 (home-page "https://www.offlineimap.org")
699 (synopsis "Sync emails between two repositories")
701 "OfflineImap synchronizes emails between two repositories, so that you
702 can read the same mailbox from multiple computers. It supports IMAP as REMOTE
703 repository and Maildir/IMAP as LOCAL repository.")
704 (license license:gpl2+)))
706 (define-public emacs-mew
712 (uri (string-append "https://mew.org/Release/mew-"
716 "0ixzyq33l6j34410kqav3lwn2wx171zvqd3irvns2jvhrbww8i6g"))))
720 `(("ruby-sqlite3" ,ruby-sqlite3) ; optional for the database of messages
721 ("ruby" ,ruby))) ; to set GEM_PATH so ruby-sqlite3 is found at runtime
722 (build-system gnu-build-system)
724 (let ((elisp-dir "/share/emacs/site-lisp")
725 (icon-dir "/share/mew"))
726 `(#:modules ((guix build gnu-build-system)
728 (guix build emacs-utils))
729 #:imported-modules (,@%gnu-build-system-modules
730 (guix build emacs-utils))
732 (list (string-append "--with-elispdir=" %output ,elisp-dir)
733 (string-append "--with-etcdir=" %output ,icon-dir))
735 (modify-phases %standard-phases
736 (add-after 'configure 'patch-mew-icon-directory
737 (lambda* (#:key outputs #:allow-other-keys)
738 (emacs-substitute-sexps "mew-key.el"
739 ("(def.* mew-icon-directory"
741 (add-to-list 'image-load-path 'mew-icon-directory)
742 ,(string-append (assoc-ref outputs "out") ,icon-dir))))
744 (add-after 'install 'generate-autoloads
745 (lambda* (#:key outputs #:allow-other-keys)
746 (emacs-generate-autoloads
747 "mew" (string-append (assoc-ref outputs "out") ,elisp-dir))
750 (home-page "https://mew.org")
751 (synopsis "Emacs e-mail client")
752 (description "Mew (Messaging in the Emacs World) is a user interface
753 for text messages, multimedia messages (MIME), news articles and
754 security functionality including PGP, S/MIME, SSH, and SSL.")
755 (license license:bsd-3)))
763 (uri (string-append "https://github.com/djcb/mu/releases/"
764 "download/" version "/"
765 "mu-" version ".tar.xz"))
768 "13kfpr77qrnp3i5qnb5zd03frd3fdviggnl50973gdk0hr7m0smj"))))
769 (build-system gnu-build-system)
771 `(("pkg-config" ,pkg-config)
772 ("glib" ,glib "bin") ; for gtester
773 ("emacs" ,emacs-minimal)
774 ("tzdata" ,tzdata-for-tests))) ; for mu/test/test-mu-query.c
781 `(#:modules ((guix build gnu-build-system)
783 (guix build emacs-utils))
784 #:imported-modules (,@%gnu-build-system-modules
785 (guix build emacs-utils))
787 (modify-phases %standard-phases
788 (add-after 'unpack 'patch-configure
789 ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e",
790 ;; so our Emacs package can't find it. Setting "--with-lispdir"
791 ;; configure flag doesn't help because "mu4e" will be added to
792 ;; the lispdir anyway, so we have to modify "configure.ac".
794 (substitute* "configure"
795 (("^ +lispdir=\"\\$\\{lispdir\\}/mu4e/\".*") "")
797 (("guile-2.0") "guile-2.2"))
798 (substitute* '("guile/Makefile.in"
799 "guile/mu/Makefile.in")
800 (("share/guile/site/2.0/") "share/guile/site/2.2/"))
802 (add-after 'unpack 'patch-bin-sh-in-tests
804 (substitute* '("guile/tests/test-mu-guile.c"
806 "mu/test-mu-cmd-cfind.c"
808 "mu/test-mu-threads.c")
809 (("/bin/sh") (which "sh")))
811 (add-before 'install 'fix-ffi
812 (lambda* (#:key outputs #:allow-other-keys)
813 (substitute* "guile/mu.scm"
815 (format #f "\"~a/lib/libguile-mu\""
816 (assoc-ref outputs "out"))))
818 (add-before 'check 'check-tz-setup
819 (lambda* (#:key inputs #:allow-other-keys)
820 ;; For mu/test/test-mu-query.c
822 (string-append (assoc-ref inputs "tzdata")
825 (add-after 'install 'install-emacs-autoloads
826 (lambda* (#:key outputs #:allow-other-keys)
827 (emacs-generate-autoloads
829 (string-append (assoc-ref outputs "out")
830 "/share/emacs/site-lisp"))
832 (home-page "https://www.djcbsoftware.nl/code/mu/")
833 (synopsis "Quickly find emails")
835 "Mu is a tool for dealing with e-mail messages stored in the
836 Maildir-format. Mu's purpose in life is to help you to quickly find the
837 messages you need; in addition, it allows you to view messages, extract
838 attachments, create new maildirs, and so on.")
839 (license license:gpl3+)))
847 ;; package author intends on distributing via github rather
849 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
850 (uri (string-append "https://github.com/pazz/alot/archive/"
852 (file-name (string-append "alot-" version ".tar.gz"))
855 "0wax30hjzmkqfml7hig1dqw1v1y63yc0cgbzl96x58b9h2ggqx3a"))))
856 (build-system python-build-system)
858 `(;; python 3 is currently unsupported, more info:
859 ;; https://github.com/pazz/alot/blob/master/docs/source/faq.rst
862 `(("python2-mock" ,python2-mock)))
864 `(("python2-magic" ,python2-magic)
865 ("python2-configobj" ,python2-configobj)
866 ("python2-twisted" ,python2-twisted)
867 ("python2-urwid" ,python2-urwid)
868 ("python2-urwidtrees" ,python2-urwidtrees)
869 ("python2-pygpgme" ,python2-pygpgme)
870 ("python2-notmuch" ,python2-notmuch)))
871 (home-page "https://github.com/pazz/alot")
872 (synopsis "Command-line MUA using @code{notmuch}")
874 "Alot is an experimental terminal mail user agent (@dfn{MUA}) based on
875 @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.")
876 (license license:gpl3+)))
878 (define-public notifymuch
880 ((commit "9d4aaf54599282ce80643b38195ff501120807f0")
884 (version (string-append "0.1-" revision "." (string-take commit 7)))
889 (url "https://github.com/kspi/notifymuch")
893 "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4"))
894 (file-name (string-append name "-" version "-checkout"))))
895 (build-system python-build-system)
897 `(("python-notmuch" ,python-notmuch)
898 ("python-pygobject" ,python-pygobject)
899 ("gobject-introspection" ,gobject-introspection)
900 ("libnotify" ,libnotify)
904 (modify-phases %standard-phases
905 (add-after 'install 'wrap-binary
906 (lambda* (#:key outputs #:allow-other-keys)
907 (let* ((out (assoc-ref outputs "out"))
908 (bin (string-append out "/bin/notifymuch")))
910 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
911 `("GI_TYPELIB_PATH" ":" prefix
912 (,(getenv "GI_TYPELIB_PATH")
913 ,(string-append out "/lib/girepository-1.0")))))
915 (home-page "https://github.com/kspi/notifymuch")
916 (synopsis "Displays notifications for changes in the notmuch email database")
917 (description "notifymuch displays desktop notifications for messages in
918 the notmuch database. The notifications are sent using libnotify to a
919 notification daemon. The query to find messages to send a notification about
920 is configurable, and a notification for the same message will not be send
921 within a configurable period (defaults to 48 hours). To use notifymuch, run
922 @command{notifymuch} after new mail is indexed, this can be automated by
923 invoking @command{notifymuch} from the post-new hook.")
924 (license license:gpl3))))
926 (define-public notmuch
929 (version "0.30-0.31rc1") ; Ensure it is ordered before "0.31"
932 (uri (string-append "https://notmuchmail.org/releases/notmuch-"
934 "0.31~rc1" ;FIXME: Remove on the next update
936 ;; FIXME: The 'file-name' field below is needed only because of
937 ;; the tilde "~" in the URL base name. Remove it when the tilde
938 ;; is no longer there.
939 (file-name (string-append name "-" version ".tar.xz"))
942 "11f10r9pp3p22afpfsrlz0xa0raas4w7fg2jkscgkjj5710ws8fw"))))
943 (build-system gnu-build-system)
945 `(#:modules ((guix build gnu-build-system)
946 ((guix build emacs-build-system) #:prefix emacs:)
948 #:imported-modules (,@%gnu-build-system-modules
949 (guix build emacs-build-system)
950 (guix build emacs-utils))
952 (list "V=1" ; verbose test output
953 "NOTMUCH_TEST_TIMEOUT=1h") ; don't fail on slow machines
954 #:phases (modify-phases %standard-phases
955 (add-after 'unpack 'patch-notmuch-lib.el
957 (substitute* "emacs/notmuch-lib.el"
958 (("/bin/sh") (which "sh")))
961 (lambda* (#:key outputs #:allow-other-keys)
963 (setenv "CONFIG_SHELL" (which "sh"))
965 (let* ((out (assoc-ref outputs "out"))
967 (string-append out "/share/emacs/site-lisp/")))
968 (invoke "./configure"
969 (string-append "--prefix=" out)
970 (string-append "--emacslispdir=" elisp)
971 (string-append "--emacsetcdir=" elisp)))))
972 (add-before 'check 'disable-failing-tests
973 ;; FIXME: Investigate why these tests are failing,
974 ;; and try removing this for notmuch versions >= 0.31.
976 (substitute* "test/T356-protected-headers.sh"
977 (("\\$NOTMUCH_GMIME_X509_CERT_VALIDITY") "0"))
979 (add-before 'check 'prepare-test-environment
981 (setenv "TEST_CC" "gcc")
982 ;; Patch various inline shell invocations.
983 (substitute* (find-files "test" "\\.sh$")
984 (("/bin/sh") (which "sh")))
986 (add-after 'install 'make-autoloads
987 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
989 `(("bash-completion" ,bash-completion)
990 ("emacs" ,emacs-no-x) ; -minimal lacks libxml, needed for some tests
991 ("pkg-config" ,pkg-config)
993 ("python-docutils" ,python-docutils)
994 ("sphinx" ,python-sphinx)
996 ;; The following are required for tests only.
1008 (home-page "https://notmuchmail.org/")
1009 (synopsis "Thread-based email index, search, and tagging")
1011 "Notmuch is a command-line based program for indexing, searching, read-
1012 ing, and tagging large collections of email messages.")
1013 (license license:gpl3+)))
1015 (define-public notmuch-addrlookup-c
1017 (name "notmuch-addrlookup-c")
1018 (version (string-append "9"))
1022 (url "https://github.com/aperezdc/notmuch-addrlookup-c")
1023 (commit (string-append "v" version))))
1024 (file-name (string-append name "-" version "-checkout"))
1027 "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc"))))
1028 (build-system gnu-build-system)
1030 '(#:tests? #f ; no tests
1031 #:make-flags (list "CC=gcc")
1032 #:phases (modify-phases %standard-phases
1034 ;; Remove vim code completion config, it's not needed to
1035 ;; build (or be patched).
1036 (add-before 'patch-source-shebangs 'delete-ycm-file
1037 (lambda _ (delete-file ".ycm_extra_conf.py")))
1039 (lambda* (#:key outputs #:allow-other-keys)
1040 (let ((bin (string-append
1041 (assoc-ref outputs "out") "/bin")))
1042 (install-file "notmuch-addrlookup" bin)))))))
1044 `(("pkg-config" ,pkg-config)))
1047 ("notmuch" ,notmuch)))
1048 (home-page "https://github.com/aperezdc/notmuch-addrlookup-c")
1049 (synopsis "Address lookup tool for Notmuch")
1050 (description "This is an address lookup tool using a Notmuch database,
1051 useful for email address completion.")
1052 (license license:expat)))
1054 (define-public python-notmuch
1056 (name "python-notmuch")
1057 (version (package-version notmuch))
1058 ;; Notmuch python bindings are now unavailable on pypi. The
1059 ;; bindings are distributed via the notmuch release tarball.
1060 (source (package-source notmuch))
1061 (build-system python-build-system)
1062 (inputs `(("notmuch" ,notmuch)))
1064 `(#:tests? #f ; no "test" target
1066 (modify-phases %standard-phases
1067 ;; This python package lives in a subdirectory of the notmuch source
1068 ;; tree, so chdir into it before building.
1069 (add-after 'unpack 'enter-python-dir
1070 (lambda _ (chdir "bindings/python") #t))
1071 ;; Make sure the correct notmuch shared library gets loaded.
1072 (add-before 'build 'set-libnotmuch-file-name
1073 (lambda* (#:key inputs #:allow-other-keys)
1074 (let ((notmuch (assoc-ref inputs "notmuch")))
1075 (substitute* "notmuch/globals.py"
1076 (("libnotmuch\\.so\\.")
1077 (string-append notmuch "/lib/libnotmuch.so.")))
1079 (home-page (package-home-page notmuch))
1080 (synopsis "Python bindings of the Notmuch mail indexing library")
1082 "This package provides Python bindings to use the Notmuch mail indexing
1083 and search library.")
1084 (license license:gpl3+)))
1086 (define-public python2-notmuch
1087 (package-with-python2 python-notmuch))
1089 (define-public muchsync
1096 (uri (string-append "http://www.muchsync.org/src/"
1097 "muchsync-" version ".tar.gz"))
1099 (base32 "1k2m44pj5i6vfhp9icdqs42chsp208llanc666p3d9nww8ngq2lb"))))
1100 (build-system gnu-build-system)
1102 `(("ghc-pandoc" ,ghc-pandoc)
1103 ("pkg-config" ,pkg-config)))
1105 `(("libcrypto" ,openssl)
1106 ("notmuch" ,notmuch)
1108 ("xapian" ,xapian)))
1109 (home-page "http://www.muchsync.org/")
1110 (synopsis "Synchronize notmuch mail across machines")
1112 "Muchsync brings Notmuch to all of your computers by synchronizing your
1113 mail messages and Notmuch tags across machines. The protocol is heavily
1114 pipelined to work efficiently over high-latency networks such as mobile
1115 broadband. Muchsync supports arbitrary pairwise synchronization among
1116 replicas. A version-vector-based algorithm allows it to exchange only the
1117 minimum information necessary to bring replicas up to date regardless of which
1118 pairs have previously synchronized.")
1119 (license license:gpl2+)))
1121 (define-public getmail
1128 (uri (string-append "http://pyropus.ca/software/getmail/old-versions/"
1129 "getmail-" version ".tar.gz"))
1131 (base32 "1hcrd9h4g12f5gvl1djsbchcjry02ghq4icdr897s8v48pkrzagk"))))
1132 (build-system python-build-system)
1134 `(#:tests? #f ; no tests
1135 #:python ,python-2))
1136 (home-page "http://pyropus.ca/software/getmail/")
1137 (synopsis "Mail retriever")
1139 "A flexible, extensible mail retrieval system with support for
1140 POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs,
1141 arbitrary message filtering, single-user and domain-mailboxes, and many other
1144 ;; License is specified in file '__init__.py'.
1145 (license license:gpl2)))
1147 (define-public libetpan
1154 (url "https://github.com/dinhviethoa/libetpan.git")
1156 (file-name (git-file-name name version))
1158 (base32 "19g4qskg71jv7sxfxsdkjmrxk9mk5kf9b6fhw06g6wvm3205n95f"))))
1159 (build-system gnu-build-system)
1160 (native-inputs `(("autoconf" ,autoconf-wrapper)
1161 ("automake" ,automake)
1162 ("libtool" ,libtool)
1163 ("pkg-config" ,pkg-config)))
1165 ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these
1166 ;; libraries need to be propagated.
1167 `(("cyrus-sasl" ,cyrus-sasl)
1168 ("openssl" ,openssl)))
1175 '("--disable-static" "--disable-db")))
1176 (home-page "https://www.etpan.org/libetpan.html")
1177 (synopsis "Portable middleware for email access")
1179 "The purpose of this mail library is to provide a portable, efficient
1180 framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It
1181 provides an API for C language. It's the low-level API used by MailCore and
1183 (license license:bsd-3)))
1185 (define-public compface
1191 (uri (string-append "https://ftp.heanet.ie/mirrors/"
1192 "ftp.xemacs.org/aux/"
1193 "compface-" version ".tar.gz"))
1196 "09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6"))))
1197 (build-system gnu-build-system)
1200 (synopsis "Portrait image compressor")
1201 (description "This package takes your 48x48x1 portrait image and
1203 (home-page "https://legacy.cs.indiana.edu/ftp/faces/")
1204 (license (license:x11-style "file://README"))))
1206 (define-public claws-mail
1213 "https://www.claws-mail.org/releases/claws-mail-" version
1217 "1s05qw0r0gqwvvkxvrrwbjkbi61dvilixiwrpgcq21qc9csc9r0m"))))
1218 (build-system gnu-build-system)
1219 (native-inputs `(("pkg-config" ,pkg-config)))
1220 (inputs `(("bogofilter" ,bogofilter)
1222 ("dbus-glib" ,dbus-glib)
1223 ("enchant" ,enchant)
1225 ("ghostscript" ,ghostscript)
1226 ("hicolor-icon-theme" ,hicolor-icon-theme)
1231 ("libarchive" ,libarchive)
1232 ("libcanberra" ,libcanberra)
1233 ("libetpan" ,libetpan)
1234 ("libical" ,libical)
1235 ("libnotify" ,libnotify)
1237 ("libxml2" ,libxml2)
1239 ("python-2" ,python-2)
1240 ("mime-info" ,shared-mime-info)
1241 ("startup-notification" ,startup-notification)))
1244 '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant"
1247 ;; Disable updating icon cache since it's done by the profile hook.
1248 ;; Conflict with other packages in the profile would be inevitable
1250 '("gtk_update_icon_cache=true")
1251 #:phases (modify-phases %standard-phases
1252 (add-before 'build 'patch-mime
1253 (lambda* (#:key inputs #:allow-other-keys)
1254 (substitute* "src/procmime.c"
1255 (("/usr/share/mime/globs")
1256 (string-append (assoc-ref inputs "mime-info")
1257 "/share/mime/globs"))))))))
1258 (synopsis "GTK-based Email client")
1260 "Claws-Mail is an email client (and news reader) based on GTK+. The
1261 appearance and interface are designed to be familiar to new users coming from
1262 other popular email clients, as well as experienced users. Almost all commands
1263 are accessible with the keyboard. Plus, Claws-Mail is extensible via addons
1264 which can add many functionalities to the base client.")
1265 (home-page "https://www.claws-mail.org/")
1266 (license license:gpl3+))) ; most files are actually public domain or x11
1268 (define-public msmtp
1275 (uri (string-append "https://marlam.de/msmtp/releases/"
1276 "/msmtp-" version ".tar.xz"))
1278 (base32 "0m33m5bc7ajmgy7vivnzj3mhybg37259hx79xypj769kfyafyvx8"))))
1279 (build-system gnu-build-system)
1281 `(("libsecret" ,libsecret)
1286 `(("pkg-config" ,pkg-config)))
1287 (home-page "https://marlam.de/msmtp/")
1289 `(#:configure-flags (list "--with-libgsasl"
1291 "--with-tls=gnutls")
1293 (modify-phases %standard-phases
1294 (add-after 'install 'install-additional-files
1295 (lambda* (#:key outputs #:allow-other-keys)
1296 (let* ((out (assoc-ref outputs "out"))
1297 (bin (string-append out "/bin"))
1298 (doc (string-append out "/share/doc/msmtp"))
1299 (msmtpq "scripts/msmtpq")
1300 (vimfiles (string-append out "/share/vim/vimfiles/plugin")))
1301 (install-file (string-append msmtpq "/msmtpq") bin)
1302 (install-file (string-append msmtpq "/msmtp-queue") bin)
1303 (install-file (string-append msmtpq "/README.msmtpq") doc)
1304 (install-file "scripts/vim/msmtp.vim" vimfiles)
1305 ;; Don't rely on netcat being in the PATH to test for a
1306 ;; connection, instead try tp ing debian.org.
1307 (substitute* (string-append bin "/msmtpq")
1308 (("EMAIL_CONN_TEST=n") "EMAIL_CONN_TEST=p"))
1311 "Simple and easy to use SMTP client with decent sendmail compatibility")
1313 "msmtp is an SMTP client. In the default mode, it transmits a mail to
1314 an SMTP server (for example at a free mail provider) which takes care of further
1316 (license license:gpl3+)))
1325 (uri (let ((file-name (string-append "exim-" version ".tar.xz")))
1326 (list (string-append "https://ftp.exim.org/pub/exim/exim4/"
1328 ;; ‘Fix’ releases (exim-x.y.z.f) are kept separately.
1329 (string-append "https://ftp.exim.org/pub/exim/exim4/fixes/"
1331 ;; After a new non-fix release, the old one is moved here.
1332 (string-append "https://ftp.exim.org/pub/exim/exim4/old/"
1335 (base32 "1nsb2i5mqxfz1sl1bmbxmpb2qiaf3wffhfiw4j9vfpagy3xfhzpp"))))
1336 (build-system gnu-build-system)
1338 `(("bdb" ,bdb-5.3) ; ‘#error Version 6 and later BDB API is not supported’
1339 ("gnutls" ,gnutls/dane)
1346 ("libxaw" ,libxaw)))
1348 `(("pcre" ,pcre "bin")
1350 ("pkg-config" ,pkg-config)))
1353 (modify-phases %standard-phases
1355 ;; We'd use #:make-flags but the top-level Makefile calls others
1356 ;; recursively, so just set all variables this way.
1357 (lambda* (#:key outputs inputs #:allow-other-keys)
1358 (substitute* '("Makefile" "OS/Makefile-Default")
1359 (("(RM_COMMAND=).*" all var)
1360 (string-append var "rm\n")))
1361 (copy-file "src/EDITME" "Local/Makefile")
1362 (copy-file "exim_monitor/EDITME" "Local/eximon.conf")
1363 (let ((out (assoc-ref outputs "out"))
1364 (gzip (assoc-ref inputs "gzip"))
1365 (bzip2 (assoc-ref inputs "bzip2"))
1366 (xz (assoc-ref inputs "xz")))
1367 (substitute* '("Local/Makefile")
1368 (("(BIN_DIRECTORY=).*" all var)
1369 (string-append var out "/bin\n"))
1370 (("(CONFIGURE_FILE=).*" all var)
1371 (string-append var out "/etc/exim.conf\n"))
1372 (("(EXIM_USER=).*" all var)
1373 (string-append var "nobody\n"))
1374 (("(FIXED_NEVER_USERS=).*" all var)
1375 (string-append var "\n")) ; XXX no root in build environment
1376 (("(COMPRESS_COMMAND=).*" all var)
1377 (string-append var gzip "/bin/gzip\n"))
1378 (("(ZCAT_COMMAND=).*" all var)
1379 (string-append var gzip "/bin/zcat\n"))
1380 (("# (USE_GNUTLS(|_PC)=.*)" all line)
1381 (string-append line "\n")))
1382 ;; This file has hard-coded relative file names for tools despite
1383 ;; the zcat configuration above.
1384 (substitute* '("src/exigrep.src")
1385 (("'zcat'") (string-append "'" gzip "/bin/zcat'"))
1386 (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'"))
1387 (("'xzcat'") (string-append "'" xz "/bin/xzcat'"))
1388 (("'lzma'") (string-append "'" xz "/bin/lzma'"))))
1390 (add-before 'build 'fix-sh-paths
1391 (lambda* (#:key inputs #:allow-other-keys)
1392 (substitute* '("scripts/lookups-Makefile" "scripts/reversion")
1393 (("SHELL=/bin/sh") "SHELL=sh"))
1394 (substitute* '("scripts/Configure-config.h")
1395 (("\\| /bin/sh") "| sh"))
1396 (let ((bash (assoc-ref inputs "bash")))
1397 (substitute* '("scripts/Configure-eximon")
1398 (("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))
1400 (add-before 'build 'build-reproducibly
1402 ;; The ‘compilation number’ is incremented for every build from the
1403 ;; same source tree. It appears to vary over different (parallel?)
1404 ;; builds. Make it a ‘constant number’ instead.
1405 (substitute* "src/version.c"
1406 (("#include \"cnumber.h\"") "1")))))
1409 "INSTALL_ARG=-no_chown")
1410 ;; No 'check' target. There is a test suite in test/, which assumes that
1411 ;; certain build options were (not) used and that it can freely ‘sudo’.
1413 (home-page "https://www.exim.org/")
1415 "Message Transfer Agent (MTA) developed at the University of Cambridge")
1417 "Exim is a message transfer agent (MTA) developed at the University of
1418 Cambridge for use on Unix systems connected to the Internet. In style it is
1419 similar to Smail 3, but its facilities are more general. There is a great
1420 deal of flexibility in the way mail can be routed, and there are extensive
1421 facilities for checking incoming mail.")
1422 (license license:gpl2+)))
1424 (define-public dovecot
1427 (version "2.3.11.3")
1431 (uri (string-append "https://www.dovecot.org/releases/"
1432 (version-major+minor version) "/"
1433 "dovecot-" version ".tar.gz"))
1435 (base32 "1p5gp8jbavcsaara5mfn5cbrnlxssajnchczbgmmfzr7228fmnfk"))))
1436 (build-system gnu-build-system)
1438 `(("pkg-config" ,pkg-config)))
1441 ("clucene" ,clucene)
1443 ("libsodium" ,libsodium) ; extra password algorithms
1444 ("libstemmer" ,libstemmer)
1445 ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's
1446 ;; backtrace_symbol() function so fallback to using libunwind.
1448 `(("libunwind" ,libunwind))
1450 ("linux-pam" ,linux-pam)
1452 ("openssl" ,openssl)
1455 ("zstd" ,zstd "lib")))
1457 `(#:configure-flags '("--sysconfdir=/etc"
1458 "--localstatedir=/var"
1459 "--with-sqlite" ; not auto-detected
1460 "--with-lucene") ; not auto-detected
1462 (modify-phases %standard-phases
1463 (add-after 'unpack 'patch-file-names
1465 (substitute* "src/lib-program-client/test-program-client-local.c"
1466 (("(/bin/| )cat") (which "cat"))
1467 (("/bin/echo") (which "echo"))
1468 (("/bin/false") (which "false"))
1469 (("/bin/sh") (which "bash"))
1470 (("head") (which "head"))
1471 (("sleep") (which "sleep")))
1472 (substitute* (list "src/lib-smtp/test-bin/sendmail-exit-1.sh"
1473 "src/lib-smtp/test-bin/sendmail-success.sh")
1474 (("cat") (which "cat")))
1477 (lambda* (#:key make-flags #:allow-other-keys)
1478 ;; Simple hack to avoid installing a trivial README in /etc.
1479 (apply invoke "make" "install" "sysconfdir=/tmp/bogus"
1481 (home-page "https://www.dovecot.org")
1482 (synopsis "Secure POP3/IMAP server")
1484 "Dovecot is a mail server whose major goals are security and reliability.
1485 It supports mbox/Maildir and its own dbox/mdbox formats.")
1486 ;; Most source files are covered by either lgpl2.1 or expat. The SHA code
1487 ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the
1488 ;; Unicode, Inc. License Agreement for Data Files and Software.
1489 (license (list license:lgpl2.1 license:expat
1490 (license:non-copyleft "file://COPYING")))))
1492 (define-public dovecot-trees
1494 (name "dovecot-trees")
1499 (uri (string-append "https://0xacab.org/riseuplabs/trees/repository/"
1500 "archive.tar.gz?ref=v" version))
1501 (file-name (string-append name "-" version ".tar.gz"))
1504 "0rkk10b1bsjz979sc864vpgcdchy7yxwmyv4ik50lar1h6awdnrf"))
1506 (search-patches "dovecot-trees-support-dovecot-2.3.patch"))))
1507 (build-system gnu-build-system)
1509 `(("automake" ,automake)
1510 ("autoconf" ,autoconf)
1511 ("libtool" ,libtool)
1512 ("dovecot" ,dovecot)
1513 ("pkg-config" ,pkg-config)))
1515 `(("libsodium" ,libsodium)))
1517 `(#:tests? #f ;No tests exist.
1518 #:configure-flags (list (string-append "--with-dovecot="
1519 (assoc-ref %build-inputs "dovecot")
1521 (home-page "https://0xacab.org/riseuplabs/trees")
1522 (synopsis "NaCL-based Dovecot email storage encryption plugin")
1524 "Technology for Resting Email Encrypted Storage (TREES) is a NaCL-based
1525 Dovecot encryption plugin. This plugin adds individually encrypted mail
1526 storage to the Dovecot IMAP server. It is inspired by Posteo's scrambler
1527 which uses OpenSSL and RSA keypairs. TREES works in a similar way, but uses
1528 the Sodium crypto library (based on NaCL).
1532 @item On IMAP log in, the user's cleartext password is passed to the plugin.
1533 @item The plugin creates an argon2 digest from the password.
1534 @item This password digest is used as a symmetric secret to decrypt a libsodium secretbox.
1535 @item Inside the secretbox is stored a Curve25519 private key.
1536 @item The Curve25519 private key is used to decrypt each individual message,
1537 using libsodium sealed boxes.
1538 @item New mail is encrypted as it arrives using the Curve25519 public key.
1540 (license license:agpl3)))
1542 (define-public dovecot-libsodium-plugin
1543 (let ((commit "044de73c01c35385df0105f6b387bec5d5317ce7")
1546 (name "dovecot-libsodium-plugin")
1547 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1552 (url "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1554 (file-name (string-append name "-" version "-checkout"))
1557 "13h07l7xy713zchnj2p9fhvq7fdl4zy1ai94li3ygkqjjj8hrgas"))))
1558 (build-system gnu-build-system)
1560 `(("automake" ,automake)
1561 ("autoconf" ,autoconf)
1562 ("libtool" ,libtool)
1563 ("dovecot" ,dovecot)
1564 ("pkg-config" ,pkg-config)))
1566 `(("libsodium" ,libsodium)))
1568 `(#:tests? #f ;No tests exist.
1569 #:configure-flags (list (string-append "--with-dovecot="
1570 (assoc-ref %build-inputs "dovecot")
1572 (home-page "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1573 (synopsis "Libsodium password hashing schemes plugin for Dovecot")
1575 "@code{dovecot-libsodium-plugin} provides a libsodium password
1576 hashing scheme (such as scrypt) plug-in for @code{Dovecot}.")
1577 (license license:gpl3+))))
1579 (define-public isync
1586 (uri (string-append "mirror://sourceforge/isync/isync/"
1587 version "/isync-" version ".tar.gz"))
1589 "10n8ykag0q3ws6fc15xqyg3v980v5nq3kzpablly2rh2z7vkn8gj"))))
1590 (build-system gnu-build-system)
1595 ("cyrus-sasl" ,cyrus-sasl)
1596 ("openssl" ,openssl-1.0)
1598 (home-page "https://isync.sourceforge.io/")
1599 (synopsis "Mailbox synchronization program")
1601 "isync/mbsync is a command-line tool for two-way synchronization of
1602 mailboxes. Currently Maildir and IMAP are supported types.")
1603 (license license:gpl2+)))
1605 (define-public perl-email-abstract
1607 (name "perl-email-abstract")
1612 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1613 "Email-Abstract-" version ".tar.gz"))
1616 "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw"))))
1617 (build-system perl-build-system)
1619 `(("perl-email-simple" ,perl-email-simple)
1620 ("perl-module-pluggable" ,perl-module-pluggable)
1621 ("perl-mro-compat" ,perl-mro-compat)))
1622 (home-page "https://metacpan.org/release/Email-Abstract")
1623 (synopsis "Interface to mail representations")
1624 (description "Email::Abstract provides module writers with the ability to
1625 write simple, representation-independent mail handling code.")
1626 (license license:perl-license)))
1628 (define-public perl-email-address
1630 (name "perl-email-address")
1635 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1636 "Email-Address-" version ".tar.gz"))
1638 (base32 "1vzr0vx4zsw4zbc9xdffc31wnkc1raqmyfiyws06fbyck197i8qg"))))
1639 (build-system perl-build-system)
1640 (home-page "https://metacpan.org/release/Email-Address")
1641 (synopsis "Email address parsing and creation")
1642 (description "Email::Address implements a regex-based RFC 2822 parser that
1643 locates email addresses in strings and returns a list of Email::Address
1644 objects found. Alternatively you may construct objects manually.")
1645 (license license:perl-license)))
1647 (define-public perl-email-address-xs
1649 (name "perl-email-address-xs")
1654 (uri (string-append "mirror://cpan/authors/id/P/PA/PALI/"
1655 "Email-Address-XS-" version ".tar.gz"))
1658 "0gjrrl81z3sfwavgx5kwjd87gj44mlnbbqsm3dgdv1xllw26spwr"))))
1659 (build-system perl-build-system)
1660 (home-page "https://metacpan.org/release/Email-Address-XS")
1661 (synopsis "Parse and format RFC 5322 email addresses and groups")
1663 "Email::Address::XS implements RFC 5322 parser and formatter of email
1664 addresses and groups. Unlike Email::Address, this module does not use regular
1665 expressions for parsing but instead is implemented in XS and uses shared code
1666 from Dovecot IMAP server.")
1667 (license license:perl-license)))
1669 (define-public perl-email-date-format
1671 (name "perl-email-date-format")
1676 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1677 "Email-Date-Format-" version ".tar.gz"))
1680 "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p"))))
1681 (build-system perl-build-system)
1682 (home-page "https://metacpan.org/release/Email-Date-Format")
1683 (synopsis "Produce RFC 2822 date strings")
1684 (description "Email::Date::Format provides a means for generating an RFC
1685 2822 compliant datetime string.")
1686 (license license:perl-license)))
1688 (define-public perl-email-messageid
1690 (name "perl-email-messageid")
1695 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1696 "Email-MessageID-" version ".tar.gz"))
1699 "1f22sdnfq169qw1l0lg7y74pmiam7j9v95bggjnf3q4mygdmshpc"))))
1700 (build-system perl-build-system)
1701 (home-page "https://metacpan.org/release/Email-MessageID")
1702 (synopsis "Generate world unique message-ids")
1703 (description "Email::MessageID generates recommended message-ids to
1704 identify a message uniquely.")
1705 (license license:perl-license)))
1707 (define-public perl-email-mime
1709 (name "perl-email-mime")
1714 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1715 "Email-MIME-" version ".tar.gz"))
1718 "0z1k3i0lzp2k421gc8f3wq0jbqflkbw2xqd2k7n7pmv56417kvk8"))))
1719 (build-system perl-build-system)
1721 `(("perl-email-address" ,perl-email-address)
1722 ("perl-email-messageid" ,perl-email-messageid)
1723 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
1724 ("perl-email-mime-encodings" ,perl-email-mime-encodings)
1725 ("perl-email-simple" ,perl-email-simple)
1726 ("perl-mime-types" ,perl-mime-types)
1727 ("perl-module-runtime" ,perl-module-runtime)))
1728 (home-page "https://metacpan.org/release/Email-MIME")
1729 (synopsis "MIME message handling")
1730 (description "Email::MIME is an extension of the Email::Simple module, to
1731 handle MIME encoded messages. It takes a message as a string, splits it up
1732 into its constituent parts, and allows you access to various parts of the
1733 message. Headers are decoded from MIME encoding.")
1734 (license license:perl-license)))
1736 (define-public perl-email-mime-contenttype
1738 (name "perl-email-mime-contenttype")
1743 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1744 "Email-MIME-ContentType-" version ".tar.gz"))
1747 "042kxhs3bp1ab9z0mbr1wy21ld4lxd6v2a2mmrashqnsn2075fws"))))
1748 (build-system perl-build-system)
1750 `(("perl-capture-tiny" ,perl-capture-tiny)))
1751 (home-page "https://metacpan.org/release/Email-MIME-ContentType")
1752 (synopsis "Parse MIME Content-Type headers")
1753 (description "Email::MIME::ContentType parses a MIME Content-Type
1755 (license license:perl-license)))
1757 (define-public perl-email-mime-encodings
1759 (name "perl-email-mime-encodings")
1764 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1765 "Email-MIME-Encodings-" version ".tar.gz"))
1768 "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac"))))
1769 (build-system perl-build-system)
1771 `(("perl-capture-tiny" ,perl-capture-tiny)))
1772 (home-page "https://metacpan.org/release/Email-MIME-Encodings")
1773 (synopsis "Unified interface to MIME encoding and decoding")
1774 (description "This module wraps MIME::Base64 and MIME::QuotedPrint.")
1775 (license license:perl-license)))
1777 (define-public perl-email-sender
1779 (name "perl-email-sender")
1780 (version "1.300034")
1784 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1785 "Email-Sender-" version ".tar.gz"))
1787 (base32 "14aj9kqa9dr2bdhzn2qvjj2mffj8wjb5397z8qw7qg057fk3ib05"))))
1788 (build-system perl-build-system)
1790 `(("perl-capture-tiny" ,perl-capture-tiny)))
1792 `(("perl-email-abstract" ,perl-email-abstract)
1793 ("perl-email-address" ,perl-email-address)
1794 ("perl-email-simple" ,perl-email-simple)
1795 ("perl-list-moreutils" ,perl-list-moreutils)
1796 ("perl-module-runtime" ,perl-module-runtime)
1797 ("perl-moo" ,perl-moo)
1798 ("perl-moox-types-mooselike" ,perl-moox-types-mooselike)
1799 ("perl-sub-exporter" ,perl-sub-exporter)
1800 ("perl-throwable" ,perl-throwable)
1801 ("perl-try-tiny" ,perl-try-tiny)))
1802 (home-page "https://metacpan.org/release/Email-Sender")
1803 (synopsis "Perl library for sending email")
1804 (description "Email::Sender replaces the old and sometimes problematic
1805 Email::Send library.")
1806 (license license:perl-license)))
1808 (define-public perl-email-simple
1810 (name "perl-email-simple")
1815 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1816 "Email-Simple-" version ".tar.gz"))
1819 "1m4brbjvalyp5kjqslqv4155dzwg977shxin208i7lc8236n6pyq"))))
1820 (build-system perl-build-system)
1822 `(("perl-email-date-format" ,perl-email-date-format)))
1823 (home-page "https://metacpan.org/release/Email-Simple")
1824 (synopsis "Parsing of RFC 2822 messages")
1825 (description "Email::Simple provides simple parsing of RFC 2822 message
1826 format and headers.")
1827 (license license:perl-license)))
1829 (define-public libesmtp
1836 (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/"
1837 "libesmtp/libesmtp-" version ".tar.bz2/"
1838 "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-"
1840 ;; XXX This site is offline, so we fetch Fedora's cached copy
1841 ;; of the source tarball.
1842 (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-"
1843 version ".tar.bz2")))
1846 "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh"))))
1847 (build-system gnu-build-system)
1849 `(("openssl" ,openssl)))
1850 (home-page "http://www.stafford.uklinux.net/libesmtp/")
1851 (synopsis "Library for sending mail via remote hosts using SMTP")
1852 (description "libESMTP is an SMTP client which manages posting (or
1853 submission of) electronic mail via a preconfigured Mail Transport Agent (MTA).
1854 It may be used as part of a Mail User Agent (MUA) or other program that must
1855 be able to post electronic mail where mail functionality may not be that
1856 program's primary purpose.")
1857 (license (list license:lgpl2.1+ license:gpl2+))))
1859 (define-public esmtp
1867 (url "https://github.com/andywingo/esmtp")
1868 (commit "01bf9fc")))
1871 "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2"))
1872 (file-name (string-append name "-" version "-checkout"))))
1874 `(#:phases (modify-phases %standard-phases
1876 (lambda _ (invoke "autoreconf" "-vfi"))))))
1877 (build-system gnu-build-system)
1881 ("autoconf" ,autoconf)
1882 ("automake" ,automake)
1883 ("libtool" ,libtool)))
1885 `(("libesmtp" ,libesmtp)))
1886 (home-page "https://sourceforge.net/projects/esmtp/")
1887 (synopsis "Relay-only mail transfer agent (MTA)")
1888 (description "Esmtp is a simple relay-only mail transfer agent built using
1889 libESMTP. It sends e-mail via a remote SMTP server using credentials from the
1890 user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man
1891 page for more on configuration. This package also provides minimal
1892 compatibility shims for the @command{sendmail}, @command{mailq}, and
1893 @command{newaliases} commands.")
1894 (license license:gpl2+)))
1902 (uri (string-append "https://github.com/nicm/fdm/releases/download/"
1903 version "/fdm-" version ".tar.gz"))
1905 (base32 "196fs1z8y7p12wmqn1bylzz94szl58yv2aby3p30nmwjnyv8rch6"))))
1906 (build-system gnu-build-system)
1909 ("openssl" ,openssl)
1911 (home-page "https://github.com/nicm/fdm")
1912 (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)")
1913 (description "fdm is a program designed to fetch mail from POP3
1914 or IMAP servers, or receive local mail from stdin, and
1915 deliver it in various ways.")
1917 ;; Why point to a source file? Well, all the individual files have a
1918 ;; copy of this license in their headers, but there's no seprate file
1919 ;; with that information.
1920 (license:non-copyleft
1921 "https://github.com/nicm/fdm/blob/master/command.c"))))
1924 (define-public procmail
1932 "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-"
1937 "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"))
1938 ;; The following patch fixes an ambiguous definition of
1939 ;; getline() in formail.c. The patch is provided by Debian as
1941 (patches (search-patches "procmail-ambiguous-getline-debian.patch"
1942 "procmail-CVE-2014-3618.patch"
1943 "procmail-CVE-2017-16844.patch"))))
1945 `(#:phases (modify-phases %standard-phases
1948 (substitute* "Makefile"
1952 (assoc-ref %outputs "out"))
1956 #:tests? #f)) ;; There are no tests indicating a successful
1957 ;; build. Some tests of basic locking mechanisms provided by the
1958 ;; file system are performed during 'make install'. However, these
1959 ;; are performed before the actual build process.
1960 (build-system gnu-build-system)
1961 (inputs `(("exim" ,exim)))
1962 (home-page "http://www.procmail.org/")
1963 (synopsis "Versatile mail delivery agent (MDA)")
1964 (description "Procmail is a mail delivery agent (MDA) featuring support
1965 for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail
1966 can be sorted into separate files/directories and arbitrary commands can be
1967 executed on mail arrival. Procmail is considered stable, but is no longer
1969 (license license:gpl2+))) ;; procmail allows to choose the
1970 ;; nonfree Artistic License 1.0
1971 ;; as alternative to the GPL2+.
1972 ;; This option is not listed here.
1974 (define-public khard
1980 (uri (pypi-uri name version))
1983 "062nv4xkfsjc11k9m52dh6xjn9z68a4a6x1s8z05wwv4jbp1lkhn"))))
1984 (build-system python-build-system)
1987 (modify-phases %standard-phases
1988 (add-after 'install 'install-completions
1989 (lambda* (#:key outputs #:allow-other-keys)
1990 (let* ((out (assoc-ref outputs "out"))
1991 (zsh (string-append out "/share/zsh/site-functions")))
1992 (copy-recursively "misc/zsh" zsh)
1995 `(("python-setuptools-scm" ,python-setuptools-scm)))
1997 `(("python-atomicwrites" ,python-atomicwrites)
1998 ("python-configobj" ,python-configobj)
1999 ("python-ruamel.yaml" ,python-ruamel.yaml)
2000 ("python-unidecode" ,python-unidecode)
2001 ("python-vobject" ,python-vobject)))
2002 (synopsis "Console address book using CardDAV")
2003 (description "Khard is an address book for the console. It creates, reads,
2004 modifies and removes CardDAV address book entries at your local machine. For
2005 synchronizing with a remote address book, @command{vdirsyncer} is recommended.
2006 Khard can also be used from within the email client @command{mutt}.")
2007 (home-page "https://github.com/scheibler/khard")
2008 (license license:gpl3+)))
2010 (define-public perl-mail-spf
2012 (name "perl-mail-spf")
2018 "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v"
2022 (base32 "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1"))))
2023 (build-system perl-build-system)
2025 `(("perl-module-build" ,perl-module-build)
2026 ("perl-net-dns-resolver-programmable"
2027 ,perl-net-dns-resolver-programmable)))
2030 (modify-phases %standard-phases
2031 (add-before 'configure 'modify-Build.PL
2032 (lambda* (#:key outputs #:allow-other-keys)
2033 (substitute* "Build.PL"
2034 (("'/usr/sbin'") (string-append "'"
2035 (assoc-ref outputs "out")
2039 `(("perl-error" ,perl-error)
2040 ("perl-net-dns" ,perl-net-dns)
2041 ("perl-netaddr-ip" ,perl-netaddr-ip)
2042 ("perl-uri" ,perl-uri)))
2043 (home-page "https://metacpan.org/release/Mail-SPF")
2044 (synopsis "Perl implementation of Sender Policy Framework")
2045 (description "Mail::SPF is the Sender Policy Framework implemented
2047 (license license:bsd-3)))
2049 (define-public perl-mail-authenticationresults
2051 (name "perl-mail-authenticationresults")
2052 (version "1.20180923")
2056 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2057 "Mail-AuthenticationResults-" version ".tar.gz"))
2060 "1g1wym9vcbhldwvi4w5pl0fhd4jh2icj975awf4wr5xmkli9mxbz"))))
2061 (build-system perl-build-system)
2063 `(("perl-test-exception" ,perl-test-exception)))
2064 (home-page "https://metacpan.org/release/Mail-AuthenticationResults")
2065 (synopsis "Object Oriented Authentication-Results Headers")
2066 (description "Mail::AuthenticationResults parses the message header field
2067 that indicates the message authentication status as per RFC7601. This module
2068 is not fully compliant with the RFC but it tries to implement most styles of
2069 Authentication-Results header seen in the wild.")
2070 (license license:perl-license)))
2072 (define-public perl-mail-dkim
2074 (name "perl-mail-dkim")
2079 "mirror://cpan/authors/id/M/MB/MBRADSHAW/Mail-DKIM-"
2084 "0cgkal65qqcy57b21lgij90ba36wl66byw9i76g5yhwaa8ms8hqa"))))
2085 (build-system perl-build-system)
2087 `(("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2088 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2089 ("perl-mailtools" ,perl-mailtools)
2090 ("perl-net-dns" ,perl-net-dns)))
2092 `(("perl-net-dns-resolver-mock" ,perl-net-dns-resolver-mock)
2093 ("perl-test-requiresinternet" ,perl-test-requiresinternet)
2094 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
2095 (home-page "https://metacpan.org/release/Mail-DKIM")
2096 (synopsis "Signs/verifies Internet mail with DKIM/DomainKey signatures")
2097 (description "Mail::DKIM is a Perl module that implements the new Domain
2098 Keys Identified Mail (DKIM) standard, and the older Yahoo! DomainKeys standard,
2099 both of which sign and verify emails using digital signatures and DNS records.
2100 Mail-DKIM can be used by any Perl program that wants to provide support for
2101 DKIM and/or DomainKeys.")
2102 (license license:gpl3+)))
2104 (define-public dkimproxy
2111 "mirror://sourceforge/dkimproxy/dkimproxy/"
2112 version "/dkimproxy-" version ".tar.gz"))
2115 "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75"))
2117 (search-patches "dkimproxy-add-ipv6-support.patch"))))
2118 (build-system gnu-build-system)
2121 (modify-phases %standard-phases
2122 (add-after 'install 'make-wrapper
2123 (lambda* (#:key inputs outputs #:allow-other-keys)
2124 (let* ((out (assoc-ref outputs "out"))
2125 (wrap.pl (lambda (scripts keys)
2128 (wrap-program (string-append out script)
2129 `("PERL5LIB" ":" prefix
2132 (assoc-ref inputs input)
2133 "/lib/perl5/site_perl"))
2136 (wrap.pl (list "/bin/dkimproxy.in"
2137 "/bin/dkimproxy.out")
2138 (list "perl-crypt-openssl-rsa"
2139 "perl-io-socket-inet6"
2141 "perl-mail-authenticationresults"
2146 (wrap.pl (list "/bin/dkim_responder.pl")
2147 (list "perl-crypt-openssl-rsa"
2156 ("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2157 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2158 ("perl-mailtools" ,perl-mailtools)
2159 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2160 ("perl-mail-dkim" ,perl-mail-dkim)
2161 ("perl-mime-tools" ,perl-mime-tools)
2162 ("perl-net-dns" ,perl-net-dns)
2163 ("perl-net-server" ,perl-net-server)
2164 ("perl-socket6" ,perl-socket6)
2165 ("perl-timedate" ,perl-timedate)))
2166 (home-page "http://dkimproxy.sourceforge.net/")
2167 (synopsis "SMTP proxy to sign and verify Internet mail with DKIM headers")
2169 "DKIMproxy is an SMTP proxy that signs and verifies Internet mail using the
2170 @code{Mail::DKIM} Perl module. It comprises two separate proxies: an outbound
2171 proxy for signing outgoing email, and an inbound proxy for verifying signatures
2172 of incoming messages.
2174 It was designed for Postfix, but can be used to add DKIM support to nearly any
2175 existing mail server. With Postfix, the proxies can operate as either
2176 @code{Before-Queue} or @code{After-Queue} content filters.")
2177 (license license:gpl2+)))
2179 (define-public mb2md
2186 "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-"
2190 "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg"))))
2191 (build-system trivial-build-system)
2193 '(#:modules ((guix build utils))
2196 (use-modules (guix build utils))
2197 (let* ((source (assoc-ref %build-inputs "source"))
2198 (out (assoc-ref %outputs "out"))
2199 (bin (string-append out "/bin"))
2200 (perl (assoc-ref %build-inputs "perl"))
2201 (gzip (assoc-ref %build-inputs "gzip"))
2202 (perl-timedate (assoc-ref %build-inputs "perl-timedate"))
2203 (perl5lib (string-append perl-timedate "/lib/perl5/site_perl")))
2205 (with-directory-excursion bin
2206 (copy-file source "mb2md.gz")
2207 (invoke (string-append gzip "/bin/gzip") "-d" "mb2md.gz")
2208 (substitute* "mb2md"
2209 (("#!/usr/bin/perl")
2210 (string-append "#!/usr/bin/perl -I " perl5lib)))
2211 (patch-shebang "mb2md" (list (string-append perl "/bin")))
2212 (chmod "mb2md" #o555))
2214 (native-inputs `(("gzip" ,gzip)))
2215 (inputs `(("perl" ,perl)
2216 ("perl-timedate" ,perl-timedate)))
2217 (home-page "http://batleth.sapienti-sat.org/projects/mb2md/")
2218 (synopsis "Mbox to maildir converter")
2220 "Mb2md is a Perl script that takes one or more mbox format files and
2221 converts them to maildir format directories.")
2222 (license license:public-domain)))
2231 (uri (string-append "https://marlam.de/mpop/releases/"
2232 "mpop-" version ".tar.xz"))
2234 (base32 "1243hazpiwgvz2m3p48cdh0yw1019i6xjxgc7qyhmxcdy0inb6wy"))))
2235 (build-system gnu-build-system)
2237 `(("gnutls" ,gnutls)))
2239 `(("pkg-config" ,pkg-config)))
2240 (home-page "https://marlam.de/mpop/")
2241 (synopsis "POP3 mail client")
2242 (description "mpop is a small and fast POP3 client suitable as a
2243 fetchmail replacement.
2245 mpop supports multiple accounts, header based mail filtering, delivery
2246 to mbox files, maildir folders or an @acronym{MDA, Mail Delivery Agent},
2247 TLS/SSL, several authentication methods, @acronym{IDN, Internationalized Domain
2248 Names} and SOCKS proxies.")
2249 (license license:gpl3+)))
2251 (define-public mhonarc
2258 (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-"
2262 "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq"))))
2263 (build-system perl-build-system)
2264 (home-page "https://www.mhonarc.org/")
2265 (synopsis "Create HTML archives of mail/news messages")
2267 "MHonArc is a Perl mail-to-HTML converter. MHonArc
2268 provides HTML mail archiving with index, mail thread linking,
2269 etc; plus other capabilities including support for MIME and
2270 powerful user customization features.")
2271 (license license:gpl2+)))
2274 (define-public sendmail
2282 "ftp://ftp.sendmail.org/pub/sendmail/sendmail."
2286 "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94"))))
2287 (build-system gnu-build-system)
2290 (modify-phases %standard-phases
2291 (add-before 'build 'replace-/bin/sh
2295 (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio"
2296 "contrib/mmuegel" "devtools/bin/configure.sh")
2297 (find-files "." ".*\\.m4")
2298 (find-files "." ".*\\.cf"))
2299 (("/bin/sh") (which "sh")))
2301 (substitute* "devtools/bin/Build"
2302 (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh"))))
2307 ;; Render harmless any attempts to chown or chgrp
2308 (substitute* "devtools/bin/install.sh"
2309 (("owner=\\$2") "owner=''")
2310 (("group=\\$2") "group=''"))
2312 (with-output-to-file "devtools/Site/site.config.m4"
2315 define(`confCC', `gcc')
2316 define(`confOPTIMIZE', `-g -O2')
2317 define(`confLIBS', `-lresolv')
2318 define(`confINSTALL', `~a/devtools/bin/install.sh')
2319 define(`confDEPEND_TYPE', `CC-M')
2320 define(`confINST_DEP', `')
2325 (invoke "sh" "Build")
2326 (with-directory-excursion "cf/cf"
2327 (copy-file "generic-linux.mc" "sendmail.mc")
2328 (invoke "sh" "Build" "sendmail.cf"))
2330 (add-before 'install 'pre-install
2332 (let ((out (assoc-ref %outputs "out")))
2333 (mkdir-p (string-append out "/usr/bin"))
2334 (mkdir-p (string-append out "/usr/sbin"))
2335 (mkdir-p (string-append out "/etc/mail"))
2336 (setenv "DESTDIR" out)
2337 (with-directory-excursion "cf/cf"
2338 (invoke "sh" "Build" "install-cf"))
2340 ;; There is no make check. There are some post installation tests, but those
2341 ;; require root privileges
2346 (home-page "http://sendmail.org")
2348 "Highly configurable Mail Transfer Agent (MTA)")
2350 "Sendmail is a mail transfer agent (MTA) originally developed by Eric
2351 Allman. It is highly configurable and supports many delivery methods and many
2352 transfer protocols.")
2353 (license (license:non-copyleft "file://LICENSE"
2354 "See LICENSE in the distribution."))))
2356 (define-public opensmtpd
2363 (uri (string-append "https://www.opensmtpd.org/archives/"
2364 "opensmtpd-" version ".tar.gz"))
2366 (base32 "1jh8vxfajm1mvp1v5yh6llrhjzv0n9fgab88mlwllwqynhcfjy3l"))))
2367 (build-system gnu-build-system)
2371 ("libevent" ,libevent)
2372 ("libressl" ,libressl) ; recommended, and supports e.g. ECDSA
2373 ("linux-pam" ,linux-pam)
2377 ("groff" ,groff))) ; for man pages
2380 (list "--localstatedir=/var"
2381 ;; This is the default only if it exists at build time—it doesn't.
2382 "--with-path-socket=/var/run"
2383 "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt"
2384 "--with-user-smtpd=smtpd"
2385 "--with-user-queue=smtpq" "--with-group-queue=smtpq"
2389 (modify-phases %standard-phases
2390 ;; See: https://github.com/OpenSMTPD/OpenSMTPD/issues/1069.
2391 (add-after 'unpack 'fix-smtpctl-encrypt-bug
2393 (substitute* "smtpd/smtpctl.c"
2394 (("\"encrypt\", \"--\",")
2397 ;; Fix some incorrectly hard-coded external tool file names.
2398 (add-after 'unpack 'patch-FHS-file-names
2400 (substitute* "smtpd/smtpctl.c"
2401 ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't.
2402 (("/bin/cat") (which "cat")))
2403 (substitute* "smtpd/mda_unpriv.c"
2404 (("/bin/sh") (which "sh")))
2406 ;; OpenSMTPD provides a single smtpctl utility to control both the
2407 ;; daemon and the local submission subsystem. To accomodate systems
2408 ;; that require historical interfaces such as sendmail, newaliases or
2409 ;; makemap, smtpctl operates in compatibility mode if called with the
2411 (add-after 'install 'install-compability-links
2412 (lambda* (#:key outputs #:allow-other-keys)
2413 (let* ((out (assoc-ref outputs "out"))
2414 (sbin (string-append out "/sbin/")))
2415 (for-each (lambda (command)
2416 (symlink "smtpctl" (string-append sbin command)))
2417 (list "mailq" "makemap" "newaliases"
2418 "send-mail" "sendmail")))
2420 (synopsis "Lightweight SMTP daemon")
2422 "OpenSMTPD is an implementation of server-side @acronym{SMTP, Simple Mail
2423 Transfer Protocol}, with some additional standard extensions. It allows
2424 ordinary machines to exchange e-mails with other systems speaking the SMTP
2425 protocol, or to deliver them to local users.
2427 In order to simplify the use of SMTP, OpenSMTPD implements a smaller set of
2428 functionality than those available in other SMTP daemons. The objective is to
2429 provide enough features to satisfy typical usage at the risk of unsuitability
2430 to esoteric or niche requirements.")
2431 (home-page "https://www.opensmtpd.org")
2432 (license (list license:bsd-2 license:bsd-3 license:bsd-4
2433 (license:non-copyleft "file://COPYING")
2434 license:public-domain license:isc license:openssl))))
2436 (define-public opensmtpd-extras
2438 (name "opensmtpd-extras")
2442 (uri (string-append "https://www.opensmtpd.org/archives/"
2443 "opensmtpd-extras-" version ".tar.gz"))
2446 "1b1mx71bvmv92lbm08wr2p60g3qhikvv3n15zsr6dcwbk9aqahzq"))))
2447 (build-system gnu-build-system)
2449 `(("pkg-config" ,pkg-config)))
2451 `(("libressl" ,libressl)
2452 ("libevent" ,libevent)
2454 ("opensmtpd" ,opensmtpd)
2455 ("postgresql" ,postgresql)
2456 ("python" ,python-2)
2457 ("sqlite" ,sqlite)))
2460 (list "--sysconfdir=/etc"
2461 "--localstatedir=/var"
2464 "--with-queue-python"
2469 "--with-table-mysql"
2470 "--with-table-postgres"
2471 ;; "--with-table-redis" ; TODO: package hiredis
2472 "--with-table-socketmap"
2473 "--with-table-passwd"
2474 "--with-table-python"
2475 "--with-table-sqlite"
2478 "--with-scheduler-ram"
2479 "--with-scheduler-stub"
2480 "--with-scheduler-python"
2482 "--with-user-smtpd=smtpd"
2484 ;; We have to configure it like this because the default checks for
2485 ;; for example Python in /usr/{,local/}bin and fails otherwise.
2486 (string-append "--with-python="
2487 (assoc-ref %build-inputs "python")))))
2488 (home-page "https://www.opensmtpd.org")
2489 (synopsis "Extra tables, filters, and various other addons for OpenSMTPD")
2491 "This package provides extra tables, filters, and various other addons
2492 for OpenSMTPD to extend its functionality.")
2493 (license (list license:bsd-2 license:bsd-3 ; openbsd-compat
2494 license:isc)))) ; everything else
2496 (define-public mailman
2503 (uri (pypi-uri "mailman" version))
2506 "0idfiv48jjgc0jq4731094ddhraqq8bxnwmjk6sg5ask0jss9kxq"))))
2507 (build-system python-build-system)
2509 `(("gunicorn" ,gunicorn)
2510 ("python-aiosmtpd" ,python-aiosmtpd)
2511 ("python-alembic" ,python-alembic)
2512 ("python-atpublic" ,python-atpublic)
2513 ("python-authheaders" ,python-authheaders)
2514 ("python-authres" ,python-authres)
2515 ("python-click" ,python-click)
2516 ("python-dateutil" ,python-dateutil)
2517 ("python-dnspython" ,python-dnspython)
2518 ("python-falcon" ,python-falcon)
2519 ("python-flufl-bounce" ,python-flufl-bounce)
2520 ("python-flufl-i18n" ,python-flufl-i18n)
2521 ("python-flufl-lock" ,python-flufl-lock)
2522 ("python-importlib-resources" ,python-importlib-resources)
2523 ("python-lazr-config" ,python-lazr-config)
2524 ("python-passlib" ,python-passlib)
2525 ("python-requests" ,python-requests)
2526 ("python-sqlalchemy" ,python-sqlalchemy)
2527 ("python-zope-component" ,python-zope-component)
2528 ("python-zope-configuration" ,python-zope-configuration)
2529 ("python-zope-event" ,python-zope-event)
2530 ("python-zope-interface" ,python-zope-interface)))
2532 `(("python-nose" ,python-nose)))
2533 (home-page "https://www.list.org")
2534 (synopsis "Mailing list manager")
2536 "GNU Mailman is software for managing email discussion and mailing
2537 lists. Both users and administrators generally perform their actions in a
2538 web interface, although email and command-line interfaces are also provided.
2539 The system features built-in archiving, automatic bounce processing, content
2540 filtering, digest delivery, and more.")
2541 (license license:gpl3+)))
2543 (define-public python-mailmanclient
2545 (name "python-mailmanclient")
2550 (uri (pypi-uri "mailmanclient" version))
2553 "0pjgzpvhdb6ql8asb20xr8d01m646zpghmcp9fmscks0n1k4di4g"))))
2554 (build-system python-build-system)
2556 `(#:tests? #f)) ; Requires mailman running
2558 `(("python-requests" ,python-requests)))
2560 ; `(("mailman" ,mailman)
2561 ; ("python-falcon" ,python-falcon)
2562 ; ("python-pytest" ,python-pytest)
2563 ; ("python-pytest-services" ,python-pytest-services)))
2564 (home-page "https://www.list.org/")
2565 (synopsis "Python bindings for the Mailman 3 REST API")
2567 "The mailmanclient library provides official Python bindings for
2568 the GNU Mailman 3 REST API.")
2569 (properties `((python2-variant . ,(delay python2-mailmanclient))))
2570 (license license:lgpl3+)))
2572 ;; This is the last version which supports Python-2.
2573 (define-public python2-mailmanclient
2574 (let ((base (package-with-python2
2575 (strip-python2-variant python-mailmanclient))))
2582 (uri (pypi-uri "mailmanclient" version))
2585 "0fdfs5g3pf30v2i7w18pdkv9xnfxmfcv66mzv56dck0a1igq07m3"))))
2587 `(("python2-six" ,python2-six)
2588 ("python2-httplib2" ,python2-httplib2))))))
2590 (define-public mlmmj
2597 (uri (string-append "http://mlmmj.org/releases/mlmmj-"
2598 version ".tar.bz2"))
2601 "0hpj10qad821ci11si8xc2qnmkzfn90y13s43fm4fca38f0qjp8w"))))
2602 (build-system gnu-build-system)
2604 `(("perl" ,perl))) ; For "contrib/web/"
2606 `(("pkg-config" ,pkg-config)))
2609 ;; mlmmj-receive-strip is a replacement for mlmmj-receive
2610 ;; It opens the files control/mimedeny and control/mimestrip to get a list
2611 ;; of mimetypes for parts of multipart/mime messages that should be denied
2612 ;; or stripped. The parts then get stripped directly when the mail is
2613 ;; received. mlmmj-receive-strip also appends an extra header
2614 ;; X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted
2616 (list "--enable-receive-strip")
2618 (modify-phases %standard-phases
2619 (add-before 'install 'install-contrib
2620 (lambda* (#:key outputs #:allow-other-keys)
2621 (let* ((out (assoc-ref outputs "out"))
2622 (share (string-append out "/share/mlmmj"))
2623 (contrib (string-append share "/contrib/web"))
2624 (texts (string-append share "/listtexts")))
2625 (copy-recursively "contrib/web/" contrib)
2626 (copy-recursively "listtexts" texts)
2627 (rename-file texts (string-append share "/texts"))
2629 (home-page "http://mlmmj.org")
2630 (synopsis "Mailing list managing made joyful")
2632 "Mlmmj is a simple and slim mailing list manager (MLM) inspired by ezmlm.
2633 It works with many different Mail Transport Agents (MTAs) and is simple for a
2634 system administrator to install, configure and integrate with other software.
2635 As it uses very few resources, and requires no daemons, it is ideal for
2636 installation on systems where resources are limited. Its features include:
2638 @item Archive, Custom headers / footer,
2639 @item Fully automated bounce handling (similar to ezmlm),
2640 @item Complete requeueing functionality, Moderation functionality, Subject prefix,
2641 @item Subscribers only posting, Regular expression access control,
2642 @item Functionality to retrieve old posts, Web interface, Digests,
2643 @item No-mail subscription, VERP support,
2644 @item Delivery Status Notification (RFC1891) support,
2645 @item Rich and customisable texts for automated operations.
2647 (license license:expat)))
2649 (define-public python-django-mailman3
2651 (name "python-django-mailman3")
2656 (uri (pypi-uri "django-mailman3" version))
2659 "1yrm7wpjy34xai72vn2vkhc9131cdrbqy08rrabf36kynj5vcdvy"))))
2660 (build-system python-build-system)
2663 (modify-phases %standard-phases
2666 (setenv "DJANGO_SETTINGS_MODULE"
2667 "django_mailman3.tests.settings_test")
2668 (invoke "django-admin" "test"
2669 "--pythonpath=."))))))
2671 `(("python-django" ,python-django)
2672 ("python-django-allauth" ,python-django-allauth)
2673 ("python-django-gravatar2" ,python-django-gravatar2)
2674 ("python-mailmanclient" ,python-mailmanclient)
2675 ("python-pytz" ,python-pytz)))
2677 `(("python-mock" ,python-mock)))
2678 (home-page "https://gitlab.com/mailman/django-mailman3")
2679 (synopsis "Django library to help interaction with Mailman")
2681 "This package contains libraries and templates for Django-based interfaces
2682 interacting with Mailman.")
2683 (properties `((python2-variant . ,(delay python2-django-mailman3))))
2684 (license license:gpl3+)))
2686 ;; This is the last version to support Python-2.
2687 (define-public python2-django-mailman3
2689 (name "python2-django-mailman3")
2694 (uri (pypi-uri "django-mailman3" version))
2697 "1xjdkgfjwhgyrp5nxw65dcpcsr98ygj6856sp0bwkrmyxpd1xxk2"))))
2698 (build-system python-build-system)
2701 (modify-phases %standard-phases
2704 (invoke "django-admin"
2706 "--settings=django_mailman3.tests.settings_test"
2707 "django_mailman3"))))
2708 #:python ,python-2))
2710 `(("python2-django" ,python2-django)))
2712 `(("python2-requests" ,python2-requests)
2713 ("python2-requests-oauthlib" ,python2-requests-oauthlib)
2714 ("python2-openid" ,python2-openid)
2715 ("python2-mailmanclient" ,python2-mailmanclient)
2716 ("python2-django-allauth" ,python2-django-allauth)
2717 ("python2-django-gravatar2" ,python2-django-gravatar2)
2718 ("python2-pytz" ,python2-pytz)))
2719 (home-page "https://gitlab.com/mailman/django-mailman3")
2720 (synopsis "Django library for Mailman UIs")
2722 "Libraries and templates for Django-based interfaces
2723 interacting with Mailman.")
2724 (license license:gpl3+)))
2726 (define-public python-mailman-hyperkitty
2728 (name "python-mailman-hyperkitty")
2733 (uri (pypi-uri "mailman-hyperkitty" version))
2736 "1lfqa9admhvdv71f528jmz2wl0i5cv77v6l64px2pm4zqr9ckkjx"))
2740 ;; see: https://gitlab.com/mailman/mailman-hyperkitty/issues/17
2741 ;; fixes test_archive_message_unserializable
2743 (uri "https://salsa.debian.org/mailman-team/mailman-hyperkitty/raw/debian/1.1.0-9/debian/patches/0002-Skip-the-test_archive_message_unserializable.patch")
2746 "0p1fwm46c4bl81lvsg3kjhn2r1lwgkpgxamb3xyqn7h9qdrw10hw")))))))
2747 (build-system python-build-system)
2749 `(("python-requests" ,python-requests)
2750 ("python-zope-interface" ,python-zope-interface)))
2752 `(("mailman" ,mailman)))
2754 `(("python-mock" ,python-mock)
2755 ("python-nose" ,python-nose)
2756 ("python-nose2" ,python-nose2)))
2757 (home-page "https://gitlab.com/mailman/mailman-hyperkitty/")
2758 (synopsis "Mailman archiver plugin for HyperKitty")
2760 "Mailman3 allows emails sent to its mailing lists to be archived by any
2761 software provided that there is a plugin (loadable by Mailman3) designed to
2762 communicate with it properly. This module contains a Mailman3 archiver plugin
2763 which sends emails to HyperKitty, the official Mailman3 web archiver.")
2764 (license license:gpl3+)))
2766 (define-public python-hyperkitty
2768 (name "python-hyperkitty")
2773 (uri (pypi-uri "HyperKitty" version))
2776 "0p85r9q6mn5as5b39xp9hkkipnk0156acx540n2ygk3qb3jd4a5n"))))
2777 (build-system python-build-system)
2780 (modify-phases %standard-phases
2783 ;; It is unclear why this test fails.
2784 (substitute* "hyperkitty/tests/commands/test_import.py"
2785 (("def test_bad_content_type_part_two")
2786 "@SkipTest\n def test_bad_content_type_part_two"))
2787 (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
2788 (invoke "example_project/manage.py" "test"
2789 "--settings=hyperkitty.tests.settings_test"))))))
2791 `(("python-dateutil" ,python-dateutil)
2792 ("python-django" ,python-django)
2793 ("python-django-compressor" ,python-django-compressor)
2794 ("python-django-extensions" ,python-django-extensions)
2795 ("python-django-gravatar2" ,python-django-gravatar2)
2796 ("python-django-haystack" ,python-django-haystack)
2797 ("python-django-mailman3" ,python-django-mailman3)
2798 ("python-django-q" ,python-django-q)
2799 ("python-djangorestframework" ,python-djangorestframework)
2800 ("python-flufl-lock" ,python-flufl-lock)
2801 ("python-mailmanclient" ,python-mailmanclient)
2802 ("python-networkx" ,python-networkx)
2803 ("python-pytz" ,python-pytz)
2804 ("python-robot-detection" ,python-robot-detection)))
2806 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2807 ("python-elasticsearch" ,python-elasticsearch)
2808 ("python-isort" ,python-isort)
2809 ("python-mock" ,python-mock)
2810 ("python-whoosh" ,python-whoosh)))
2811 (home-page "https://gitlab.com/mailman/hyperkitty")
2812 (synopsis "Web interface to access GNU Mailman v3 archives")
2814 "The hyperkitty Django app provides a web user interface to access GNU
2815 Mailman3 archives, and manage it. This interface uses django, and requires
2816 some configuration.")
2817 (license license:gpl3))) ; Some files are gpl2+
2819 (define-public postorius
2826 (uri (pypi-uri "postorius" version))
2829 "08jn23gblbkfl09qlykbpsmp39mmach3sl69h1j5cd5kkx839rwa"))))
2830 (build-system python-build-system)
2833 (modify-phases %standard-phases
2835 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
2836 (add-installed-pythonpath inputs outputs)
2838 (invoke "python" "example_project/manage.py" "test"
2839 "--settings=test_settings" "postorius")
2841 #:tests? #f)) ; Tests try to run a mailman instance to test against.
2843 `(("python-django" ,python-django)
2844 ("python-django-mailman3" ,python-django-mailman3)
2845 ("python-mailmanclient" ,python-mailmanclient)
2846 ("python-readme-renderer" ,python-readme-renderer)))
2848 `(("python-beautifulsoup4" ,python-beautifulsoup4)
2849 ("python-isort" ,python-isort)
2850 ("python-mock" ,python-mock)
2851 ("python-vcrpy" ,python-vcrpy)))
2852 (home-page "https://gitlab.com/mailman/postorius")
2853 (synopsis "Web user interface for GNU Mailman")
2855 "Postorius is a Django app which provides a web user interface
2856 to access GNU Mailman.")
2857 (license (list license:gpl3+ license:lgpl3+))))
2859 (define-public blists
2866 (uri (string-append "http://download.openwall.net/pub/projects/"
2867 "blists/blists-" version ".tar.gz"))
2870 "1xll5wn7py3bbncbwrj172f56nz75c9gwfsa80rwd96ss9gfmp3c"))))
2871 (build-system gnu-build-system)
2873 `(#:tests? #f ; No tests
2875 (modify-phases %standard-phases
2878 (lambda* (#:key outputs #:allow-other-keys)
2879 (let* ((out (assoc-ref outputs "out"))
2880 (bin (string-append out "/bin")))
2881 (install-file "bindex" bin)
2882 (install-file "bit" bin)
2884 (home-page "http://www.openwall.com/blists/")
2885 (synopsis "Web interface to mailing list archives")
2887 "Blists is a web interface to mailing list archives that works off
2888 indexed mbox files. There are two programs: @code{bindex} and @code{bit}.
2889 @code{bindex} generates or updates the index file (incremental updates
2890 are supported). @code{bit} is a CGI/SSI program that generates web pages
2891 on the fly. Both programs are written in C and are very fast.")
2892 (license license:expat)))
2894 (define-public swaks
2897 (version "20190914.0")
2902 "https://jetmore.org/john/code/swaks/files/swaks-"
2906 "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp"))))
2907 (build-system perl-build-system)
2909 `(("perl-net-dns" ,perl-net-dns)
2910 ("perl-net-ssleay" ,perl-net-ssleay)))
2912 `(#:tests? #f ; No tests
2914 (modify-phases %standard-phases
2918 (invoke "pod2man" "doc/ref.pod" "swaks.1")))
2920 (lambda* (#:key outputs #:allow-other-keys)
2921 (let ((out (assoc-ref outputs "out")))
2922 (install-file "swaks" (string-append out "/bin"))
2923 (install-file "swaks.1" (string-append out "/share/man/man1")))
2925 (add-after 'install 'wrap-program
2926 (lambda* (#:key outputs #:allow-other-keys)
2927 (wrap-program (string-append (assoc-ref outputs "out")
2929 `("PERL5LIB" ":" = (,(getenv "PERL5LIB"))))
2931 (home-page "https://jetmore.org/john/code/swaks/")
2932 (synopsis "Featureful SMTP test tool")
2933 (description "Swaks is a flexible, scriptable, transaction-oriented SMTP
2934 test tool. It handles SMTP features and extensions such as TLS,
2935 authentication, and pipelining; multiple versions of the SMTP protocol
2936 including SMTP, ESMTP, and LMTP; and multiple transport methods including
2937 unix-domain sockets, internet-domain sockets, and pipes to spawned processes.
2938 Options can be specified in environment variables, configuration files, and
2939 the command line allowing maximum configurability and ease of use for
2940 operators and scripters.")
2941 (license license:gpl2+)))
2943 (define-public alpine
2950 ;; There are two versions: the plain continuation of Alpine without extra
2951 ;; patches and the version which adds extra fixes. Every distro uses
2952 ;; the patched version, and so do we to not break expectations.
2953 ;; http://alpine.freeiz.com/alpine/readme/README.patches
2955 (url "http://repo.or.cz/alpine.git")
2956 (commit (string-append "v" version))))
2957 (file-name (git-file-name name version))
2959 (base32 "16ldmmcymrnpnbfc1kb2rhac7nzlc87wjawic4wfinkphd124d1y"))
2960 (modules '((guix build utils)))
2963 ;; Remove pre-built binaries scattered across the source repository.
2964 (for-each delete-file (find-files "." "\\.(dll|exe)"))
2966 (build-system gnu-build-system)
2969 (list (string-append "CC=" ,(cc-for-target)))
2970 #:configure-flags (list (string-append "--with-ssl-include-dir="
2971 (assoc-ref %build-inputs "openssl")
2973 (string-append "--with-ssl-dir="
2974 (assoc-ref %build-inputs "openssl"))
2975 (string-append "--with-ssl-certs-dir="
2977 (string-append "--with-ssl-lib-dir="
2978 (assoc-ref %build-inputs "openssl")
2980 (string-append "--with-interactive-spellcheck="
2981 (assoc-ref %build-inputs "aspell")
2983 "--with-date-stamp=Thu 1 Jan 01:00:01 CET 1970")
2985 (modify-phases %standard-phases
2986 (add-after 'unpack 'assume-shadow-passwords
2987 ;; Alpine's configure script confuses ‘shadow password support’ with
2988 ;; ‘/etc/shadow exists in the build environment’. It does not.
2990 (substitute* "configure"
2991 (("test -f /etc/shadow") "true"))
2993 (add-after 'unpack 'make-reproducible
2995 ;; This removes time-dependent code to make alpine reproducible.
2996 (substitute* "pico/blddate.c"
2997 (("%02d-%s-%d") "1970-01-01"))
3000 `(("ncurses" ,ncurses)
3001 ("openssl" ,openssl)
3003 ("openldap" ,openldap)
3004 ("cyrus-sasl" ,cyrus-sasl)
3005 ("mit-krb5" ,mit-krb5)
3008 ("linux-pam" ,linux-pam)))
3009 (home-page "https://repo.or.cz/alpine.git")
3010 (synopsis "Alternatively Licensed Program for Internet News and Email")
3012 "Alpine is a text-based mail and news client. Alpine includes several
3013 tools and applications:
3015 @item alpine, the Alpine mailer
3016 @item pico, the standalone text editor, GNU nano's predecessor
3017 @item pilot, the standalone file system navigator
3019 (license license:asl2.0)))
3021 (define-public balsa
3028 (uri (string-append "https://pawsa.fedorapeople.org/balsa/"
3029 "balsa-" version ".tar.bz2"))
3031 (base32 "1xkxx801p7sbfkn0bh3cz85wra4xf1z1zhjqqc80z1z1nln7fhb4"))))
3032 (build-system gnu-build-system)
3035 '(;; Balsa tries to install additional MIME icons
3036 ;; under gtk+ directory.
3037 "--enable-extra-mimeicons=no"
3038 "--with-gtksourceview"
3040 "--with-spell-checker=gtkspell"
3046 `(("cyrus-sasl" ,cyrus-sasl)
3047 ("enchant" ,enchant)
3048 ("gdk-pixbuf" ,gdk-pixbuf)
3053 ("gtksourceview" ,gtksourceview-3)
3054 ("gtkspell3" ,gtkspell3)
3055 ("libcanberra" ,libcanberra)
3056 ("libesmtp" ,libesmtp)
3057 ("libical" ,libical)
3058 ("libnotify" ,libnotify)
3059 ("libsecret" ,libsecret)
3060 ("openldap" ,openldap)
3062 ("webkitgtk" ,webkitgtk)))
3064 `(("compface" ,compface)
3065 ("glib" ,glib "bin")
3066 ("intltool" ,intltool)
3067 ("pkg-config" ,pkg-config)
3068 ("yelp-tools" ,yelp-tools)))
3069 (home-page "https://pawsa.fedorapeople.org/balsa")
3070 (synopsis "E-mail client for GNOME")
3071 (description "Balsa is a highly configurable and robust mail client for
3072 the GNOME desktop. It supports both POP3 and IMAP servers as well as the
3073 mbox, maildir and mh local mailbox formats. Balsa also supports SMTP and/or
3074 the use of a local MTA such as Sendmail.")
3075 (license license:gpl3+)))
3084 (uri (pypi-uri "afew" version))
3087 "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r"))))
3088 (build-system python-build-system)
3090 `(("python-chardet" ,python-chardet)
3091 ("python-notmuch" ,python-notmuch)))
3093 `(("python-setuptools-scm" ,python-setuptools-scm)))
3094 (home-page "https://github.com/afewmail/afew")
3095 (synopsis "Initial tagging script for notmuch mail")
3096 (description "afew is an initial tagging script for notmuch mail. It
3097 provides automatic tagging each time new mail is registered with notmuch. It
3098 can add tags based on email headers or Maildir folders and can handle spam and
3100 (license license:isc)))
3109 (uri (string-append "http://pan.rebelbase.com/download/releases/"
3110 version "/source/" name "-" version ".tar.bz2"))
3112 (base32 "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55"))))
3114 `(#:configure-flags '("--with-gtk3" "--with-gtkspell" "--with-gnutls"
3115 "--enable-libnotify" "--enable-manual"
3118 (modify-phases %standard-phases
3119 (add-before 'configure 'patch-gpg2
3120 (lambda* (#:key inputs #:allow-other-keys)
3121 (substitute* "pan/usenet-utils/gpg.cc"
3122 (("\"gpg2\"") (string-append "\""
3123 (assoc-ref inputs "gnupg")
3127 `(("gmime" ,gmime-2.6)
3131 ("gtkspell3" ,gtkspell3)
3132 ("libnotify" ,libnotify)
3133 ("libsecret" ,libsecret)
3134 ("libxml2" ,libxml2)
3137 `(("gettext-minimal" ,gettext-minimal)
3138 ("itstool" ,itstool)
3139 ("pkg-config" ,pkg-config)))
3140 (build-system gnu-build-system)
3141 (home-page "http://pan.rebelbase.com/")
3142 (synopsis "Pan newsreader")
3143 (description "@code{pan} is a Usenet newsreader that's good at both text
3144 and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB,
3145 PGP handling, multiple servers, and secure connections.")
3146 ;; License of the docs: fdl-1.1; Others: gpl2.
3147 (license (list license:fdl1.1+ license:gpl2))))
3149 (define-public imapfilter
3157 (url "https://github.com/lefcha/imapfilter")
3158 (commit (string-append "v" version))))
3159 (file-name (git-file-name name version))
3161 (base32 "0f65sg6hhv6778fxwsz4hvarbm97dsb8jj0mg7a9qs273r35pqck"))))
3162 (build-system gnu-build-system)
3166 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
3169 (modify-phases %standard-phases
3170 (delete 'configure)))) ; no configure script
3174 ("openssl" ,openssl)))
3175 (home-page "https://github.com/lefcha/imapfilter")
3176 (synopsis "IMAP mail filtering utility")
3177 (description "IMAPFilter is a mail filtering utility. It connects
3178 to remote mail servers using IMAP, sends searching queries to the server and
3179 processes mailboxes based on the results. It can be used to delete, copy,
3180 move, flag, etc. messages residing in mailboxes at the same or different mail
3181 servers. The 4rev1 and 4 versions of IMAP are supported.")
3182 (license license:expat)))
3184 (define-public urlscan
3191 (uri (pypi-uri "urlscan" version))
3193 (base32 "07vcwirap0p4dkqrqblfn1q017slgd8m6qyijvbi3gxnr09pbyx2"))))
3194 (build-system python-build-system)
3196 `(("python-urwid" ,python-urwid)))
3197 (home-page "https://github.com/firecat53/urlscan")
3198 (synopsis "View/select the URLs in an email message or file")
3200 "Urlscan is a small program that is designed to integrate with the
3201 Mutt mail reader to allow you to easily launch a Web browser for URLs
3202 contained in email messages. It parses an email message or file and scans it
3203 for URLs and email addresses. It then displays the URLs and their context
3204 within the message, and allows you to choose one or more URLs to send to your
3205 Web browser. Alternatively, it send a list of all URLs to standard output.
3206 It is a replacement for the @command{urlview} program.")
3207 (license license:gpl2)))
3217 (url "https://github.com/verdammelt/tnef")
3220 (base32 "104g48mcm00bgiyzas2vf86331w7bnw7h3bc11ib4lp7rz6zqfck"))
3221 (file-name (git-file-name name version))))
3222 (build-system gnu-build-system)
3224 `(("autoconf" ,autoconf)
3225 ("automake" ,automake)))
3226 (arguments `(#:parallel-tests? #f)) ;tests are side-effect'y
3227 (home-page "https://github.com/verdammelt/tnef")
3228 (synopsis "Unpack @code{application/ms-tnef} attachments")
3230 "TNEF is a tar-like program that unpacks MIME attachments of type
3231 @code{application/ms-tnef}.")
3232 (license license:gpl2+)))
3235 (let ((commit "5a578328199bab51a147fbadbce12c8d06959ed6")
3239 (version (git-version "0.0.1" revision commit))
3243 (url "https://git.elephly.net/software/mumi.git")
3245 (file-name (git-file-name name version))
3248 "0hngv82gd19l4q7nnbf97r120z1yagsmkp0x3lc8haza5q4mc12c"))))
3249 (build-system gnu-build-system)
3251 `(#:modules ((guix build gnu-build-system)
3252 ((guix build guile-build-system)
3253 #:select (target-guile-effective-version))
3255 #:imported-modules ((guix build guile-build-system)
3256 ,@%gnu-build-system-modules)
3258 #:configure-flags '("--localstatedir=/var")
3261 (modify-phases %standard-phases
3262 (add-after 'install 'wrap-executable
3263 (lambda* (#:key outputs #:allow-other-keys)
3264 (let* ((out (assoc-ref outputs "out"))
3265 (bin (string-append out "/bin"))
3266 (version (target-guile-effective-version))
3267 (scm (string-append out "/share/guile/site/" version))
3268 (go (string-append out "/lib/guile/" version
3270 (wrap-program (string-append bin "/mumi")
3271 `("GUILE_LOAD_PATH" ":" prefix
3272 (,scm ,(getenv "GUILE_LOAD_PATH")))
3273 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3274 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
3277 `(("guile-email" ,guile-email)
3278 ("guile-fibers" ,guile-fibers)
3279 ("guile-gcrypt" ,guile-gcrypt)
3280 ("guile-json" ,guile-json-3)
3281 ("guile-redis" ,guile-redis)
3282 ("guile-syntax-highlight" ,guile-syntax-highlight)
3283 ("guile-webutils" ,guile-webutils)
3284 ("guile-xapian" ,guile-xapian)
3285 ("guile" ,guile-3.0)
3286 ("mailutils" ,mailutils)))
3288 `(("autoconf" ,autoconf)
3289 ("automake" ,automake)
3290 ("pkg-config" ,pkg-config)))
3291 (home-page "https://git.elephly.net/software/mumi.git")
3292 (synopsis "Debbugs web interface")
3293 (description "Mumi is a Debbugs web interface.")
3294 (license license:agpl3+))))
3296 (define-public ytnef
3303 (url "https://github.com/Yeraze/ytnef")
3304 (commit (string-append "v" version))))
3305 (file-name (git-file-name name version))
3308 "07h48s5qf08503pp9kafqbwipdqghiif22ghki7z8j67gyp04l6l"))))
3309 (build-system gnu-build-system)
3311 `(("autoconf" ,autoconf)
3312 ("automake" ,automake)
3313 ("libtool" ,libtool)))
3314 (home-page "https://github.com/Yeraze/ytnef/")
3315 (synopsis "TNEF stream reader for winmail.dat files")
3316 (description "This package provides a TNEF stream reader library and
3317 related tools to process winmail.dat files.")
3318 (license license:gpl2+)))
3320 (define-public public-inbox
3322 (name "public-inbox")
3325 (origin (method git-fetch)
3327 (url "https://public-inbox.org")
3328 (commit (string-append "v" version))))
3331 "03zj7shdl3vibs7k5lr673bwcf8j1xx8is3mjz34ca4cdh6p5j2k"))
3332 (file-name (git-file-name name version))))
3333 (build-system perl-build-system)
3336 (modify-phases %standard-phases
3337 (add-before 'configure 'qualify-paths
3339 ;; Use absolute paths for 'xapian-compact'.
3340 (let ((xapian-compact (which "xapian-compact")))
3341 (substitute* "script/public-inbox-compact"
3342 (("xapian-compact") xapian-compact)))
3344 (add-before 'check 'pre-check
3346 (substitute* "t/spawn.t"
3347 (("\\['env'\\]") (string-append "['" (which "env") "']")))
3348 (substitute* "t/ds-leak.t"
3349 (("/bin/sh") (which "sh")))
3350 (invoke "./certs/create-certs.perl")
3351 ;; XXX: This test fails due to zombie process is not reaped by
3353 (substitute* "t/httpd-unix.t"
3354 (("^SKIP: \\{") "SKIP: { skip('Guix');"))
3356 (add-after 'install 'wrap-programs
3357 (lambda* (#:key inputs outputs #:allow-other-keys)
3358 (let ((out (assoc-ref outputs "out")))
3362 ;; Let those scripts find their perl modules.
3363 `("PERL5LIB" ":" prefix
3364 (,(string-append out "/lib/perl5/site_perl")
3365 ,(getenv "PERL5LIB")))
3366 ;; 'git' is invoked in various files of the PublicInbox
3369 (,(string-append (assoc-ref inputs "git") "/bin")))))
3370 (find-files (string-append out "/bin"))))
3373 `(("xapian" ,xapian)
3376 ("openssl" ,openssl)))
3379 ("perl-dbd-sqlite" ,perl-dbd-sqlite)
3380 ("perl-dbi" ,perl-dbi)
3381 ("perl-email-address-xs" ,perl-email-address-xs)
3382 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
3383 ("perl-email-mime" ,perl-email-mime)
3384 ("perl-email-simple" ,perl-email-simple)
3385 ("perl-net-server" ,perl-net-server)
3386 ("perl-filesys-notify-simple" ,perl-filesys-notify-simple)
3387 ("perl-plack-middleware-deflater" ,perl-plack-middleware-deflater)
3388 ("perl-plack-middleware-reverseproxy" ,perl-plack-middleware-reverseproxy)
3389 ("perl-plack" ,perl-plack)
3390 ("perl-search-xapian" ,perl-search-xapian)
3391 ("perl-timedate" ,perl-timedate)
3392 ("perl-uri-escape" ,perl-uri-escape)
3394 ("perl-ipc-run" ,perl-ipc-run)
3395 ("perl-xml-feed" ,perl-xml-feed)))
3396 (home-page "https://public-inbox.org/README.html")
3397 (synopsis "Archive mailing lists in git repositories")
3399 "public-inbox implements the sharing of an email inbox via git to
3400 complement or replace traditional mailing lists. Readers may read via NNTP,
3401 Atom feeds or HTML archives.")
3402 (license license:agpl3+)))
3404 (define-public sylpheed
3410 (uri (string-append "https://sylpheed.sraoss.jp/sylpheed/v3.7/"
3411 name "-" version ".tar.xz"))
3414 "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd"))))
3415 (build-system gnu-build-system)
3417 `(("pkg-config" ,pkg-config)))
3419 `(("bogofilter" ,bogofilter)
3420 ("compface" ,compface)
3423 ("gtk+-2.0" ,gtk+-2)
3424 ("gtkspell" ,gtkspell3)
3426 ("openldap" ,openldap)
3427 ("openssl" ,openssl)))
3428 (home-page "https://sylpheed.sraoss.jp/en/")
3429 (synopsis "Lightweight GTK+ email client")
3431 "Sylpheed is a simple, lightweight but featureful, and easy-to-use e-mail
3432 client. Sylpheed provides intuitive user-interface. Sylpheed is also
3433 designed for keyboard-oriented operation.")
3434 (license license:gpl2+)))
3436 (define-public python-authres
3438 (name "python-authres")
3443 (uri (pypi-uri "authres" version))
3446 "1dr5zpqnb54h4f5ax8334l1dcp8j9083d7v4vdi1xqkwmnavklck"))))
3447 (build-system python-build-system)
3450 (modify-phases %standard-phases
3452 ;; Run doctests as described in the README.
3454 (invoke "python" "-m" "authres" "-v"))))))
3455 (home-page "https://launchpad.net/authentication-results-python")
3456 (synopsis "Authentication-Results email header creator and parser")
3458 "This Python module can be used to generate and parse RFC 5451/7001/7601
3459 @code{Authentication-Results} email headers. It supports extensions such as:
3461 @item RFC 5617 DKIM/ADSP
3462 @item RFC 6008 DKIM signature identification (@code{header.b})
3463 @item RFC 6212 @acronym{VBR, Vouch By Reference}
3464 @item RFC 6577 @acronym{SPF, Sender Policy Framework}
3465 @item RFC 7281 @code{Authentication-Results} registration for S/MIME
3466 @item RFC 7293 The @code{Require-Recipient-Valid-Since} header field
3467 @item RFC 7489 @acronym{DMARC, Domain-based Message Authentication Reporting
3469 @item @acronym{ARC, Authenticated Received Chain}
3470 (draft-ietf-dmarc-arc-protocol-08)
3472 (license license:asl2.0)))
3474 (define-public python-dkimpy
3476 (name "python-dkimpy")
3481 (uri (pypi-uri "dkimpy" version))
3483 (base32 "088iz5cqjqh4c7141d94pvn13bh25aizqlrifwv6fs5g16zj094s"))))
3484 (build-system python-build-system)
3487 (modify-phases %standard-phases
3488 (add-after 'patch-source-shebangs 'patch-more-source
3489 (lambda* (#:key inputs #:allow-other-keys)
3490 (let ((openssl (assoc-ref inputs "openssl")))
3491 (substitute* "dkim/dknewkey.py"
3492 (("/usr/bin/openssl") (string-append openssl "/bin/openssl"))))
3496 (invoke "python" "test.py"))))))
3498 `(("python-dnspython" ,python-dnspython)))
3500 `(("python-authres" ,python-authres)
3501 ("python-pynacl" ,python-pynacl)))
3503 `(("openssl" ,openssl)))
3504 (home-page "https://launchpad.net/dkimpy")
3505 (synopsis "DKIM (DomainKeys Identified Mail)")
3506 (description "Python module that implements @dfn{DKIM} (DomainKeys
3507 Identified Mail) email signing and verification (RFC6376). It also provides
3508 helper scripts for command line signing and verification. It supports DKIM
3509 signing/verifying of ed25519-sha256 signatures (RFC 8463). It also supports
3510 the RFC 8617 Authenticated Received Chain (ARC) protocol.")
3511 (license license:bsd-3)))
3513 (define-public python-authheaders
3515 (name "python-authheaders")
3520 (uri (pypi-uri "authheaders" version))
3523 "14k6i72k5f8dyvps8vc0aq0cczc8lvqpgjfjzsy6qqychjvjcmwk"))))
3524 (build-system python-build-system)
3526 `(("python-authres" ,python-authres)
3527 ("python-dkimpy" ,python-dkimpy)
3528 ("python-dnspython" ,python-dnspython)
3529 ("python-publicsuffix2" ,python-publicsuffix2)))
3530 (home-page "https://github.com/ValiMail/authentication-headers")
3531 (synopsis "Library wrapping email authentication header verification and generation")
3533 "This is a Python library for the generation of email authentication
3534 headers. The library can perform DKIM, SPF, and DMARC validation, and the
3535 results are packaged into the Authentication-Results header. The library can
3536 DKIM and ARC sign messages and output the corresponding signature headers.")
3537 ;; The package's metadata claims it were MIT licensed, but the source file
3538 ;; headers disagree. MPL-2 for the public suffix list.
3539 (license (list license:zpl2.1 license:zlib license:mpl2.0))))
3541 (define-public python-aiosmtpd
3543 (name "python-aiosmtpd")
3549 (url "https://github.com/aio-libs/aiosmtpd")
3552 (base32 "14c30dm6jzxiblnsah53fdv68vqhxwvb9x0aq9bc4vcdas747vr7"))
3553 (file-name (git-file-name name version))))
3554 (build-system python-build-system)
3557 (modify-phases %standard-phases
3558 (add-after 'unpack 'delete-failing-tests
3560 ;; This test uses an expired certificate.
3561 (delete-file "aiosmtpd/tests/test_smtps.py")
3565 (invoke "python" "-m" "nose2" "-v"))))))
3567 `(("python-flufl-testing" ,python-flufl-testing)
3568 ("python-nose2" ,python-nose2)))
3570 `(("python-atpublic" ,python-atpublic)))
3571 (home-page "https://aiosmtpd.readthedocs.io/")
3572 (synopsis "Asyncio based SMTP server")
3574 "This project is a reimplementation of the Python stdlib @code{smtpd.py}
3576 (license (list license:asl2.0
3577 license:lgpl3)))) ; only for setup_helpers.py