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