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