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