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