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