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