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