1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
5 ;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com>
6 ;;; Copyright © 2014, 2019 Julien Lepiller <julien@lepiller.eu>
7 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
8 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
9 ;;; Copyright © 2015, 2016, 2018 Eric Bavier <bavier@member.fsf.org>
10 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
11 ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
12 ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
13 ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
14 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
15 ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
16 ;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
17 ;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Clément Lassieur <clement@lassieur.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Arun Isaac <arunisaac@systemreboot.net>
21 ;;; Copyright © 2016 John Darrington <jmd@gnu.org>
22 ;;; Copyright © 2016, 2018 Marius Bakke <mbakke@fastmail.com>
23 ;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
24 ;;; Copyright © 2017 Kyle Meyer <kyle@kyleam.com>
25 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
26 ;;; Copyright © 2017, 2018, 2020 Rene Saavedra <pacoon@protonmail.com>
27 ;;; Copyright © 2018, 2019, 2020 Pierre Langlois <pierre.langlois@gmx.com>
28 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
29 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
30 ;;; Copyright © 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
31 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
32 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
33 ;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
34 ;;; Copyright © 2020 Eric Brown <ecbrown@ericcbrown.com>
35 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
37 ;;; This file is part of GNU Guix.
39 ;;; GNU Guix is free software; you can redistribute it and/or modify it
40 ;;; under the terms of the GNU General Public License as published by
41 ;;; the Free Software Foundation; either version 3 of the License, or (at
42 ;;; your option) any later version.
44 ;;; GNU Guix is distributed in the hope that it will be useful, but
45 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
46 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47 ;;; GNU General Public License for more details.
49 ;;; You should have received a copy of the GNU General Public License
50 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
52 (define-module (gnu packages mail)
53 #:use-module (gnu packages)
54 #:use-module (gnu packages admin)
55 #:use-module (gnu packages aspell)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages backup)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bash)
60 #:use-module (gnu packages bison)
61 #:use-module (gnu packages calendar)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages compression)
64 #:use-module (gnu packages crypto)
65 #:use-module (gnu packages curl)
66 #:use-module (gnu packages cyrus-sasl)
67 #:use-module (gnu packages databases)
68 #:use-module (gnu packages dbm)
69 #:use-module (gnu packages dejagnu)
70 #:use-module (gnu packages django)
71 #:use-module (gnu packages dns)
72 #:use-module (gnu packages docbook)
73 #:use-module (gnu packages documentation)
74 #:use-module (gnu packages emacs)
75 #:use-module (gnu packages enchant)
76 #:use-module (gnu packages gdb)
77 #:use-module (gnu packages gettext)
78 #:use-module (gnu packages ghostscript)
79 #:use-module (gnu packages glib)
80 #:use-module (gnu packages gnome)
81 #:use-module (gnu packages gnupg)
82 #:use-module (gnu packages groff)
83 #:use-module (gnu packages gsasl)
84 #:use-module (gnu packages gtk)
85 #:use-module (gnu packages guile)
86 #:use-module (gnu packages guile-xyz)
87 #:use-module (gnu packages flex)
88 #:use-module (gnu packages haskell-xyz)
89 #:use-module (gnu packages kerberos)
90 #:use-module (gnu packages libcanberra)
91 #:use-module (gnu packages libevent)
92 #:use-module (gnu packages libidn)
93 #:use-module (gnu packages libunistring)
94 #:use-module (gnu packages libunwind)
95 #:use-module (gnu packages linux)
96 #:use-module (gnu packages lsof)
97 #:use-module (gnu packages lua)
98 #:use-module (gnu packages m4)
99 #:use-module (gnu packages man)
100 #:use-module (gnu packages ncurses)
101 #:use-module (gnu packages networking)
102 #:use-module (gnu packages openldap)
103 #:use-module (gnu packages onc-rpc)
104 #:use-module (gnu packages pcre)
105 #:use-module (gnu packages perl)
106 #:use-module (gnu packages perl-check)
107 #:use-module (gnu packages perl-web)
108 #:use-module (gnu packages pkg-config)
109 #:use-module (gnu packages python)
110 #:use-module (gnu packages python-web)
111 #:use-module (gnu packages python-xyz)
112 #:use-module (gnu packages readline)
113 #:use-module (gnu packages ruby)
114 #:use-module (gnu packages search)
115 #:use-module (gnu packages serialization)
116 #:use-module (gnu packages samba)
117 #:use-module (gnu packages screen)
118 #:use-module (gnu packages sphinx)
119 #:use-module (gnu packages sqlite)
120 #:use-module (gnu packages tcl)
121 #:use-module (gnu packages texinfo)
122 #:use-module (gnu packages time)
123 #:use-module (gnu packages tls)
124 #:use-module (gnu packages version-control)
125 #:use-module (gnu packages w3m)
126 #:use-module (gnu packages web)
127 #:use-module (gnu packages webkit)
128 #:use-module (gnu packages xdisorg)
129 #:use-module (gnu packages xorg)
130 #:use-module (gnu packages xml)
131 #:use-module ((guix licenses)
134 gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+
135 non-copyleft (expat . license:expat) bsd-3
136 public-domain bsd-4 isc (openssl . license:openssl)
137 bsd-2 x11-style agpl3 asl2.0 perl-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/")
188 (define-public mailutils
194 (uri (string-append "mirror://gnu/mailutils/mailutils-"
198 "1g1xf2lal04nsnf1iym9n9n0wxjpqbcr9nysxpm98v4pniinqwsz"))))
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 ;; 'frm' tests expect write access to $HOME.
238 (setenv "HOME" (getcwd))
240 ;; Avoid the message "I'm going to create the standard MH path
241 ;; for you", which would lead to one test failure (when diffing
242 ;; stdout of 'fmtcheck'.)
243 (call-with-output-file ".mh_profile"
245 (format port "Path: ~a/Mail-for-tests~%"
249 ;; TODO: Add `--with-sql'.
251 (list "--sysconfdir=/etc"
253 ;; Add "/X.Y" to the installation directory.
254 (string-append "--with-guile-site-dir="
255 (assoc-ref %outputs "out")
257 ,(match (assoc "guile"
258 (package-inputs this-package))
261 (package-version guile))))))
263 #:parallel-tests? #f))
265 `(("perl" ,perl) ;for 'gylwrap'
267 ("dejagnu" ,dejagnu)))
274 ("readline" ,readline)
275 ("linux-pam" ,linux-pam)
279 ;; Required for SEARCH CHARSET.
280 ("libiconv" ,libiconv)
281 ("libunistring" ,libunistring)))
282 (home-page "https://mailutils.org")
283 (synopsis "Utilities and library for reading and serving mail")
285 "GNU Mailutils is a collection of programs for managing, viewing and
286 processing electronic mail. It contains both utilities and server daemons
287 and all operate in a protocol-agnostic way. The underlying libraries are
288 also available, simplifying the addition of mail capabilities to new
291 ;; Libraries are under LGPLv3+, and programs under GPLv3+.
292 (list gpl3+ lgpl3+))))
294 (define-public guile2.2-mailutils
297 (name "guile2.2-mailutils")
299 `(("guile" ,guile-2.2)
300 ,@(alist-delete "guile" (package-inputs mailutils))))))
302 (define-public guile3.0-mailutils
303 (deprecated-package "guile3.0-mailutils" mailutils))
305 (define-public nullmailer
313 (string-append "https://untroubled.org/nullmailer/"
314 "nullmailer-" version ".tar.gz")
315 ;; Previous releases are moved to this subdirectory.
316 (string-append "https://untroubled.org/nullmailer/archive/"
317 "nullmailer-" version ".tar.gz")))
319 (base32 "0md8cf90fl2yf3zh9njjy42a673v4j4ygyq95xg7fzkygdigm1lq"))))
320 (build-system gnu-build-system)
324 "--localstatedir=/var"
327 (modify-phases %standard-phases
328 (add-before 'check 'patch-test-FHS-file-names
330 (with-directory-excursion "test"
331 (substitute* (list "functions.in"
333 ;; Fix some shebangs later generated on the fly.
334 (("/bin/sh") (which "bash"))))
336 (add-before 'check 'pass-PATH-to-tests
337 ;; ‘runtest’ launches each test through ‘env -’, clearing $PATH. The
338 ;; tests then source ‘functions’, which first demands a working $PATH
339 ;; only to clobber it later. Pass our $PATH to the test environment
340 ;; and don't touch it after that.
342 (with-directory-excursion "test"
343 (substitute* "runtests"
345 (string-append "env - PATH=\"" (getenv "PATH") "\" bash")))
346 (substitute* "functions.in"
347 (("export PATH=.*") "")))
349 (add-before 'check 'delete-failing-tests
351 (with-directory-excursion "test/tests"
352 (for-each delete-file
354 ;; XXX ‘nullmailer-inject: nullmailer-queue failed: 15’
356 ;; XXX These require the not-yet-packaged tcpserver.
357 "protocols" "smtp-auth")))
359 (add-before 'install 'skip-install-data-local
360 ;; Don't attempt to install run-time files outside of the store.
362 (substitute* "Makefile"
363 ((" install-data-local") ""))
367 `(("daemontools" ,daemontools))) ; for svc
369 `(("gnutls" ,gnutls)))
370 (home-page "https://untroubled.org/nullmailer/")
371 (synopsis "Simple relay-only mail transfer agent")
373 "Nullmailer is a simple replacement @acronym{MTA, Mail Transfer Agent} for
374 hosts that receive no local mail and only relay mail to a fixed set of smart
375 relays. It's useful for systems such as Web servers that must be able to send
376 email notifications, without having to run a full-blown MTA such as sendmail
379 Nullmailer is designed to be simple to configure, easy to extend, and secure.
380 It requires little ongoing administration. The included @command{sendmail}
381 emulator front-end should allow most (if not all) sendmail-compatible programs
382 to run without any changes.")
383 (license (list lgpl2.1+ ; lib/cli++/ (but some files lack headers)
384 gpl2+)))) ; everything else
386 (define-public fetchmail
393 (uri (string-append "mirror://sourceforge/fetchmail/branch_"
394 (version-major+minor version) "/"
395 "fetchmail-" version ".tar.xz"))
397 (base32 "04b0sq1xad6gs1bfhkbmhsn1kq6y4gsx9l9ywjvd5d0rc15yrvqn"))))
398 (build-system gnu-build-system)
400 `(("openssl" ,openssl)))
403 (list (string-append "--with-ssl="
404 (assoc-ref %build-inputs "openssl")))))
405 (home-page "https://www.fetchmail.info/")
406 (synopsis "Remote-mail retrieval and forwarding utility")
408 "Fetchmail is a full-featured, robust, well-documented remote-mail
409 retrieval and forwarding utility intended to be used over on-demand
410 TCP/IP links (such as SLIP or PPP connections). It supports every
411 remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP,
412 KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6
415 Fetchmail retrieves mail from remote mail servers and forwards it via SMTP,
416 so it can then be read by normal mail user agents such as mutt, elm
417 or BSD Mail. It allows all your system MTA's filtering, forwarding, and
418 aliasing facilities to work just as they would on normal mail.")
419 (license gpl2+))) ; most files are actually public domain or x11
428 (string-append "https://bitbucket.org/mutt/mutt/downloads/"
429 "mutt-" version ".tar.gz")
430 (string-append "http://ftp.mutt.org/pub/mutt/mutt-"
434 "1hykkq3m7kqic5r7vzg45xaww7415fv5i2d03slzykqb47w5d3na"))
435 (patches (search-patches "mutt-store-references.patch"))))
436 (build-system gnu-build-system)
438 `(("cyrus-sasl" ,cyrus-sasl)
447 `(#:configure-flags '("--enable-smtp"
451 "--enable-hcache" ; for header caching
456 "--with-sqlite3" ; required for Autocrypt
457 "--with-idn2" ; recommended for Autocrypt
458 ;; So that mutt does not check whether the path
459 ;; exists, which it does not in the chroot.
460 "--with-mailpath=/var/mail")))
461 (home-page "http://www.mutt.org/")
462 (synopsis "Mail client")
464 "Mutt is a small but very powerful text-based mail client for Unix
468 (define-public neomutt
476 (url "https://github.com/neomutt/neomutt.git")
478 (file-name (git-file-name name version))
480 (base32 "1k4k07l6h5krc3fx928qvdq3ssw9fxn95aj7k885xlckd2i1lnb5"))))
481 (build-system gnu-build-system)
483 `(("cyrus-sasl" ,cyrus-sasl)
488 ("openssl" ,openssl) ; for S/MIME
490 ("kyotocabinet" ,kyotocabinet)
495 ("notmuch" ,notmuch)))
497 `(("automake" ,automake)
498 ("gettext-minimal" ,gettext-minimal)
499 ("pkg-config" ,pkg-config)
500 ("docbook-xsl" ,docbook-xsl)
501 ("docbook-xml" ,docbook-xml-4.2)
505 `(#:test-target "test"
509 ;; Database, implies header caching.
510 "--disable-tokyocabinet"
521 (string-append "--with-sasl="
522 (assoc-ref %build-inputs "cyrus-sasl"))
530 ;; If we do not set this, neomutt wants to check
531 ;; whether the path exists, which it does not
533 "--with-mailpath=/var/mail"
536 (string-append "--with-ncurses="
537 (assoc-ref %build-inputs "ncurses"))
538 (string-append "--prefix="
539 (assoc-ref %outputs "out"))
542 (modify-phases %standard-phases
543 ;; TODO: autosetup is meant to be included in the source,
544 ;; but we should package autosetup and use our own version of it.
546 (lambda* (#:key outputs inputs configure-flags #:allow-other-keys)
547 (let* ((out (assoc-ref outputs "out"))
548 (flags `(,@configure-flags))
549 (bash (which "bash")))
550 (setenv "SHELL" bash)
551 (setenv "CONFIG_SHELL" bash)
553 (string-append (getcwd) "/configure")
555 (home-page "https://neomutt.org/")
556 (synopsis "Command-line mail reader based on Mutt")
558 "NeoMutt is a command-line mail reader which is based on mutt.
559 It adds a large amount of new and improved features to mutt.")
568 (uri (string-append "mirror://gnome/sources/gmime/"
569 (version-major+minor version)
570 "/gmime-" version ".tar.xz"))
573 "0i3xfc84qn1z99i70q68kbnp9rmgqrnprqb418ba52s6g9j9dsia"))))
574 (build-system gnu-build-system)
576 `(("pkg-config" ,pkg-config)
577 ("gnupg" ,gnupg))) ; for tests only
578 (inputs `(("glib" ,glib)
583 (modify-phases %standard-phases
585 'unpack 'patch-paths-in-tests
587 ;; The test programs run several programs using 'system' with
588 ;; hard-coded paths. Here we patch them all.
589 ;; We use ISO-8859-1 here because test-iconv.c contains
590 ;; raw byte sequences in several different encodings.
591 (with-fluids ((%default-port-encoding #f))
592 (substitute* (find-files "tests" "\\.c$")
593 (("(system *\\(\")(/[^ ]*)" all pre prog-path)
594 (let* ((base (basename prog-path))
597 (or prog (error "not found: " base)))))))
599 (home-page "http://spruce.sourceforge.net/gmime/")
600 (synopsis "MIME message parser and creator library")
602 "GMime provides a core library and set of utilities which may be used for
603 the creation and parsing of messages using the Multipurpose Internet Mail
605 (license (list lgpl2.1+ gpl2+ gpl3+))))
607 ;; Some packages are not ready for GMime 3 yet.
608 (define-public gmime-2.6
614 (uri (string-append "mirror://gnome/sources/gmime/"
615 (version-major+minor version)
616 "/gmime-" version ".tar.xz"))
619 "0slzlzcr3h8jikpz5a5amqd0csqh2m40gdk910ws2hnaf5m6hjbi"))))))
621 (define-public bogofilter
628 (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-stable/"
629 "bogofilter-" version ".tar.xz"))
631 (base32 "1sl9xrnnlk2sn8gmibhn8li09vnansjbxb9l1182qmgz7cvs2j1j"))))
632 (build-system gnu-build-system)
635 (modify-phases %standard-phases
636 (add-before 'check 'pre-check
638 (substitute* "src/tests/t.frame"
640 (string-append "GREP=" (which "grep") "\n")))
642 (native-inputs `(("flex" ,flex)))
643 (inputs `(("bdb" ,bdb)))
644 (home-page "https://bogofilter.sourceforge.io/")
645 (synopsis "Mail classifier based on a Bayesian filter")
647 "Bogofilter is a mail filter that classifies mail as spam or ham
648 (non-spam) by a statistical analysis of the message's header and
649 content (body). The program is able to learn from the user's classifications
650 and corrections. It is based on a Bayesian filter.")
653 (define-public offlineimap
660 (url "https://github.com/OfflineIMAP/offlineimap")
661 (commit (string-append "v" version))))
662 (file-name (git-file-name name version))
665 "0h5q5nk2p2vx86w6rrbs7v70h81dpqqr68x6l3klzl3m0yj9agb1"))))
666 (build-system python-build-system)
668 `(("asciidoc" ,asciidoc)))
669 (inputs `(("python2-pysqlite" ,python2-pysqlite)
670 ("python2-six" ,python2-six)))
672 ;; The setup.py script expects python-2.
674 ;; Tests require a modifiable IMAP account.
677 (modify-phases %standard-phases
678 (add-after 'build 'build-documentation
680 (substitute* "docs/Makefile"
681 ;; Prevent xmllint and xsltproc from downloading a DTD file.
682 (("a2x -v") "a2x --no-xmllint --xsltproc-opts=--nonet -v"))
683 (invoke "make" "-C" "docs" "man")))
684 (add-after 'install 'install-documentation
685 (lambda* (#:key outputs #:allow-other-keys)
686 (let* ((out (assoc-ref outputs "out"))
687 (man (string-append out "/share/man")))
688 (install-file "docs/offlineimap.1" (string-append man "/man1"))
689 (install-file "docs/offlineimapui.7" (string-append man "/man7"))
691 (home-page "https://www.offlineimap.org")
692 (synopsis "Sync emails between two repositories")
694 "OfflineImap synchronizes emails between two repositories, so that you
695 can read the same mailbox from multiple computers. It supports IMAP as REMOTE
696 repository and Maildir/IMAP as LOCAL repository.")
699 (define-public emacs-mew
705 (uri (string-append "https://mew.org/Release/mew-"
709 "0ixzyq33l6j34410kqav3lwn2wx171zvqd3irvns2jvhrbww8i6g"))))
713 `(("ruby-sqlite3" ,ruby-sqlite3) ; optional for the database of messages
714 ("ruby" ,ruby))) ; to set GEM_PATH so ruby-sqlite3 is found at runtime
715 (build-system gnu-build-system)
717 (let ((elisp-dir "/share/emacs/site-lisp")
718 (icon-dir "/share/mew"))
719 `(#:modules ((guix build gnu-build-system)
721 (guix build emacs-utils))
722 #:imported-modules (,@%gnu-build-system-modules
723 (guix build emacs-utils))
725 (list (string-append "--with-elispdir=" %output ,elisp-dir)
726 (string-append "--with-etcdir=" %output ,icon-dir))
728 (modify-phases %standard-phases
729 (add-after 'configure 'patch-mew-icon-directory
730 (lambda* (#:key outputs #:allow-other-keys)
731 (emacs-substitute-sexps "mew-key.el"
732 ("(def.* mew-icon-directory"
734 (add-to-list 'image-load-path 'mew-icon-directory)
735 ,(string-append (assoc-ref outputs "out") ,icon-dir))))
737 (add-after 'install 'generate-autoloads
738 (lambda* (#:key outputs #:allow-other-keys)
739 (emacs-generate-autoloads
740 "mew" (string-append (assoc-ref outputs "out") ,elisp-dir))
743 (home-page "https://mew.org")
744 (synopsis "Emacs e-mail client")
745 (description "Mew (Messaging in the Emacs World) is a user interface
746 for text messages, multimedia messages (MIME), news articles and
747 security functionality including PGP, S/MIME, SSH, and SSL.")
756 (uri (string-append "https://github.com/djcb/mu/releases/"
757 "download/" version "/"
758 "mu-" version ".tar.xz"))
761 "0vbyrmv3d2bja4vx86za93gq46vxg18j12g0lca3x1dl8d5g2xa6"))))
762 (build-system gnu-build-system)
764 `(("pkg-config" ,pkg-config)
765 ("glib" ,glib "bin") ; for gtester
766 ("emacs" ,emacs-minimal)
767 ("tzdata" ,tzdata-for-tests))) ; for mu/test/test-mu-query.c
774 `(#:modules ((guix build gnu-build-system)
776 (guix build emacs-utils))
777 #:imported-modules (,@%gnu-build-system-modules
778 (guix build emacs-utils))
780 (modify-phases %standard-phases
781 (add-after 'unpack 'patch-configure
782 ;; By default, elisp code goes to "share/emacs/site-lisp/mu4e",
783 ;; so our Emacs package can't find it. Setting "--with-lispdir"
784 ;; configure flag doesn't help because "mu4e" will be added to
785 ;; the lispdir anyway, so we have to modify "configure.ac".
787 (substitute* "configure"
788 (("^ +lispdir=\"\\$\\{lispdir\\}/mu4e/\".*") "")
790 (("guile-2.0") "guile-2.2"))
791 (substitute* '("guile/Makefile.in"
792 "guile/mu/Makefile.in")
793 (("share/guile/site/2.0/") "share/guile/site/2.2/"))
795 (add-after 'unpack 'patch-bin-sh-in-tests
797 (substitute* '("guile/tests/test-mu-guile.c"
799 "mu/test-mu-cmd-cfind.c"
801 "mu/test-mu-threads.c")
802 (("/bin/sh") (which "sh")))
804 (add-before 'install 'fix-ffi
805 (lambda* (#:key outputs #:allow-other-keys)
806 (substitute* "guile/mu.scm"
808 (format #f "\"~a/lib/libguile-mu\""
809 (assoc-ref outputs "out"))))
811 (add-before 'check 'check-tz-setup
812 (lambda* (#:key inputs #:allow-other-keys)
813 ;; For mu/test/test-mu-query.c
815 (string-append (assoc-ref inputs "tzdata")
818 (add-after 'install 'install-emacs-autoloads
819 (lambda* (#:key outputs #:allow-other-keys)
820 (emacs-generate-autoloads
822 (string-append (assoc-ref outputs "out")
823 "/share/emacs/site-lisp"))
825 (home-page "https://www.djcbsoftware.nl/code/mu/")
826 (synopsis "Quickly find emails")
828 "Mu is a tool for dealing with e-mail messages stored in the
829 Maildir-format. Mu's purpose in life is to help you to quickly find the
830 messages you need; in addition, it allows you to view messages, extract
831 attachments, create new maildirs, and so on.")
840 ;; package author intends on distributing via github rather
842 ;; https://github.com/pazz/alot/issues/877#issuecomment-230173331
843 (uri (string-append "https://github.com/pazz/alot/archive/"
845 (file-name (string-append "alot-" version ".tar.gz"))
848 "0wax30hjzmkqfml7hig1dqw1v1y63yc0cgbzl96x58b9h2ggqx3a"))))
849 (build-system python-build-system)
851 `(;; python 3 is currently unsupported, more info:
852 ;; https://github.com/pazz/alot/blob/master/docs/source/faq.rst
855 `(("python2-mock" ,python2-mock)))
857 `(("python2-magic" ,python2-magic)
858 ("python2-configobj" ,python2-configobj)
859 ("python2-twisted" ,python2-twisted)
860 ("python2-urwid" ,python2-urwid)
861 ("python2-urwidtrees" ,python2-urwidtrees)
862 ("python2-pygpgme" ,python2-pygpgme)
863 ("python2-notmuch" ,python2-notmuch)))
864 (home-page "https://github.com/pazz/alot")
865 (synopsis "Command-line MUA using @code{notmuch}")
867 "Alot is an experimental terminal mail user agent (@dfn{MUA}) based on
868 @code{notmuch} mail. It is written in Python using the @code{urwid} toolkit.")
871 (define-public notifymuch
873 ((commit "9d4aaf54599282ce80643b38195ff501120807f0")
877 (version (string-append "0.1-" revision "." (string-take commit 7)))
882 (url "https://github.com/kspi/notifymuch.git")
886 "1lssr7iv43mp5v6nzrfbqlfzx8jcc7m636wlfyhhnd8ydd39n6k4"))
887 (file-name (string-append name "-" version "-checkout"))))
888 (build-system python-build-system)
890 `(("python-notmuch" ,python-notmuch)
891 ("python-pygobject" ,python-pygobject)
892 ("gobject-introspection" ,gobject-introspection)
893 ("libnotify" ,libnotify)
897 (modify-phases %standard-phases
898 (add-after 'install 'wrap-binary
899 (lambda* (#:key outputs #:allow-other-keys)
900 (let* ((out (assoc-ref outputs "out"))
901 (bin (string-append out "/bin/notifymuch")))
903 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
904 `("GI_TYPELIB_PATH" ":" prefix
905 (,(getenv "GI_TYPELIB_PATH")
906 ,(string-append out "/lib/girepository-1.0")))))
908 (home-page "https://github.com/kspi/notifymuch")
909 (synopsis "Displays notifications for changes in the notmuch email database")
910 (description "notifymuch displays desktop notifications for messages in
911 the notmuch database. The notifications are sent using libnotify to a
912 notification daemon. The query to find messages to send a notification about
913 is configurable, and a notification for the same message will not be send
914 within a configurable period (defaults to 48 hours). To use notifymuch, run
915 @command{notifymuch} after new mail is indexed, this can be automated by
916 invoking @command{notifymuch} from the post-new hook.")
919 (define-public notmuch
925 (uri (string-append "https://notmuchmail.org/releases/notmuch-"
929 "0dfwa38vgnxk9cvvpza66szjgp8lir6iz6yy0cry9593lywh9xym"))))
930 (build-system gnu-build-system)
932 `(#:modules ((guix build gnu-build-system)
933 ((guix build emacs-build-system) #:prefix emacs:)
935 #:imported-modules (,@%gnu-build-system-modules
936 (guix build emacs-build-system)
937 (guix build emacs-utils))
939 (list "V=1" ; verbose test output
940 "NOTMUCH_TEST_TIMEOUT=1h") ; don't fail on slow machines
941 #:phases (modify-phases %standard-phases
942 (add-after 'unpack 'patch-notmuch-lib.el
944 (substitute* "emacs/notmuch-lib.el"
945 (("/bin/sh") (which "sh")))
948 (lambda* (#:key outputs #:allow-other-keys)
950 (setenv "CONFIG_SHELL" (which "sh"))
952 (let* ((out (assoc-ref outputs "out"))
954 (string-append out "/share/emacs/site-lisp/")))
955 (invoke "./configure"
956 (string-append "--prefix=" out)
957 (string-append "--emacslispdir=" elisp)
958 (string-append "--emacsetcdir=" elisp)))))
959 (add-before 'check 'prepare-test-environment
961 (setenv "TEST_CC" "gcc")
962 ;; Patch various inline shell invocations.
963 (substitute* (find-files "test" "\\.sh$")
964 (("/bin/sh") (which "sh")))
966 (add-after 'install 'make-autoloads
967 (assoc-ref emacs:%standard-phases 'make-autoloads)))))
969 `(("bash-completion" ,bash-completion)
970 ("emacs" ,emacs-no-x) ; -minimal lacks libxml, needed for some tests
971 ("pkg-config" ,pkg-config)
973 ("python-docutils" ,python-docutils)
974 ("sphinx" ,python-sphinx)
976 ;; The following are required for tests only.
988 (home-page "https://notmuchmail.org/")
989 (synopsis "Thread-based email index, search, and tagging")
991 "Notmuch is a command-line based program for indexing, searching, read-
992 ing, and tagging large collections of email messages.")
995 (define-public notmuch-addrlookup-c
997 (name "notmuch-addrlookup-c")
998 (version (string-append "9"))
1002 (url "https://github.com/aperezdc/notmuch-addrlookup-c.git")
1003 (commit (string-append "v" version))))
1004 (file-name (string-append name "-" version "-checkout"))
1007 "1j3zdx161i1x4w0nic14ix5i8hd501rb31daf8api0k8855sx4rc"))))
1008 (build-system gnu-build-system)
1010 '(#:tests? #f ; no tests
1011 #:make-flags (list "CC=gcc")
1012 #:phases (modify-phases %standard-phases
1014 ;; Remove vim code completion config, it's not needed to
1015 ;; build (or be patched).
1016 (add-before 'patch-source-shebangs 'delete-ycm-file
1017 (lambda _ (delete-file ".ycm_extra_conf.py")))
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (let ((bin (string-append
1021 (assoc-ref outputs "out") "/bin")))
1022 (install-file "notmuch-addrlookup" bin)))))))
1024 `(("pkg-config" ,pkg-config)))
1027 ("notmuch" ,notmuch)))
1028 (home-page "https://github.com/aperezdc/notmuch-addrlookup-c")
1029 (synopsis "Address lookup tool for Notmuch")
1030 (description "This is an address lookup tool using a Notmuch database,
1031 useful for email address completion.")
1032 (license license:expat)))
1034 (define-public python-notmuch
1036 (name "python-notmuch")
1037 (version (package-version notmuch))
1038 ;; Notmuch python bindings are now unavailable on pypi. The
1039 ;; bindings are distributed via the notmuch release tarball.
1040 (source (package-source notmuch))
1041 (build-system python-build-system)
1042 (inputs `(("notmuch" ,notmuch)))
1044 `(#:tests? #f ; no "test" target
1046 (modify-phases %standard-phases
1047 ;; This python package lives in a subdirectory of the notmuch source
1048 ;; tree, so chdir into it before building.
1049 (add-after 'unpack 'enter-python-dir
1050 (lambda _ (chdir "bindings/python") #t))
1051 ;; Make sure the correct notmuch shared library gets loaded.
1052 (add-before 'build 'set-libnotmuch-file-name
1053 (lambda* (#:key inputs #:allow-other-keys)
1054 (let ((notmuch (assoc-ref inputs "notmuch")))
1055 (substitute* "notmuch/globals.py"
1056 (("libnotmuch\\.so\\.")
1057 (string-append notmuch "/lib/libnotmuch.so.")))
1059 (home-page (package-home-page notmuch))
1060 (synopsis "Python bindings of the Notmuch mail indexing library")
1062 "This package provides Python bindings to use the Notmuch mail indexing
1063 and search library.")
1066 (define-public python2-notmuch
1067 (package-with-python2 python-notmuch))
1069 (define-public muchsync
1076 (uri (string-append "http://www.muchsync.org/src/"
1077 "muchsync-" version ".tar.gz"))
1079 (base32 "1k2m44pj5i6vfhp9icdqs42chsp208llanc666p3d9nww8ngq2lb"))))
1080 (build-system gnu-build-system)
1082 `(("ghc-pandoc" ,ghc-pandoc)
1083 ("pkg-config" ,pkg-config)))
1085 `(("libcrypto" ,openssl)
1086 ("notmuch" ,notmuch)
1088 ("xapian" ,xapian)))
1089 (home-page "http://www.muchsync.org/")
1090 (synopsis "Synchronize notmuch mail across machines")
1092 "Muchsync brings Notmuch to all of your computers by synchronizing your
1093 mail messages and Notmuch tags across machines. The protocol is heavily
1094 pipelined to work efficiently over high-latency networks such as mobile
1095 broadband. Muchsync supports arbitrary pairwise synchronization among
1096 replicas. A version-vector-based algorithm allows it to exchange only the
1097 minimum information necessary to bring replicas up to date regardless of which
1098 pairs have previously synchronized.")
1101 (define-public getmail
1108 (uri (string-append "http://pyropus.ca/software/getmail/old-versions/"
1109 "getmail-" version ".tar.gz"))
1111 (base32 "1hcrd9h4g12f5gvl1djsbchcjry02ghq4icdr897s8v48pkrzagk"))))
1112 (build-system python-build-system)
1114 `(#:tests? #f ; no tests
1115 #:python ,python-2))
1116 (home-page "http://pyropus.ca/software/getmail/")
1117 (synopsis "Mail retriever")
1119 "A flexible, extensible mail retrieval system with support for
1120 POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs,
1121 arbitrary message filtering, single-user and domain-mailboxes, and many other
1124 ;; License is specified in file '__init__.py'.
1127 (define-public libetpan
1134 (url "https://github.com/dinhviethoa/libetpan.git")
1136 (file-name (git-file-name name version))
1138 (base32 "19g4qskg71jv7sxfxsdkjmrxk9mk5kf9b6fhw06g6wvm3205n95f"))))
1139 (build-system gnu-build-system)
1140 (native-inputs `(("autoconf" ,autoconf-wrapper)
1141 ("automake" ,automake)
1142 ("libtool" ,libtool)
1143 ("pkg-config" ,pkg-config)))
1145 ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these
1146 ;; libraries need to be propagated.
1147 `(("cyrus-sasl" ,cyrus-sasl)
1148 ("openssl" ,openssl)))
1155 '("--disable-static" "--disable-db")))
1156 (home-page "https://www.etpan.org/libetpan.html")
1157 (synopsis "Portable middleware for email access")
1159 "The purpose of this mail library is to provide a portable, efficient
1160 framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It
1161 provides an API for C language. It's the low-level API used by MailCore and
1165 (define-public compface
1171 (uri (string-append "https://ftp.heanet.ie/mirrors/"
1172 "ftp.xemacs.org/aux/"
1173 "compface-" version ".tar.gz"))
1176 "09b89wg63hg502hsz592cd2h87wdprb1dq1k1y07n89hym2q56d6"))))
1177 (build-system gnu-build-system)
1180 (synopsis "Portrait image compressor")
1181 (description "This package takes your 48x48x1 portrait image and
1183 (home-page "https://legacy.cs.indiana.edu/ftp/faces/")
1184 (license (x11-style "file://README"))))
1186 (define-public claws-mail
1193 "https://www.claws-mail.org/releases/claws-mail-" version
1197 "1gjrmdmhc7zzilrlss9yl86ybv9sra8v0qi7mkwv7d9azidx5kns"))))
1198 (build-system gnu-build-system)
1199 (native-inputs `(("pkg-config" ,pkg-config)))
1200 (inputs `(("bogofilter" ,bogofilter)
1202 ("dbus-glib" ,dbus-glib)
1203 ("enchant" ,enchant)
1205 ("ghostscript" ,ghostscript)
1206 ("hicolor-icon-theme" ,hicolor-icon-theme)
1211 ("libarchive" ,libarchive)
1212 ("libcanberra" ,libcanberra)
1213 ("libetpan" ,libetpan)
1214 ("libical" ,libical)
1215 ("libnotify" ,libnotify)
1217 ("libxml2" ,libxml2)
1219 ("python-2" ,python-2)
1220 ("mime-info" ,shared-mime-info)
1221 ("startup-notification" ,startup-notification)))
1224 '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant"
1227 ;; Disable updating icon cache since it's done by the profile hook.
1228 ;; Conflict with other packages in the profile would be inevitable
1230 '("gtk_update_icon_cache=true")
1231 #:phases (modify-phases %standard-phases
1232 (add-before 'build 'patch-mime
1233 (lambda* (#:key inputs #:allow-other-keys)
1234 (substitute* "src/procmime.c"
1235 (("/usr/share/mime/globs")
1236 (string-append (assoc-ref inputs "mime-info")
1237 "/share/mime/globs"))))))))
1238 (synopsis "GTK-based Email client")
1240 "Claws-Mail is an email client (and news reader) based on GTK+. The
1241 appearance and interface are designed to be familiar to new users coming from
1242 other popular email clients, as well as experienced users. Almost all commands
1243 are accessible with the keyboard. Plus, Claws-Mail is extensible via addons
1244 which can add many functionalities to the base client.")
1245 (home-page "https://www.claws-mail.org/")
1246 (license gpl3+))) ; most files are actually public domain or x11
1248 (define-public msmtp
1255 (uri (string-append "https://marlam.de/msmtp/releases/"
1256 "/msmtp-" version ".tar.xz"))
1258 (base32 "0q0fg235qk448l1xjcwyxr7vcpzk6w57jzhjbkb0m7nffyhhypzj"))))
1259 (build-system gnu-build-system)
1261 `(("libsecret" ,libsecret)
1266 `(("pkg-config" ,pkg-config)))
1267 (home-page "https://marlam.de/msmtp/")
1269 `(#:configure-flags (list "--with-libgsasl"
1271 "--with-tls=gnutls")
1273 (modify-phases %standard-phases
1274 (add-after 'install 'install-additional-files
1275 (lambda* (#:key outputs #:allow-other-keys)
1276 (let* ((out (assoc-ref outputs "out"))
1277 (bin (string-append out "/bin"))
1278 (doc (string-append out "/share/doc/msmtp"))
1279 (msmtpq "scripts/msmtpq")
1280 (vimfiles (string-append out "/share/vim/vimfiles/plugin")))
1281 (install-file (string-append msmtpq "/msmtpq") bin)
1282 (install-file (string-append msmtpq "/msmtp-queue") bin)
1283 (install-file (string-append msmtpq "/README.msmtpq") doc)
1284 (install-file "scripts/vim/msmtp.vim" vimfiles)
1285 ;; Don't rely on netcat being in the PATH to test for a
1286 ;; connection, instead try tp ing debian.org.
1287 (substitute* (string-append bin "/msmtpq")
1288 (("EMAIL_CONN_TEST=n") "EMAIL_CONN_TEST=p"))
1291 "Simple and easy to use SMTP client with decent sendmail compatibility")
1293 "msmtp is an SMTP client. In the default mode, it transmits a mail to
1294 an SMTP server (for example at a free mail provider) which takes care of further
1305 (uri (let ((file-name (string-append "exim-" version ".tar.xz")))
1306 (list (string-append "https://ftp.exim.org/pub/exim/exim4/"
1308 ;; ‘Fix’ releases (exim-x.y.z.f) are kept separately.
1309 (string-append "https://ftp.exim.org/pub/exim/exim4/fixes/"
1311 ;; After a new non-fix release, the old one is moved here.
1312 (string-append "https://ftp.exim.org/pub/exim/exim4/old/"
1315 (base32 "1nsb2i5mqxfz1sl1bmbxmpb2qiaf3wffhfiw4j9vfpagy3xfhzpp"))))
1316 (build-system gnu-build-system)
1318 `(("bdb" ,bdb-5.3) ; ‘#error Version 6 and later BDB API is not supported’
1319 ("gnutls" ,gnutls/dane)
1326 ("libxaw" ,libxaw)))
1328 `(("pcre" ,pcre "bin")
1330 ("pkg-config" ,pkg-config)))
1333 (modify-phases %standard-phases
1335 ;; We'd use #:make-flags but the top-level Makefile calls others
1336 ;; recursively, so just set all variables this way.
1337 (lambda* (#:key outputs inputs #:allow-other-keys)
1338 (substitute* '("Makefile" "OS/Makefile-Default")
1339 (("(RM_COMMAND=).*" all var)
1340 (string-append var "rm\n")))
1341 (copy-file "src/EDITME" "Local/Makefile")
1342 (copy-file "exim_monitor/EDITME" "Local/eximon.conf")
1343 (let ((out (assoc-ref outputs "out"))
1344 (gzip (assoc-ref inputs "gzip"))
1345 (bzip2 (assoc-ref inputs "bzip2"))
1346 (xz (assoc-ref inputs "xz")))
1347 (substitute* '("Local/Makefile")
1348 (("(BIN_DIRECTORY=).*" all var)
1349 (string-append var out "/bin\n"))
1350 (("(CONFIGURE_FILE=).*" all var)
1351 (string-append var out "/etc/exim.conf\n"))
1352 (("(EXIM_USER=).*" all var)
1353 (string-append var "nobody\n"))
1354 (("(FIXED_NEVER_USERS=).*" all var)
1355 (string-append var "\n")) ; XXX no root in build environment
1356 (("(COMPRESS_COMMAND=).*" all var)
1357 (string-append var gzip "/bin/gzip\n"))
1358 (("(ZCAT_COMMAND=).*" all var)
1359 (string-append var gzip "/bin/zcat\n"))
1360 (("# (USE_GNUTLS(|_PC)=.*)" all line)
1361 (string-append line "\n")))
1362 ;; This file has hard-coded relative file names for tools despite
1363 ;; the zcat configuration above.
1364 (substitute* '("src/exigrep.src")
1365 (("'zcat'") (string-append "'" gzip "/bin/zcat'"))
1366 (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'"))
1367 (("'xzcat'") (string-append "'" xz "/bin/xzcat'"))
1368 (("'lzma'") (string-append "'" xz "/bin/lzma'"))))
1370 (add-before 'build 'fix-sh-paths
1371 (lambda* (#:key inputs #:allow-other-keys)
1372 (substitute* '("scripts/lookups-Makefile" "scripts/reversion")
1373 (("SHELL=/bin/sh") "SHELL=sh"))
1374 (substitute* '("scripts/Configure-config.h")
1375 (("\\| /bin/sh") "| sh"))
1376 (let ((bash (assoc-ref inputs "bash")))
1377 (substitute* '("scripts/Configure-eximon")
1378 (("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))
1380 (add-before 'build 'build-reproducibly
1382 ;; The ‘compilation number’ is incremented for every build from the
1383 ;; same source tree. It appears to vary over different (parallel?)
1384 ;; builds. Make it a ‘constant number’ instead.
1385 (substitute* "src/version.c"
1386 (("#include \"cnumber.h\"") "1")))))
1389 "INSTALL_ARG=-no_chown")
1390 ;; No 'check' target. There is a test suite in test/, which assumes that
1391 ;; certain build options were (not) used and that it can freely ‘sudo’.
1393 (home-page "https://www.exim.org/")
1395 "Message Transfer Agent (MTA) developed at the University of Cambridge")
1397 "Exim is a message transfer agent (MTA) developed at the University of
1398 Cambridge for use on Unix systems connected to the Internet. In style it is
1399 similar to Smail 3, but its facilities are more general. There is a great
1400 deal of flexibility in the way mail can be routed, and there are extensive
1401 facilities for checking incoming mail.")
1404 (define-public dovecot
1407 (version "2.3.10.1")
1411 (uri (string-append "https://www.dovecot.org/releases/"
1412 (version-major+minor version) "/"
1413 "dovecot-" version ".tar.gz"))
1415 (base32 "035idr2j81s5mngnhd58rih79dhwwak7q01mqbx3rcmi4cpychk6"))))
1416 (build-system gnu-build-system)
1418 `(("pkg-config" ,pkg-config)))
1421 ("libsodium" ,libsodium) ; extra password algorithms
1422 ;; FIXME: The 'test-backtrace' tests fail on arm when using glibc's
1423 ;; backtrace_symbol() function so fallback to using libunwind.
1425 `(("libunwind" ,libunwind))
1427 ("linux-pam" ,linux-pam)
1429 ("openssl" ,openssl)
1433 `(#:configure-flags '("--sysconfdir=/etc"
1434 "--localstatedir=/var"
1435 "--with-sqlite") ; not auto-detected
1437 (modify-phases %standard-phases
1438 (add-after 'unpack 'patch-file-names
1440 (substitute* "src/lib-program-client/test-program-client-local.c"
1441 (("(/bin/| )cat") (which "cat"))
1442 (("/bin/echo") (which "echo"))
1443 (("/bin/false") (which "false"))
1444 (("/bin/sh") (which "bash"))
1445 (("head") (which "head"))
1446 (("sleep") (which "sleep")))
1447 (substitute* (list "src/lib-smtp/test-bin/sendmail-exit-1.sh"
1448 "src/lib-smtp/test-bin/sendmail-success.sh")
1449 (("cat") (which "cat")))
1452 (lambda* (#:key make-flags #:allow-other-keys)
1453 ;; Simple hack to avoid installing a trivial README in /etc.
1454 (apply invoke "make" "install" "sysconfdir=/tmp/bogus"
1456 (home-page "https://www.dovecot.org")
1457 (synopsis "Secure POP3/IMAP server")
1459 "Dovecot is a mail server whose major goals are security and reliability.
1460 It supports mbox/Maildir and its own dbox/mdbox formats.")
1461 ;; Most source files are covered by either lgpl2.1 or expat. The SHA code
1462 ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the
1463 ;; Unicode, Inc. License Agreement for Data Files and Software.
1464 (license (list lgpl2.1 license:expat (non-copyleft "file://COPYING")))))
1466 (define-public dovecot-trees
1468 (name "dovecot-trees")
1473 (uri (string-append "https://0xacab.org/riseuplabs/trees/repository/"
1474 "archive.tar.gz?ref=v" version))
1475 (file-name (string-append name "-" version ".tar.gz"))
1478 "0rkk10b1bsjz979sc864vpgcdchy7yxwmyv4ik50lar1h6awdnrf"))
1480 (search-patches "dovecot-trees-support-dovecot-2.3.patch"))))
1481 (build-system gnu-build-system)
1483 `(("automake" ,automake)
1484 ("autoconf" ,autoconf)
1485 ("libtool" ,libtool)
1486 ("dovecot" ,dovecot)
1487 ("pkg-config" ,pkg-config)))
1489 `(("libsodium" ,libsodium)))
1491 `(#:tests? #f ;No tests exist.
1492 #:configure-flags (list (string-append "--with-dovecot="
1493 (assoc-ref %build-inputs "dovecot")
1495 (home-page "https://0xacab.org/riseuplabs/trees")
1496 (synopsis "NaCL-based Dovecot email storage encryption plugin")
1498 "Technology for Resting Email Encrypted Storage (TREES) is a NaCL-based
1499 Dovecot encryption plugin. This plugin adds individually encrypted mail
1500 storage to the Dovecot IMAP server. It is inspired by Posteo's scrambler
1501 which uses OpenSSL and RSA keypairs. TREES works in a similar way, but uses
1502 the Sodium crypto library (based on NaCL).
1506 @item On IMAP log in, the user's cleartext password is passed to the plugin.
1507 @item The plugin creates an argon2 digest from the password.
1508 @item This password digest is used as a symmetric secret to decrypt a libsodium secretbox.
1509 @item Inside the secretbox is stored a Curve25519 private key.
1510 @item The Curve25519 private key is used to decrypt each individual message,
1511 using libsodium sealed boxes.
1512 @item New mail is encrypted as it arrives using the Curve25519 public key.
1516 (define-public dovecot-libsodium-plugin
1517 (let ((commit "044de73c01c35385df0105f6b387bec5d5317ce7")
1520 (name "dovecot-libsodium-plugin")
1521 (version (string-append "0.0.0-" revision "." (string-take commit 7)))
1526 (url "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1528 (file-name (string-append name "-" version "-checkout"))
1531 "13h07l7xy713zchnj2p9fhvq7fdl4zy1ai94li3ygkqjjj8hrgas"))))
1532 (build-system gnu-build-system)
1534 `(("automake" ,automake)
1535 ("autoconf" ,autoconf)
1536 ("libtool" ,libtool)
1537 ("dovecot" ,dovecot)
1538 ("pkg-config" ,pkg-config)))
1540 `(("libsodium" ,libsodium)))
1542 `(#:tests? #f ;No tests exist.
1543 #:configure-flags (list (string-append "--with-dovecot="
1544 (assoc-ref %build-inputs "dovecot")
1546 (home-page "https://github.com/LuckyFellow/dovecot-libsodium-plugin")
1547 (synopsis "Libsodium password hashing schemes plugin for Dovecot")
1549 "@code{dovecot-libsodium-plugin} provides a libsodium password
1550 hashing scheme (such as scrypt) plug-in for @code{Dovecot}.")
1553 (define-public isync
1560 (uri (string-append "mirror://sourceforge/isync/isync/"
1561 version "/isync-" version ".tar.gz"))
1563 "1sphd30jplii58y2zmw365bckm6pszmapcy905zhjll1sm1ldjv8"))))
1564 (build-system gnu-build-system)
1569 ("cyrus-sasl" ,cyrus-sasl)
1570 ("openssl" ,openssl-1.0)
1572 (home-page "http://isync.sourceforge.net/")
1573 (synopsis "Mailbox synchronization program")
1575 "isync/mbsync is a command-line tool for two-way synchronization of
1576 mailboxes. Currently Maildir and IMAP are supported types.")
1579 (define-public perl-email-abstract
1581 (name "perl-email-abstract")
1586 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1587 "Email-Abstract-" version ".tar.gz"))
1590 "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw"))))
1591 (build-system perl-build-system)
1593 `(("perl-email-simple" ,perl-email-simple)
1594 ("perl-module-pluggable" ,perl-module-pluggable)
1595 ("perl-mro-compat" ,perl-mro-compat)))
1596 (home-page "https://metacpan.org/release/Email-Abstract")
1597 (synopsis "Interface to mail representations")
1598 (description "Email::Abstract provides module writers with the ability to
1599 write simple, representation-independent mail handling code.")
1600 (license perl-license)))
1602 (define-public perl-email-address
1604 (name "perl-email-address")
1609 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1610 "Email-Address-" version ".tar.gz"))
1612 (base32 "1vzr0vx4zsw4zbc9xdffc31wnkc1raqmyfiyws06fbyck197i8qg"))))
1613 (build-system perl-build-system)
1614 (home-page "https://metacpan.org/release/Email-Address")
1615 (synopsis "Email address parsing and creation")
1616 (description "Email::Address implements a regex-based RFC 2822 parser that
1617 locates email addresses in strings and returns a list of Email::Address
1618 objects found. Alternatively you may construct objects manually.")
1619 (license perl-license)))
1621 (define-public perl-email-address-xs
1623 (name "perl-email-address-xs")
1628 (uri (string-append "mirror://cpan/authors/id/P/PA/PALI/"
1629 "Email-Address-XS-" version ".tar.gz"))
1632 "0gjrrl81z3sfwavgx5kwjd87gj44mlnbbqsm3dgdv1xllw26spwr"))))
1633 (build-system perl-build-system)
1634 (home-page "https://metacpan.org/release/Email-Address-XS")
1635 (synopsis "Parse and format RFC 5322 email addresses and groups")
1637 "Email::Address::XS implements RFC 5322 parser and formatter of email
1638 addresses and groups. Unlike Email::Address, this module does not use regular
1639 expressions for parsing but instead is implemented in XS and uses shared code
1640 from Dovecot IMAP server.")
1641 (license perl-license)))
1643 (define-public perl-email-date-format
1645 (name "perl-email-date-format")
1650 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1651 "Email-Date-Format-" version ".tar.gz"))
1654 "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p"))))
1655 (build-system perl-build-system)
1656 (home-page "https://metacpan.org/release/Email-Date-Format")
1657 (synopsis "Produce RFC 2822 date strings")
1658 (description "Email::Date::Format provides a means for generating an RFC
1659 2822 compliant datetime string.")
1660 (license perl-license)))
1662 (define-public perl-email-messageid
1664 (name "perl-email-messageid")
1669 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1670 "Email-MessageID-" version ".tar.gz"))
1673 "1f22sdnfq169qw1l0lg7y74pmiam7j9v95bggjnf3q4mygdmshpc"))))
1674 (build-system perl-build-system)
1675 (home-page "https://metacpan.org/release/Email-MessageID")
1676 (synopsis "Generate world unique message-ids")
1677 (description "Email::MessageID generates recommended message-ids to
1678 identify a message uniquely.")
1679 (license perl-license)))
1681 (define-public perl-email-mime
1683 (name "perl-email-mime")
1688 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1689 "Email-MIME-" version ".tar.gz"))
1692 "0z1k3i0lzp2k421gc8f3wq0jbqflkbw2xqd2k7n7pmv56417kvk8"))))
1693 (build-system perl-build-system)
1695 `(("perl-email-address" ,perl-email-address)
1696 ("perl-email-messageid" ,perl-email-messageid)
1697 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
1698 ("perl-email-mime-encodings" ,perl-email-mime-encodings)
1699 ("perl-email-simple" ,perl-email-simple)
1700 ("perl-mime-types" ,perl-mime-types)
1701 ("perl-module-runtime" ,perl-module-runtime)))
1702 (home-page "https://metacpan.org/release/Email-MIME")
1703 (synopsis "MIME message handling")
1704 (description "Email::MIME is an extension of the Email::Simple module, to
1705 handle MIME encoded messages. It takes a message as a string, splits it up
1706 into its constituent parts, and allows you access to various parts of the
1707 message. Headers are decoded from MIME encoding.")
1708 (license perl-license)))
1710 (define-public perl-email-mime-contenttype
1712 (name "perl-email-mime-contenttype")
1717 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1718 "Email-MIME-ContentType-" version ".tar.gz"))
1721 "042kxhs3bp1ab9z0mbr1wy21ld4lxd6v2a2mmrashqnsn2075fws"))))
1722 (build-system perl-build-system)
1724 `(("perl-capture-tiny" ,perl-capture-tiny)))
1725 (home-page "https://metacpan.org/release/Email-MIME-ContentType")
1726 (synopsis "Parse MIME Content-Type headers")
1727 (description "Email::MIME::ContentType parses a MIME Content-Type
1729 (license perl-license)))
1731 (define-public perl-email-mime-encodings
1733 (name "perl-email-mime-encodings")
1738 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1739 "Email-MIME-Encodings-" version ".tar.gz"))
1742 "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac"))))
1743 (build-system perl-build-system)
1745 `(("perl-capture-tiny" ,perl-capture-tiny)))
1746 (home-page "https://metacpan.org/release/Email-MIME-Encodings")
1747 (synopsis "Unified interface to MIME encoding and decoding")
1748 (description "This module wraps MIME::Base64 and MIME::QuotedPrint.")
1749 (license perl-license)))
1751 (define-public perl-email-sender
1753 (name "perl-email-sender")
1754 (version "1.300034")
1758 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1759 "Email-Sender-" version ".tar.gz"))
1761 (base32 "14aj9kqa9dr2bdhzn2qvjj2mffj8wjb5397z8qw7qg057fk3ib05"))))
1762 (build-system perl-build-system)
1764 `(("perl-capture-tiny" ,perl-capture-tiny)))
1766 `(("perl-email-abstract" ,perl-email-abstract)
1767 ("perl-email-address" ,perl-email-address)
1768 ("perl-email-simple" ,perl-email-simple)
1769 ("perl-list-moreutils" ,perl-list-moreutils)
1770 ("perl-module-runtime" ,perl-module-runtime)
1771 ("perl-moo" ,perl-moo)
1772 ("perl-moox-types-mooselike" ,perl-moox-types-mooselike)
1773 ("perl-sub-exporter" ,perl-sub-exporter)
1774 ("perl-throwable" ,perl-throwable)
1775 ("perl-try-tiny" ,perl-try-tiny)))
1776 (home-page "https://metacpan.org/release/Email-Sender")
1777 (synopsis "Perl library for sending email")
1778 (description "Email::Sender replaces the old and sometimes problematic
1779 Email::Send library.")
1780 (license perl-license)))
1782 (define-public perl-email-simple
1784 (name "perl-email-simple")
1789 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1790 "Email-Simple-" version ".tar.gz"))
1793 "1m4brbjvalyp5kjqslqv4155dzwg977shxin208i7lc8236n6pyq"))))
1794 (build-system perl-build-system)
1796 `(("perl-email-date-format" ,perl-email-date-format)))
1797 (home-page "https://metacpan.org/release/Email-Simple")
1798 (synopsis "Parsing of RFC 2822 messages")
1799 (description "Email::Simple provides simple parsing of RFC 2822 message
1800 format and headers.")
1801 (license perl-license)))
1803 (define-public libesmtp
1810 (uri (list (string-append "https://pkgs.fedoraproject.org/repo/pkgs/"
1811 "libesmtp/libesmtp-" version ".tar.bz2/"
1812 "bf3915e627fd8f35524a8fdfeed979c8/libesmtp-"
1814 ;; XXX This site is offline, so we fetch Fedora's cached copy
1815 ;; of the source tarball.
1816 (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-"
1817 version ".tar.bz2")))
1820 "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh"))))
1821 (build-system gnu-build-system)
1823 `(("openssl" ,openssl)))
1824 (home-page "http://www.stafford.uklinux.net/libesmtp/")
1825 (synopsis "Library for sending mail via remote hosts using SMTP")
1826 (description "libESMTP is an SMTP client which manages posting (or
1827 submission of) electronic mail via a preconfigured Mail Transport Agent (MTA).
1828 It may be used as part of a Mail User Agent (MUA) or other program that must
1829 be able to post electronic mail where mail functionality may not be that
1830 program's primary purpose.")
1831 (license (list lgpl2.1+ gpl2+))))
1833 (define-public esmtp
1841 (url "https://github.com/andywingo/esmtp.git")
1842 (commit "01bf9fc")))
1845 "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2"))
1846 (file-name (string-append name "-" version "-checkout"))))
1848 `(#:phases (modify-phases %standard-phases
1850 (lambda _ (invoke "autoreconf" "-vfi"))))))
1851 (build-system gnu-build-system)
1855 ("autoconf" ,autoconf)
1856 ("automake" ,automake)
1857 ("libtool" ,libtool)))
1859 `(("libesmtp" ,libesmtp)))
1860 (home-page "https://sourceforge.net/projects/esmtp/")
1861 (synopsis "Relay-only mail transfer agent (MTA)")
1862 (description "Esmtp is a simple relay-only mail transfer agent built using
1863 libESMTP. It sends e-mail via a remote SMTP server using credentials from the
1864 user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man
1865 page for more on configuration. This package also provides minimal
1866 compatibility shims for the @command{sendmail}, @command{mailq}, and
1867 @command{newaliases} commands.")
1876 (uri (string-append "https://github.com/nicm/fdm/releases/download/"
1877 version "/fdm-" version ".tar.gz"))
1879 (base32 "196fs1z8y7p12wmqn1bylzz94szl58yv2aby3p30nmwjnyv8rch6"))))
1880 (build-system gnu-build-system)
1883 ("openssl" ,openssl)
1885 (home-page "https://github.com/nicm/fdm")
1886 (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)")
1887 (description "fdm is a program designed to fetch mail from POP3
1888 or IMAP servers, or receive local mail from stdin, and
1889 deliver it in various ways.")
1891 ;; Why point to a source file? Well, all the individual files have a
1892 ;; copy of this license in their headers, but there's no seprate file
1893 ;; with that information.
1894 (non-copyleft "https://github.com/nicm/fdm/blob/master/command.c"))))
1897 (define-public procmail
1905 "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-"
1910 "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"))
1911 ;; The following patch fixes an ambiguous definition of
1912 ;; getline() in formail.c. The patch is provided by Debian as
1914 (patches (search-patches "procmail-ambiguous-getline-debian.patch"
1915 "procmail-CVE-2014-3618.patch"
1916 "procmail-CVE-2017-16844.patch"))))
1918 `(#:phases (modify-phases %standard-phases
1921 (substitute* "Makefile"
1925 (assoc-ref %outputs "out"))
1929 #:tests? #f)) ;; There are no tests indicating a successful
1930 ;; build. Some tests of basic locking mechanisms provided by the
1931 ;; file system are performed during 'make install'. However, these
1932 ;; are performed before the actual build process.
1933 (build-system gnu-build-system)
1934 (inputs `(("exim" ,exim)))
1935 (home-page "http://www.procmail.org/")
1936 (synopsis "Versatile mail delivery agent (MDA)")
1937 (description "Procmail is a mail delivery agent (MDA) featuring support
1938 for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail
1939 can be sorted into separate files/directories and arbitrary commands can be
1940 executed on mail arrival. Procmail is considered stable, but is no longer
1942 (license gpl2+))) ;; procmail allows to choose the
1943 ;; nonfree Artistic License 1.0
1944 ;; as alternative to the GPL2+.
1945 ;; This option is not listed here.
1947 (define-public khard
1953 (uri (pypi-uri name version))
1956 "0fg4qh5gzki5wg958wlpc8a2icnk74gzg33lqxjm755cfnjng7qd"))))
1957 (build-system python-build-system)
1960 (modify-phases %standard-phases
1961 (add-after 'install 'install-completions
1962 (lambda* (#:key outputs #:allow-other-keys)
1963 (let* ((out (assoc-ref outputs "out"))
1964 (zsh (string-append out "/share/zsh/site-functions")))
1965 (copy-recursively "misc/zsh" zsh)
1968 `(("python-setuptools-scm" ,python-setuptools-scm)))
1970 `(("python-atomicwrites" ,python-atomicwrites)
1971 ("python-configobj" ,python-configobj)
1972 ("python-pyyaml" ,python-pyyaml)
1973 ("python-ruamel.yaml" ,python-ruamel.yaml)
1974 ("python-unidecode" ,python-unidecode)
1975 ("python-vobject" ,python-vobject)))
1976 (synopsis "Console address book using CardDAV")
1977 (description "Khard is an address book for the console. It creates, reads,
1978 modifies and removes CardDAV address book entries at your local machine. For
1979 synchronizing with a remote address book, @command{vdirsyncer} is recommended.
1980 Khard can also be used from within the email client @command{mutt}.")
1981 (home-page "https://github.com/scheibler/khard")
1984 (define-public perl-mail-spf
1986 (name "perl-mail-spf")
1992 "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-v"
1996 (base32 "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1"))))
1997 (build-system perl-build-system)
1999 `(("perl-module-build" ,perl-module-build)
2000 ("perl-net-dns-resolver-programmable"
2001 ,perl-net-dns-resolver-programmable)))
2004 (modify-phases %standard-phases
2005 (add-before 'configure 'modify-Build.PL
2006 (lambda* (#:key outputs #:allow-other-keys)
2007 (substitute* "Build.PL"
2008 (("'/usr/sbin'") (string-append "'"
2009 (assoc-ref outputs "out")
2013 `(("perl-error" ,perl-error)
2014 ("perl-net-dns" ,perl-net-dns)
2015 ("perl-netaddr-ip" ,perl-netaddr-ip)
2016 ("perl-uri" ,perl-uri)))
2017 (home-page "https://metacpan.org/release/Mail-SPF")
2018 (synopsis "Perl implementation of Sender Policy Framework")
2019 (description "Mail::SPF is the Sender Policy Framework implemented
2023 (define-public perl-mail-authenticationresults
2025 (name "perl-mail-authenticationresults")
2026 (version "1.20180923")
2030 "mirror://cpan/authors/id/M/MB/MBRADSHAW/"
2031 "Mail-AuthenticationResults-" version ".tar.gz"))
2034 "1g1wym9vcbhldwvi4w5pl0fhd4jh2icj975awf4wr5xmkli9mxbz"))))
2035 (build-system perl-build-system)
2037 `(("perl-test-exception" ,perl-test-exception)))
2038 (home-page "https://metacpan.org/release/Mail-AuthenticationResults")
2039 (synopsis "Object Oriented Authentication-Results Headers")
2040 (description "Mail::AuthenticationResults parses the message header field
2041 that indicates the message authentication status as per RFC7601. This module
2042 is not fully compliant with the RFC but it tries to implement most styles of
2043 Authentication-Results header seen in the wild.")
2044 (license perl-license)))
2046 (define-public perl-mail-dkim
2048 (name "perl-mail-dkim")
2053 "mirror://cpan/authors/id/M/MB/MBRADSHAW/Mail-DKIM-"
2058 "0cgkal65qqcy57b21lgij90ba36wl66byw9i76g5yhwaa8ms8hqa"))))
2059 (build-system perl-build-system)
2061 `(("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2062 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2063 ("perl-mailtools" ,perl-mailtools)
2064 ("perl-net-dns" ,perl-net-dns)))
2066 `(("perl-net-dns-resolver-mock" ,perl-net-dns-resolver-mock)
2067 ("perl-test-requiresinternet" ,perl-test-requiresinternet)
2068 ("perl-yaml-libyaml" ,perl-yaml-libyaml)))
2069 (home-page "https://metacpan.org/release/Mail-DKIM")
2070 (synopsis "Signs/verifies Internet mail with DKIM/DomainKey signatures")
2071 (description "Mail::DKIM is a Perl module that implements the new Domain
2072 Keys Identified Mail (DKIM) standard, and the older Yahoo! DomainKeys standard,
2073 both of which sign and verify emails using digital signatures and DNS records.
2074 Mail-DKIM can be used by any Perl program that wants to provide support for
2075 DKIM and/or DomainKeys.")
2078 (define-public dkimproxy
2085 "mirror://sourceforge/dkimproxy/dkimproxy/"
2086 version "/dkimproxy-" version ".tar.gz"))
2089 "1gc5c7lg2qrlck7b0lvjfqr824ch6jkrzkpsn0gjvlzg7hfmld75"))
2091 (search-patches "dkimproxy-add-ipv6-support.patch"))))
2092 (build-system gnu-build-system)
2095 (modify-phases %standard-phases
2096 (add-after 'install 'make-wrapper
2097 (lambda* (#:key inputs outputs #:allow-other-keys)
2098 (let* ((out (assoc-ref outputs "out"))
2099 (wrap.pl (lambda (scripts keys)
2102 (wrap-program (string-append out script)
2103 `("PERL5LIB" ":" prefix
2106 (assoc-ref inputs input)
2107 "/lib/perl5/site_perl"))
2110 (wrap.pl (list "/bin/dkimproxy.in"
2111 "/bin/dkimproxy.out")
2112 (list "perl-crypt-openssl-rsa"
2113 "perl-io-socket-inet6"
2115 "perl-mail-authenticationresults"
2120 (wrap.pl (list "/bin/dkim_responder.pl")
2121 (list "perl-crypt-openssl-rsa"
2130 ("perl-crypt-openssl-rsa" ,perl-crypt-openssl-rsa)
2131 ("perl-io-socket-inet6" ,perl-io-socket-inet6)
2132 ("perl-mailtools" ,perl-mailtools)
2133 ("perl-mail-authenticationresults" ,perl-mail-authenticationresults)
2134 ("perl-mail-dkim" ,perl-mail-dkim)
2135 ("perl-mime-tools" ,perl-mime-tools)
2136 ("perl-net-dns" ,perl-net-dns)
2137 ("perl-net-server" ,perl-net-server)
2138 ("perl-socket6" ,perl-socket6)
2139 ("perl-timedate" ,perl-timedate)))
2140 (home-page "http://dkimproxy.sourceforge.net/")
2141 (synopsis "SMTP proxy to sign and verify Internet mail with DKIM headers")
2143 "DKIMproxy is an SMTP proxy that signs and verifies Internet mail using the
2144 @code{Mail::DKIM} Perl module. It comprises two separate proxies: an outbound
2145 proxy for signing outgoing email, and an inbound proxy for verifying signatures
2146 of incoming messages.
2148 It was designed for Postfix, but can be used to add DKIM support to nearly any
2149 existing mail server. With Postfix, the proxies can operate as either
2150 @code{Before-Queue} or @code{After-Queue} content filters.")
2153 (define-public mb2md
2160 "http://batleth.sapienti-sat.org/projects/mb2md/mb2md-"
2164 "0bvkky3c90738h3skd2f1b2yy5xzhl25cbh9w2dy97rs86ssjidg"))))
2165 (build-system trivial-build-system)
2167 '(#:modules ((guix build utils))
2170 (use-modules (guix build utils))
2171 (let* ((source (assoc-ref %build-inputs "source"))
2172 (out (assoc-ref %outputs "out"))
2173 (bin (string-append out "/bin"))
2174 (perl (assoc-ref %build-inputs "perl"))
2175 (gzip (assoc-ref %build-inputs "gzip"))
2176 (perl-timedate (assoc-ref %build-inputs "perl-timedate"))
2177 (perl5lib (string-append perl-timedate "/lib/perl5/site_perl")))
2179 (with-directory-excursion bin
2180 (copy-file source "mb2md.gz")
2181 (invoke (string-append gzip "/bin/gzip") "-d" "mb2md.gz")
2182 (substitute* "mb2md"
2183 (("#!/usr/bin/perl")
2184 (string-append "#!/usr/bin/perl -I " perl5lib)))
2185 (patch-shebang "mb2md" (list (string-append perl "/bin")))
2186 (chmod "mb2md" #o555))
2188 (native-inputs `(("gzip" ,gzip)))
2189 (inputs `(("perl" ,perl)
2190 ("perl-timedate" ,perl-timedate)))
2191 (home-page "http://batleth.sapienti-sat.org/projects/mb2md/")
2192 (synopsis "Mbox to maildir converter")
2194 "Mb2md is a Perl script that takes one or more mbox format files and
2195 converts them to maildir format directories.")
2196 (license public-domain)))
2205 (uri (string-append "https://marlam.de/mpop/releases/"
2206 "mpop-" version ".tar.xz"))
2208 (base32 "1243hazpiwgvz2m3p48cdh0yw1019i6xjxgc7qyhmxcdy0inb6wy"))))
2209 (build-system gnu-build-system)
2211 `(("gnutls" ,gnutls)))
2213 `(("pkg-config" ,pkg-config)))
2214 (home-page "https://marlam.de/mpop/")
2215 (synopsis "POP3 mail client")
2216 (description "mpop is a small and fast POP3 client suitable as a
2217 fetchmail replacement.
2219 mpop supports multiple accounts, header based mail filtering, delivery
2220 to mbox files, maildir folders or an @acronym{MDA, Mail Delivery Agent},
2221 TLS/SSL, several authentication methods, @acronym{IDN, Internationalized Domain
2222 Names} and SOCKS proxies.")
2225 (define-public mhonarc
2232 (uri (string-append "mirror://cpan/authors/id/E/EH/EHOOD/MHonArc-"
2236 "0ll3v93yji334zqp6xfzfxc0127pmjcznmai1l5q6dzawrs2igzq"))))
2237 (build-system perl-build-system)
2238 (home-page "https://www.mhonarc.org/")
2239 (synopsis "Create HTML archives of mail/news messages")
2241 "MHonArc is a Perl mail-to-HTML converter. MHonArc
2242 provides HTML mail archiving with index, mail thread linking,
2243 etc; plus other capabilities including support for MIME and
2244 powerful user customization features.")
2248 (define-public sendmail
2256 "ftp://ftp.sendmail.org/pub/sendmail/sendmail."
2260 "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94"))))
2261 (build-system gnu-build-system)
2264 (modify-phases %standard-phases
2265 (add-before 'build 'replace-/bin/sh
2269 (list "smrsh/smrsh.c" "sendmail/conf.c" "contrib/mailprio"
2270 "contrib/mmuegel" "devtools/bin/configure.sh")
2271 (find-files "." ".*\\.m4")
2272 (find-files "." ".*\\.cf"))
2273 (("/bin/sh") (which "sh")))
2275 (substitute* "devtools/bin/Build"
2276 (("SHELL=/bin/sh") (string-append "SHELL=" (which "sh"))))
2281 ;; Render harmless any attempts to chown or chgrp
2282 (substitute* "devtools/bin/install.sh"
2283 (("owner=\\$2") "owner=''")
2284 (("group=\\$2") "group=''"))
2286 (with-output-to-file "devtools/Site/site.config.m4"
2289 define(`confCC', `gcc')
2290 define(`confOPTIMIZE', `-g -O2')
2291 define(`confLIBS', `-lresolv')
2292 define(`confINSTALL', `~a/devtools/bin/install.sh')
2293 define(`confDEPEND_TYPE', `CC-M')
2294 define(`confINST_DEP', `')
2299 (invoke "sh" "Build")
2300 (with-directory-excursion "cf/cf"
2301 (copy-file "generic-linux.mc" "sendmail.mc")
2302 (invoke "sh" "Build" "sendmail.cf"))
2304 (add-before 'install 'pre-install
2306 (let ((out (assoc-ref %outputs "out")))
2307 (mkdir-p (string-append out "/usr/bin"))
2308 (mkdir-p (string-append out "/usr/sbin"))
2309 (mkdir-p (string-append out "/etc/mail"))
2310 (setenv "DESTDIR" out)
2311 (with-directory-excursion "cf/cf"
2312 (invoke "sh" "Build" "install-cf"))
2314 ;; There is no make check. There are some post installation tests, but those
2315 ;; require root privileges
2320 (home-page "http://sendmail.org")
2322 "Highly configurable Mail Transfer Agent (MTA)")
2324 "Sendmail is a mail transfer agent (MTA) originally developed by Eric
2325 Allman. It is highly configurable and supports many delivery methods and many
2326 transfer protocols.")
2327 (license (non-copyleft "file://LICENSE"
2328 "See LICENSE in the distribution."))))
2330 (define-public opensmtpd
2337 (uri (string-append "https://www.opensmtpd.org/archives/"
2338 "opensmtpd-" version ".tar.gz"))
2340 (base32 "1jh8vxfajm1mvp1v5yh6llrhjzv0n9fgab88mlwllwqynhcfjy3l"))))
2341 (build-system gnu-build-system)
2345 ("libevent" ,libevent)
2346 ("libressl" ,libressl) ; recommended, and supports e.g. ECDSA
2347 ("linux-pam" ,linux-pam)
2351 ("groff" ,groff))) ; for man pages
2354 (list "--localstatedir=/var"
2355 ;; This is the default only if it exists at build time—it doesn't.
2356 "--with-path-socket=/var/run"
2357 "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt"
2358 "--with-user-smtpd=smtpd"
2359 "--with-user-queue=smtpq" "--with-group-queue=smtpq"
2363 (modify-phases %standard-phases
2364 ;; See: https://github.com/OpenSMTPD/OpenSMTPD/issues/1069.
2365 (add-after 'unpack 'fix-smtpctl-encrypt-bug
2367 (substitute* "smtpd/smtpctl.c"
2368 (("\"encrypt\", \"--\",")
2371 ;; Fix some incorrectly hard-coded external tool file names.
2372 (add-after 'unpack 'patch-FHS-file-names
2374 (substitute* "smtpd/smtpctl.c"
2375 ;; ‘gzcat’ is auto-detected at compile time, but ‘cat’ isn't.
2376 (("/bin/cat") (which "cat")))
2377 (substitute* "smtpd/mda_unpriv.c"
2378 (("/bin/sh") (which "sh")))
2380 ;; OpenSMTPD provides a single smtpctl utility to control both the
2381 ;; daemon and the local submission subsystem. To accomodate systems
2382 ;; that require historical interfaces such as sendmail, newaliases or
2383 ;; makemap, smtpctl operates in compatibility mode if called with the
2385 (add-after 'install 'install-compability-links
2386 (lambda* (#:key outputs #:allow-other-keys)
2387 (let* ((out (assoc-ref outputs "out"))
2388 (sbin (string-append out "/sbin/")))
2389 (for-each (lambda (command)
2390 (symlink "smtpctl" (string-append sbin command)))
2391 (list "mailq" "makemap" "newaliases"
2392 "send-mail" "sendmail")))
2394 (synopsis "Lightweight SMTP daemon")
2396 "OpenSMTPD is an implementation of server-side @acronym{SMTP, Simple Mail
2397 Transfer Protocol}, with some additional standard extensions. It allows
2398 ordinary machines to exchange e-mails with other systems speaking the SMTP
2399 protocol, or to deliver them to local users.
2401 In order to simplify the use of SMTP, OpenSMTPD implements a smaller set of
2402 functionality than those available in other SMTP daemons. The objective is to
2403 provide enough features to satisfy typical usage at the risk of unsuitability
2404 to esoteric or niche requirements.")
2405 (home-page "https://www.opensmtpd.org")
2406 (license (list bsd-2 bsd-3 bsd-4 (non-copyleft "file://COPYING")
2407 public-domain isc license:openssl))))
2409 (define-public opensmtpd-extras
2411 (name "opensmtpd-extras")
2415 (uri (string-append "https://www.opensmtpd.org/archives/"
2416 name "-" version ".tar.gz"))
2419 "1kld4hxgz792s0cb2gl7m2n618ikzqkj88w5dhaxdrxg4x2c4vdm"))))
2420 (build-system gnu-build-system)
2422 `(("libressl" ,libressl)
2423 ("libevent" ,libevent)
2425 ("python-2" ,python-2)
2426 ("opensmtpd" ,opensmtpd)
2429 ("postgresql" ,postgresql)
2431 ("linux-pam" ,linux-pam)))
2434 ("pkg-config" ,pkg-config)
2436 ("automake" ,automake)
2437 ("autoconf" ,autoconf)))
2439 `(;; We have to configure it like this because the default checks for for example
2440 ;; python in /usr/local/bin, /usr/bin and fails otherwise.
2441 #:configure-flags (list
2442 "--with-filter-clamav" "--with-filter-dkim-signer"
2443 "--with-filter-dnsbl" "--with-filter-lua"
2444 "--with-filter-monkey" "--with-filter-pause"
2445 "--with-filter-perl" "--with-filter-python"
2446 "--with-filter-regex" "--with-filter-spamassassin"
2447 "--with-filter-stub" "--with-filter-trace"
2448 "--with-filter-void"
2450 "--with-queue-null" "--with-queue-python"
2451 "--with-queue-ram" "--with-queue-stub"
2453 "--with-scheduler-python" "--with-scheduler-ram"
2454 "--with-scheduler-stub"
2456 "--with-table-ldap" ; "--with-table-mysql"
2457 "--with-table-passwd" "--with-table-postgres"
2458 "--with-table-python" "--with-table-socketmap"
2459 "--with-table-sqlite" "--with-table-stub"
2460 ;;"--with-table-redis" ; TODO: package hiredis
2462 "--with-user=smtpd" "--with-privsep-user=smtpd"
2463 "--localstatedir=/var" "--sysconfdir=/etc"
2464 "--with-lua-type=lua" ; can use lua or luajit
2466 (string-append "--with-python="
2467 (assoc-ref %build-inputs "python-2"))
2468 (string-append "--with-lua="
2469 (assoc-ref %build-inputs "lua")))))
2470 (license (list bsd-2 bsd-3 bsd-4
2471 public-domain isc license:openssl))
2472 (synopsis "Extra tables, filters, and various other addons for OpenSMTPD")
2474 "This package provides extra tables, filters, and various other addons
2475 for OpenSMTPD to extend its functionality.")
2476 (home-page "https://www.opensmtpd.org")))
2478 (define-public python-mailmanclient
2480 (name "python-mailmanclient")
2485 (uri (pypi-uri "mailmanclient" version))
2488 "0fdfs5g3pf30v2i7w18pdkv9xnfxmfcv66mzv56dck0a1igq07m3"))))
2489 (build-system python-build-system)
2491 `(#:tests? #f)) ; Requires mailman running
2493 `(("python-six" ,python-six)
2494 ("python-httplib2" ,python-httplib2)))
2495 (home-page "https://launchpad.net/mailman.client")
2496 (synopsis "Python bindings for the Mailman 3 REST API")
2498 "The mailmanclient library provides official Python bindings for
2499 the GNU Mailman 3 REST API.")
2502 (define-public python2-mailmanclient
2503 (package-with-python2 python-mailmanclient))
2505 (define-public mlmmj
2512 (uri (string-append "http://mlmmj.org/releases/mlmmj-"
2513 version ".tar.bz2"))
2516 "0hpj10qad821ci11si8xc2qnmkzfn90y13s43fm4fca38f0qjp8w"))))
2517 (build-system gnu-build-system)
2519 `(("perl" ,perl))) ; For "contrib/web/"
2521 `(("pkg-config" ,pkg-config)))
2524 ;; mlmmj-receive-strip is a replacement for mlmmj-receive
2525 ;; It opens the files control/mimedeny and control/mimestrip to get a list
2526 ;; of mimetypes for parts of multipart/mime messages that should be denied
2527 ;; or stripped. The parts then get stripped directly when the mail is
2528 ;; received. mlmmj-receive-strip also appends an extra header
2529 ;; X-ThisMailContainsUnwantedMimeParts: Y when the mail contains unwanted
2531 (list "--enable-receive-strip")
2533 (modify-phases %standard-phases
2534 (add-before 'install 'install-contrib
2535 (lambda* (#:key outputs #:allow-other-keys)
2536 (let* ((out (assoc-ref outputs "out"))
2537 (share (string-append out "/share/mlmmj"))
2538 (contrib (string-append share "/contrib/web"))
2539 (texts (string-append share "/listtexts")))
2540 (copy-recursively "contrib/web/" contrib)
2541 (copy-recursively "listtexts" texts)
2542 (rename-file texts (string-append share "/texts"))
2544 (home-page "http://mlmmj.org")
2545 (synopsis "Mailing list managing made joyful")
2547 "Mlmmj is a simple and slim mailing list manager (MLM) inspired by ezmlm.
2548 It works with many different Mail Transport Agents (MTAs) and is simple for a
2549 system administrator to install, configure and integrate with other software.
2550 As it uses very few resources, and requires no daemons, it is ideal for
2551 installation on systems where resources are limited. Its features include:
2553 @item Archive, Custom headers / footer,
2554 @item Fully automated bounce handling (similar to ezmlm),
2555 @item Complete requeueing functionality, Moderation functionality, Subject prefix,
2556 @item Subscribers only posting, Regular expression access control,
2557 @item Functionality to retrieve old posts, Web interface, Digests,
2558 @item No-mail subscription, VERP support,
2559 @item Delivery Status Notification (RFC1891) support,
2560 @item Rich and customisable texts for automated operations.
2562 (license license:expat)))
2564 (define-public python2-django-mailman3
2566 (name "python2-django-mailman3")
2571 (uri (pypi-uri "django-mailman3" version))
2574 "1xjdkgfjwhgyrp5nxw65dcpcsr98ygj6856sp0bwkrmyxpd1xxk2"))))
2575 (build-system python-build-system)
2578 (modify-phases %standard-phases
2581 (invoke "django-admin"
2583 "--settings=django_mailman3.tests.settings_test"
2584 "django_mailman3"))))
2585 #:python ,python-2))
2587 `(("python2-django" ,python2-django)))
2589 `(("python2-requests" ,python2-requests)
2590 ("python2-requests-oauthlib" ,python2-requests-oauthlib)
2591 ("python2-openid" ,python2-openid)
2592 ("python2-mailmanclient" ,python2-mailmanclient)
2593 ("python2-django-allauth" ,python2-django-allauth)
2594 ("python2-django-gravatar2" ,python2-django-gravatar2)
2595 ("python2-pytz" ,python2-pytz)))
2596 (home-page "https://gitlab.com/mailman/django-mailman3")
2597 (synopsis "Django library for Mailman UIs")
2599 "Libraries and templates for Django-based interfaces
2600 interacting with Mailman.")
2603 (define-public postorius
2610 (uri (pypi-uri "postorius" version "+post2.tar.gz"))
2611 (file-name (string-append name "-" version ".tar.gz"))
2614 "1wymcpv2icjjy8h1ni52p6dr7wwxf71ivqgbqhzx4i82yqphcaq5"))))
2615 (build-system python-build-system)
2617 `(; One test dependency relies on Persona, which was shut down in
2620 ;; The part of the frontend of Mailman is still python 2.7.
2621 #:python ,python-2))
2623 `(("python2-django" ,python2-django)
2624 ("python2-django-mailman3" ,python2-django-mailman3)
2625 ("python2-mailmanclient" ,python2-mailmanclient)))
2626 (home-page "https://gitlab.com/mailman/postorius")
2627 (synopsis "Web user interface for GNU Mailman")
2629 "Postorius is a Django app which provides a web user interface
2630 to access GNU Mailman.")
2631 (license (list gpl3+ lgpl3+))))
2633 (define-public blists
2640 (uri (string-append "http://download.openwall.net/pub/projects/"
2641 "blists/blists-" version ".tar.gz"))
2644 "1xll5wn7py3bbncbwrj172f56nz75c9gwfsa80rwd96ss9gfmp3c"))))
2645 (build-system gnu-build-system)
2647 `(#:tests? #f ; No tests
2649 (modify-phases %standard-phases
2652 (lambda* (#:key outputs #:allow-other-keys)
2653 (let* ((out (assoc-ref outputs "out"))
2654 (bin (string-append out "/bin")))
2655 (install-file "bindex" bin)
2656 (install-file "bit" bin)
2658 (home-page "http://www.openwall.com/blists/")
2659 (synopsis "Web interface to mailing list archives")
2661 "Blists is a web interface to mailing list archives that works off
2662 indexed mbox files. There are two programs: @code{bindex} and @code{bit}.
2663 @code{bindex} generates or updates the index file (incremental updates
2664 are supported). @code{bit} is a CGI/SSI program that generates web pages
2665 on the fly. Both programs are written in C and are very fast.")
2666 (license license:expat)))
2668 (define-public swaks
2671 (version "20190914.0")
2676 "https://jetmore.org/john/code/swaks/files/swaks-"
2680 "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp"))))
2681 (build-system perl-build-system)
2683 `(("perl-net-dns" ,perl-net-dns)
2684 ("perl-net-ssleay" ,perl-net-ssleay)))
2686 `(#:tests? #f ; No tests
2688 (modify-phases %standard-phases
2692 (invoke "pod2man" "doc/ref.pod" "swaks.1")))
2694 (lambda* (#:key outputs #:allow-other-keys)
2695 (let ((out (assoc-ref outputs "out")))
2696 (install-file "swaks" (string-append out "/bin"))
2697 (install-file "swaks.1" (string-append out "/share/man/man1")))
2699 (add-after 'install 'wrap-program
2700 (lambda* (#:key outputs #:allow-other-keys)
2701 (wrap-program (string-append (assoc-ref outputs "out")
2703 `("PERL5LIB" ":" = (,(getenv "PERL5LIB"))))
2705 (home-page "https://jetmore.org/john/code/swaks/")
2706 (synopsis "Featureful SMTP test tool")
2707 (description "Swaks is a flexible, scriptable, transaction-oriented SMTP
2708 test tool. It handles SMTP features and extensions such as TLS,
2709 authentication, and pipelining; multiple versions of the SMTP protocol
2710 including SMTP, ESMTP, and LMTP; and multiple transport methods including
2711 unix-domain sockets, internet-domain sockets, and pipes to spawned processes.
2712 Options can be specified in environment variables, configuration files, and
2713 the command line allowing maximum configurability and ease of use for
2714 operators and scripters.")
2717 (define-public alpine
2720 ;; Upstream doesn't use git tags, but does ‘tag’ their releases in the
2721 ;; commit message. Hence the lack of GIT-VERSIONing despite using a commit
2722 ;; ID below. Don't forget to update it…
2727 ;; There are two versions: the plain continuation of Alpine without extra
2728 ;; patches and the version which adds extra fixes. Every distro uses
2729 ;; the patched version, and so do we to not break expectations.
2730 ;; http://alpine.freeiz.com/alpine/readme/README.patches
2732 (url "http://repo.or.cz/alpine.git")
2733 (commit "b50297779a4becb9ceca9c6b5b375d526fe3df78")))
2734 (file-name (git-file-name name version))
2736 (base32 "06js44fvdl7l33hfd4lsxpcd1cz3c0h796cswyzz0lkrzx89yl48"))
2737 (modules '((guix build utils)))
2740 ;; Remove pre-built binaries scattered across the source repository.
2741 (for-each delete-file (find-files "." "\\.(dll|exe)"))
2743 (build-system gnu-build-system)
2746 (list (string-append "CC=" ,(cc-for-target)))
2747 #:configure-flags (list (string-append "--with-ssl-include-dir="
2748 (assoc-ref %build-inputs "openssl")
2750 (string-append "--with-ssl-dir="
2751 (assoc-ref %build-inputs "openssl"))
2752 (string-append "--with-ssl-certs-dir="
2754 (string-append "--with-ssl-lib-dir="
2755 (assoc-ref %build-inputs "openssl")
2757 (string-append "--with-interactive-spellcheck="
2758 (assoc-ref %build-inputs "aspell")
2760 "--with-date-stamp=Thu 1 Jan 01:00:01 CET 1970")
2762 (modify-phases %standard-phases
2763 (add-after 'unpack 'assume-shadow-passwords
2764 ;; Alpine's configure script confuses ‘shadow password support’ with
2765 ;; ‘/etc/shadow exists in the build environment’. It does not.
2767 (substitute* "configure"
2768 (("test -f /etc/shadow") "true"))
2770 (add-after 'unpack 'make-reproducible
2772 ;; This removes time-dependent code to make alpine reproducible.
2773 (substitute* "pico/blddate.c"
2774 (("%02d-%s-%d") "1970-01-01"))
2777 `(("ncurses" ,ncurses)
2778 ("openssl" ,openssl)
2780 ("openldap" ,openldap)
2781 ("cyrus-sasl" ,cyrus-sasl)
2782 ("mit-krb5" ,mit-krb5)
2785 ("linux-pam" ,linux-pam)))
2786 (home-page "https://repo.or.cz/alpine.git")
2787 (synopsis "Alternatively Licensed Program for Internet News and Email")
2789 "Alpine is a text-based mail and news client. Alpine includes several
2790 tools and applications:
2792 @item alpine, the Alpine mailer
2793 @item pico, the standalone text editor, GNU nano's predecessor
2794 @item pilot, the standalone file system navigator
2798 (define-public balsa
2805 (uri (string-append "https://pawsa.fedorapeople.org/balsa/"
2806 "balsa-" version ".tar.bz2"))
2808 (base32 "1xkxx801p7sbfkn0bh3cz85wra4xf1z1zhjqqc80z1z1nln7fhb4"))))
2809 (build-system gnu-build-system)
2812 '(;; Balsa tries to install additional MIME icons
2813 ;; under gtk+ directory.
2814 "--enable-extra-mimeicons=no"
2815 "--with-gtksourceview"
2817 "--with-spell-checker=gtkspell"
2823 `(("cyrus-sasl" ,cyrus-sasl)
2824 ("enchant" ,enchant)
2825 ("gdk-pixbuf" ,gdk-pixbuf)
2830 ("gtksourceview" ,gtksourceview-3)
2831 ("gtkspell3" ,gtkspell3)
2832 ("libcanberra" ,libcanberra)
2833 ("libesmtp" ,libesmtp)
2834 ("libical" ,libical)
2835 ("libnotify" ,libnotify)
2836 ("libsecret" ,libsecret)
2837 ("openldap" ,openldap)
2839 ("webkitgtk" ,webkitgtk)))
2841 `(("compface" ,compface)
2842 ("glib" ,glib "bin")
2843 ("intltool" ,intltool)
2844 ("pkg-config" ,pkg-config)
2845 ("yelp-tools" ,yelp-tools)))
2846 (home-page "https://pawsa.fedorapeople.org/balsa")
2847 (synopsis "E-mail client for GNOME")
2848 (description "Balsa is a highly configurable and robust mail client for
2849 the GNOME desktop. It supports both POP3 and IMAP servers as well as the
2850 mbox, maildir and mh local mailbox formats. Balsa also supports SMTP and/or
2851 the use of a local MTA such as Sendmail.")
2861 (uri (pypi-uri "afew" version))
2864 "121w7bd53xyibllxxbfykjj76n81kn1vgjqd22izyh67y8qyyk5r"))))
2865 (build-system python-build-system)
2867 `(("python-chardet" ,python-chardet)
2868 ("python-notmuch" ,python-notmuch)))
2870 `(("python-setuptools-scm" ,python-setuptools-scm)))
2871 (home-page "https://github.com/afewmail/afew")
2872 (synopsis "Initial tagging script for notmuch mail")
2873 (description "afew is an initial tagging script for notmuch mail. It
2874 provides automatic tagging each time new mail is registered with notmuch. It
2875 can add tags based on email headers or Maildir folders and can handle spam and
2886 (uri (string-append "http://pan.rebelbase.com/download/releases/"
2887 version "/source/" name "-" version ".tar.bz2"))
2889 (base32 "17agd27sn4a7nahvkpg0w39kv74njgdrrygs74bbvpaj8rk2hb55"))))
2891 `(#:configure-flags '("--with-gtk3" "--with-gtkspell" "--with-gnutls"
2892 "--enable-libnotify" "--enable-manual"
2895 (modify-phases %standard-phases
2896 (add-before 'configure 'patch-gpg2
2897 (lambda* (#:key inputs #:allow-other-keys)
2898 (substitute* "pan/usenet-utils/gpg.cc"
2899 (("\"gpg2\"") (string-append "\""
2900 (assoc-ref inputs "gnupg")
2904 `(("gmime" ,gmime-2.6)
2908 ("gtkspell3" ,gtkspell3)
2909 ("libnotify" ,libnotify)
2910 ("libsecret" ,libsecret)
2911 ("libxml2" ,libxml2)
2914 `(("gettext-minimal" ,gettext-minimal)
2915 ("itstool" ,itstool)
2916 ("pkg-config" ,pkg-config)))
2917 (build-system gnu-build-system)
2918 (home-page "http://pan.rebelbase.com/")
2919 (synopsis "Pan newsreader")
2920 (description "@code{pan} is a Usenet newsreader that's good at both text
2921 and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB,
2922 PGP handling, multiple servers, and secure connections.")
2923 ;; License of the docs: fdl-1.1; Others: gpl2.
2924 (license (list fdl1.1+ gpl2))))
2926 (define-public imapfilter
2934 (url "https://github.com/lefcha/imapfilter.git")
2935 (commit (string-append "v" version))))
2936 (file-name (git-file-name name version))
2938 (base32 "0f65sg6hhv6778fxwsz4hvarbm97dsb8jj0mg7a9qs273r35pqck"))))
2939 (build-system gnu-build-system)
2943 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
2946 (modify-phases %standard-phases
2947 (delete 'configure)))) ; no configure script
2951 ("openssl" ,openssl)))
2952 (home-page "https://github.com/lefcha/imapfilter")
2953 (synopsis "IMAP mail filtering utility")
2954 (description "IMAPFilter is a mail filtering utility. It connects
2955 to remote mail servers using IMAP, sends searching queries to the server and
2956 processes mailboxes based on the results. It can be used to delete, copy,
2957 move, flag, etc. messages residing in mailboxes at the same or different mail
2958 servers. The 4rev1 and 4 versions of IMAP are supported.")
2959 (license license:expat)))
2961 (define-public urlscan
2968 (uri (pypi-uri "urlscan" version))
2970 (base32 "1q0vxv9haap01vz1cbkzss62cgwb9365lv5vnkg2gbpx4g5y7a9l"))))
2971 (build-system python-build-system)
2973 `(("python-urwid" ,python-urwid)))
2974 (home-page "https://github.com/firecat53/urlscan")
2975 (synopsis "View/select the URLs in an email message or file")
2977 "Urlscan is a small program that is designed to integrate with the
2978 @code{mutt} mailreader to allow you to easily launch a Web browser for URLs
2979 contained in email messages. It parses an email message or file and scans it
2980 for URLs and email addresses. It then displays the URLs and their context
2981 within the message, and allows you to choose one or more URLs to send to your
2982 Web browser. Alternatively, it send a list of all URLs to stdout. It is a
2983 replacement for the @code{urlview} program.")
2994 (url "https://github.com/verdammelt/tnef.git")
2997 (base32 "104g48mcm00bgiyzas2vf86331w7bnw7h3bc11ib4lp7rz6zqfck"))
2998 (file-name (git-file-name name version))))
2999 (build-system gnu-build-system)
3001 `(("autoconf" ,autoconf)
3002 ("automake" ,automake)))
3003 (arguments `(#:parallel-tests? #f)) ;tests are side-effect'y
3004 (home-page "https://github.com/verdammelt/tnef")
3005 (synopsis "Unpack @code{application/ms-tnef} attachments")
3007 "TNEF is a tar-like program that unpacks MIME attachments of type
3008 @code{application/ms-tnef}.")
3012 (let ((commit "5a578328199bab51a147fbadbce12c8d06959ed6")
3016 (version (git-version "0.0.1" revision commit))
3020 (url "https://git.elephly.net/software/mumi.git")
3022 (file-name (git-file-name name version))
3025 "0hngv82gd19l4q7nnbf97r120z1yagsmkp0x3lc8haza5q4mc12c"))))
3026 (build-system gnu-build-system)
3028 `(#:modules ((guix build gnu-build-system)
3029 ((guix build guile-build-system)
3030 #:select (target-guile-effective-version))
3032 #:imported-modules ((guix build guile-build-system)
3033 ,@%gnu-build-system-modules)
3035 #:configure-flags '("--localstatedir=/var")
3038 (modify-phases %standard-phases
3039 (add-after 'install 'wrap-executable
3040 (lambda* (#:key outputs #:allow-other-keys)
3041 (let* ((out (assoc-ref outputs "out"))
3042 (bin (string-append out "/bin"))
3043 (version (target-guile-effective-version))
3044 (scm (string-append out "/share/guile/site/" version))
3045 (go (string-append out "/lib/guile/" version
3047 (wrap-program (string-append bin "/mumi")
3048 `("GUILE_LOAD_PATH" ":" prefix
3049 (,scm ,(getenv "GUILE_LOAD_PATH")))
3050 `("GUILE_LOAD_COMPILED_PATH" ":" prefix
3051 (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
3054 `(("guile-email" ,guile-email)
3055 ("guile-fibers" ,guile-fibers)
3056 ("guile-gcrypt" ,guile-gcrypt)
3057 ("guile-json" ,guile-json-3)
3058 ("guile-redis" ,guile-redis)
3059 ("guile-syntax-highlight" ,guile-syntax-highlight)
3060 ("guile-webutils" ,guile-webutils)
3061 ("guile-xapian" ,guile-xapian)
3062 ("guile" ,guile-3.0)
3063 ("mailutils" ,mailutils)))
3065 `(("autoconf" ,autoconf)
3066 ("automake" ,automake)
3067 ("pkg-config" ,pkg-config)))
3068 (home-page "https://git.elephly.net/software/mumi.git")
3069 (synopsis "Debbugs web interface")
3070 (description "Mumi is a Debbugs web interface.")
3073 (define-public ytnef
3080 (url "https://github.com/Yeraze/ytnef.git")
3081 (commit (string-append "v" version))))
3082 (file-name (git-file-name name version))
3085 "07h48s5qf08503pp9kafqbwipdqghiif22ghki7z8j67gyp04l6l"))))
3086 (build-system gnu-build-system)
3088 `(("autoconf" ,autoconf)
3089 ("automake" ,automake)
3090 ("libtool" ,libtool)))
3091 (home-page "https://github.com/Yeraze/ytnef/")
3092 (synopsis "TNEF stream reader for winmail.dat files")
3093 (description "This package provides a TNEF stream reader library and
3094 related tools to process winmail.dat files.")
3097 (define-public public-inbox
3098 (let ((commit "05a06f3262a2ddbf46adb85169e13ce9127e4524")
3101 (name "public-inbox")
3102 (version (git-version "1.2.0" revision commit))
3104 (origin (method git-fetch)
3106 (url "https://public-inbox.org")
3110 "06cclxg46gsls3x19l9s8s9x8gkjghm6gd4jb1v9ng6fds6xi2fg"))
3111 (file-name (git-file-name name version))))
3112 (build-system perl-build-system)
3115 (modify-phases %standard-phases
3116 (add-before 'configure 'qualify-paths
3118 ;; Use absolute paths for 'xapian-compact'.
3119 (let ((xapian-compact (which "xapian-compact")))
3120 (substitute* "script/public-inbox-compact"
3121 (("xapian-compact") xapian-compact)))
3123 (add-before 'check 'pre-check
3125 (substitute* "t/spawn.t"
3126 (("\\['env'\\]") (string-append "['" (which "env") "']")))
3127 (substitute* "t/ds-leak.t"
3128 (("/bin/sh") (which "sh")))
3129 (invoke "./certs/create-certs.perl")
3130 ;; XXX: This test fails due to zombie process is not reaped by
3132 (substitute* "t/httpd-unix.t"
3133 (("^SKIP: \\{") "SKIP: { skip('Guix');"))
3135 (add-after 'install 'wrap-programs
3136 (lambda* (#:key inputs outputs #:allow-other-keys)
3137 (let ((out (assoc-ref outputs "out")))
3141 ;; Let those scripts find their perl modules.
3142 `("PERL5LIB" ":" prefix
3143 (,(string-append out "/lib/perl5/site_perl")
3144 ,(getenv "PERL5LIB")))
3145 ;; 'git' is invoked in various files of the PublicInbox
3148 (,(string-append (assoc-ref inputs "git") "/bin")))))
3149 (find-files (string-append out "/bin"))))
3156 ("openssl" ,openssl)))
3158 `(("perl-dbd-sqlite" ,perl-dbd-sqlite)
3159 ("perl-dbi" ,perl-dbi)
3160 ("perl-email-address-xs" ,perl-email-address-xs)
3161 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
3162 ("perl-email-mime" ,perl-email-mime)
3163 ("perl-email-simple" ,perl-email-simple)
3164 ("perl-net-server" ,perl-net-server)
3165 ("perl-filesys-notify-simple" ,perl-filesys-notify-simple)
3166 ("perl-plack-middleware-deflater" ,perl-plack-middleware-deflater)
3167 ("perl-plack-middleware-reverseproxy" ,perl-plack-middleware-reverseproxy)
3168 ("perl-plack" ,perl-plack)
3169 ("perl-search-xapian" ,perl-search-xapian)
3170 ("perl-timedate" ,perl-timedate)
3171 ("perl-uri-escape" ,perl-uri-escape)
3173 ("perl-ipc-run" ,perl-ipc-run)
3174 ("perl-xml-feed" ,perl-xml-feed)))
3175 (home-page "https://public-inbox.org/README.html")
3176 (synopsis "Archive mailing lists in git repositories")
3178 "public-inbox implements the sharing of an email inbox via git to
3179 complement or replace traditional mailing lists. Readers may read via NNTP,
3180 Atom feeds or HTML archives.")
3183 (define-public sylpheed
3189 (uri (string-append "https://sylpheed.sraoss.jp/sylpheed/v3.7/"
3190 name "-" version ".tar.xz"))
3193 "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd"))))
3194 (build-system gnu-build-system)
3196 `(("pkg-config" ,pkg-config)))
3198 `(("bogofilter" ,bogofilter)
3199 ("compface" ,compface)
3202 ("gtk+-2.0" ,gtk+-2)
3203 ("gtkspell" ,gtkspell3)
3205 ("openldap" ,openldap)
3206 ("openssl" ,openssl)))
3207 (home-page "https://sylpheed.sraoss.jp/en/")
3208 (synopsis "Lightweight GTK+ email client")
3210 "Sylpheed is a simple, lightweight but featureful, and easy-to-use e-mail
3211 client. Sylpheed provides intuitive user-interface. Sylpheed is also
3212 designed for keyboard-oriented operation.")