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