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