gnu: packages: Use 'search-patches' everywhere.
[jackhill/guix/guix.git] / gnu / packages / mail.scm
CommitLineData
a661e420 1;;; GNU Guix --- Functional package management for GNU
3246cc91 2;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
722ec722 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
29a7c98a 4;;; Copyright © 2014 Ian Denhardt <ian@zenhack.net>
98e9e22f 5;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com>
f58f767b 6;;; Copyright © 2014 Julien Lepiller <julien@lepiller.eu>
66cc3ab2 7;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
17dd4329 8;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
ebda902f 9;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
2e88d113 10;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
21565719 11;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
34dd26af 12;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
8a75c589 13;;; Copyright © 2016 Al McElrath <hello@yrns.org>
823e2ed4 14;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
e90819c4 15;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
a661e420
LC
16;;;
17;;; This file is part of GNU Guix.
18;;;
19;;; GNU Guix is free software; you can redistribute it and/or modify it
20;;; under the terms of the GNU General Public License as published by
21;;; the Free Software Foundation; either version 3 of the License, or (at
22;;; your option) any later version.
23;;;
24;;; GNU Guix is distributed in the hope that it will be useful, but
25;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27;;; GNU General Public License for more details.
28;;;
29;;; You should have received a copy of the GNU General Public License
30;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
1fdd3ee2 32(define-module (gnu packages mail)
59a43334 33 #:use-module (gnu packages)
d983a14f 34 #:use-module (gnu packages autotools)
d2938d59 35 #:use-module (gnu packages base)
e8435c4d 36 #:use-module (gnu packages backup)
ee886454 37 #:use-module (gnu packages bash)
f8ae32a2 38 #:use-module (gnu packages bison)
f58f767b 39 #:use-module (gnu packages curl)
4fd6bf53 40 #:use-module (gnu packages cyrus-sasl)
81ce19f4 41 #:use-module (gnu packages databases)
d983a14f 42 #:use-module (gnu packages dejagnu)
d2938d59 43 #:use-module (gnu packages emacs)
e8435c4d 44 #:use-module (gnu packages enchant)
e8435c4d 45 #:use-module (gnu packages ghostscript)
d2938d59 46 #:use-module (gnu packages glib)
e8435c4d 47 #:use-module (gnu packages gnome)
524e1df6 48 #:use-module (gnu packages gnupg)
d6e941bc 49 #:use-module (gnu packages gsasl)
e8435c4d 50 #:use-module (gnu packages gtk)
1ffa7090 51 #:use-module (gnu packages guile)
f8ae32a2 52 #:use-module (gnu packages flex)
e8435c4d 53 #:use-module (gnu packages libcanberra)
d6e941bc 54 #:use-module (gnu packages libidn)
d983a14f
AE
55 #:use-module (gnu packages linux)
56 #:use-module (gnu packages m4)
1ffa7090 57 #:use-module (gnu packages ncurses)
66cc3ab2 58 #:use-module (gnu packages pcre)
13f04f48 59 #:use-module (gnu packages perl)
3919a31a 60 #:use-module (gnu packages python)
1ffa7090 61 #:use-module (gnu packages readline)
d2938d59 62 #:use-module (gnu packages search)
1ffa7090 63 #:use-module (gnu packages texinfo)
681a6588
MW
64 #:use-module (gnu packages compression)
65 #:use-module (gnu packages glib)
66 #:use-module (gnu packages pkg-config)
a7e59c50 67 #:use-module (gnu packages flex)
1bd3f849
DT
68 #:use-module (gnu packages gdb)
69 #:use-module (gnu packages samba)
a7fd7b68 70 #:use-module (gnu packages tls)
f58f767b 71 #:use-module (gnu packages xml)
e8435c4d 72 #:use-module (gnu packages xorg)
d983a14f 73 #:use-module ((guix licenses)
61c30e9d
LF
74 #:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+
75 non-copyleft (expat . license:expat)))
a661e420
LC
76 #:use-module (guix packages)
77 #:use-module (guix download)
f8ae32a2 78 #:use-module (guix git-download)
29a7c98a 79 #:use-module (guix utils)
681a6588 80 #:use-module (guix build-system gnu)
ebda902f 81 #:use-module (guix build-system perl)
29a7c98a 82 #:use-module (guix build-system python))
a661e420
LC
83
84(define-public mailutils
85 (package
86 (name "mailutils")
87 (version "2.2")
88 (source (origin
89 (method url-fetch)
90 (uri (string-append "mirror://gnu/mailutils/mailutils-"
91 version ".tar.bz2"))
92 (sha256
93 (base32
01eafd38 94 "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65"))
fc1adab1 95 (patches (search-patches "m4-gets-undeclared.patch"))))
a661e420
LC
96 (build-system gnu-build-system)
97 (arguments
98 '(;; TODO: Add `--with-sql'.
a661e420
LC
99 #:phases (alist-cons-before
100 'build 'pre-build
101 (lambda _
102 ;; Use Guile 2.0's public API.
103 (substitute* "libmu_scm/mu_message.c"
104 (("scm_i_string_length")
105 "scm_c_string_length"))
106
107 ;; This file should be generated to use the right
108 ;; value of $(libdir) et al.
109 (delete-file "libmu_scm/mailutils.scm")
110
111 ;; Use the right file name for `cat'.
112 (substitute* "testsuite/lib/mailutils.exp"
113 (("/bin/cat")
114 (which "cat"))))
115 %standard-phases)
116 #:parallel-tests? #f))
117 (inputs
118 `(("dejagnu" ,dejagnu)
119 ("m4" ,m4)
120 ("texinfo" ,texinfo)
121 ("guile" ,guile-2.0)
122 ("gnutls" ,gnutls)
123 ("ncurses" ,ncurses)
eb8cc645
MW
124
125 ;; With Readline 6.3, examples/pop3client.c fails to build because it
126 ;; uses the now undefined 'CPPFunction' type.
127 ("readline" ,readline-6.2)
128
a661e420 129 ("linux-pam" ,linux-pam)
3246cc91 130 ("libltdl" ,libltdl)
01eafd38 131 ("gdbm" ,gdbm)))
a661e420 132 (home-page "http://www.gnu.org/software/mailutils/")
f50d2669 133 (synopsis "Utilities and library for reading and serving mail")
a661e420 134 (description
79c311b8
LC
135 "GNU Mailutils is a collection of programs for managing, viewing and
136processing electronic mail. It contains both utilities and server daemons
137and all operate in a protocol-agnostic way. The underlying libraries are
138also available, simplifying the addition of mail capabilities to new
139software.")
a661e420
LC
140 (license
141 ;; Libraries are under LGPLv3+, and programs under GPLv3+.
142 (list gpl3+ lgpl3+))))
d983a14f
AE
143
144(define-public fetchmail
145 (package
146 (name "fetchmail")
147 (version "6.3.26")
148 (source (origin
149 (method url-fetch)
150 (uri (string-append "mirror://sourceforge/fetchmail/branch_6.3/fetchmail-"
151 version ".tar.xz"))
152 (sha256
153 (base32
154 "0l78ayvi9dm8hd190gl139cs2xqsrf7r9ncilslw20mgvd6cbd3r"))))
155 (build-system gnu-build-system)
156 (inputs
157 `(("openssl" ,openssl)))
158 (arguments
159 `(#:configure-flags (list (string-append "--with-ssl="
160 (assoc-ref %build-inputs "openssl")))))
07af3e5e 161 (home-page "http://www.fetchmail.info/")
ae2189a9 162 (synopsis "Remote-mail retrieval and forwarding utility")
d983a14f
AE
163 (description
164 "Fetchmail is a full-featured, robust, well-documented remote-mail
165retrieval and forwarding utility intended to be used over on-demand
166TCP/IP links (such as SLIP or PPP connections). It supports every
167remote-mail protocol now in use on the Internet: POP2, POP3, RPOP, APOP,
168KPOP, all flavors of IMAP, ETRN, and ODMR. It can even support IPv6
169and IPSEC.
170
171Fetchmail retrieves mail from remote mail servers and forwards it via SMTP,
172so it can then be read by normal mail user agents such as mutt, elm
173or BSD Mail. It allows all your system MTA's filtering, forwarding, and
174aliasing facilities to work just as they would on normal mail.")
175 (license gpl2+))) ; most files are actually public domain or x11
13f04f48
AE
176
177(define-public mutt
178 (package
179 (name "mutt")
17130e39 180 (version "1.6.0")
13f04f48
AE
181 (source (origin
182 (method url-fetch)
d82633d0
AE
183 (uri (string-append "ftp://ftp.mutt.org/pub/mutt/mutt-"
184 version ".tar.gz"))
13f04f48
AE
185 (sha256
186 (base32
17130e39 187 "06bc2drbgalkk68rzg7hq2v5m5qgjxff5357wg0419dpi8ivdbr9"))
fc1adab1 188 (patches (search-patches "mutt-store-references.patch"))))
13f04f48
AE
189 (build-system gnu-build-system)
190 (inputs
4fd6bf53 191 `(("cyrus-sasl" ,cyrus-sasl)
b0bb0136 192 ("gdbm" ,gdbm)
524e1df6 193 ("gpgme" ,gpgme)
4fd6bf53 194 ("ncurses" ,ncurses)
13f04f48
AE
195 ("openssl" ,openssl)
196 ("perl" ,perl)))
197 (arguments
198 `(#:configure-flags '("--enable-smtp"
199 "--enable-imap"
200 "--enable-pop"
524e1df6 201 "--enable-gpgme"
b0bb0136 202 "--enable-hcache" ; for header caching
13f04f48 203 "--with-ssl"
4fd6bf53 204 "--with-sasl"
13f04f48
AE
205 ;; so that mutt does not check whether the path
206 ;; exists, which it does not in the chroot
207 "--with-mailpath=/var/mail")))
208 (home-page "http://www.mutt.org/")
209 (synopsis "Mail client")
210 (description
211 "Mutt is a small but very powerful text-based mail client for Unix
212operating systems.")
213 (license gpl2+)))
681a6588
MW
214
215(define-public gmime
216 (package
217 (name "gmime")
cc955356 218 (version "2.6.20")
681a6588
MW
219 (source (origin
220 (method url-fetch)
75630043 221 (uri (string-append "mirror://gnome/sources/gmime/"
29a7c98a 222 (version-major+minor version)
681a6588
MW
223 "/gmime-" version ".tar.xz"))
224 (sha256
225 (base32
cc955356 226 "0rfzbgsh8ira5p76kdghygl5i3fvmmx4wbw5rp7f8ajc4vxp18g0"))))
681a6588
MW
227 (build-system gnu-build-system)
228 (native-inputs
229 `(("pkg-config" ,pkg-config)
230 ("gnupg" ,gnupg))) ; for tests only
231 (inputs `(("glib" ,glib)
232 ("gpgme" ,gpgme)
233 ("zlib" ,zlib)))
234 (arguments
235 `(#:phases
cc955356
EF
236 (modify-phases %standard-phases
237 (add-after
238 'unpack 'patch-paths-in-tests
239 (lambda _
240 ;; The test programs run several programs using 'system' with
241 ;; hard-coded paths. Here we patch them all. We also change "gpg"
242 ;; to "gpg2". We use ISO-8859-1 here because test-iconv.c contains
243 ;; raw byte sequences in several different encodings.
244 (with-fluids ((%default-port-encoding #f))
245 (substitute* (find-files "tests" "\\.c$")
246 (("(system *\\(\")(/[^ ]*)" all pre prog-path)
247 (let* ((base (basename prog-path))
248 (prog (which (if (string=? base "gpg") "gpg2" base))))
249 (string-append pre
250 (or prog (error "not found: " base))))))))))))
681a6588
MW
251 (home-page "http://spruce.sourceforge.net/gmime/")
252 (synopsis "MIME message parser and creator library")
253 (description
254 "GMime provides a core library and set of utilities which may be used for
255the creation and parsing of messages using the Multipurpose Internet Mail
256Extension (MIME).")
257 (license (list lgpl2.1+ gpl2+ gpl3+))))
258
a7e59c50
LC
259(define-public bogofilter
260 (package
261 (name "bogofilter")
262 (version "1.2.4")
263 (source (origin
264 (method url-fetch)
265 (uri (string-append "mirror://sourceforge/bogofilter/bogofilter-"
266 version "/bogofilter-"
267 version ".tar.bz2"))
268 (sha256
269 (base32
270 "1d56n2m9inm8gnzm88aa27xl2a7sp7aff3484vmflpqkinjqf0p1"))))
271 (build-system gnu-build-system)
272 (arguments
273 '(#:phases (alist-cons-before
274 'check 'pre-check
275 (lambda _
276 (substitute* "src/tests/t.frame"
277 (("GREP=/bin/grep")
278 (string-append "GREP=" (which "grep") "\n"))))
279 %standard-phases)))
280 (native-inputs `(("flex" ,flex)))
281 (inputs `(("bdb" ,bdb)))
282 (home-page "http://bogofilter.sourceforge.net/")
283 (synopsis "Mail classifier based on a Bayesian filter")
284 (description
285 "Bogofilter is a mail filter that classifies mail as spam or ham
286 (non-spam) by a statistical analysis of the message's header and
287content (body). The program is able to learn from the user's classifications
288and corrections. It is based on a Bayesian filter.")
289 (license gpl2)))
290
3919a31a
EB
291(define-public offlineimap
292 (package
293 (name "offlineimap")
87f7625b 294 (version "6.7.0")
3919a31a
EB
295 (source (origin
296 (method url-fetch)
297 (uri (string-append "https://github.com/OfflineIMAP/offlineimap/"
298 "archive/v" version ".tar.gz"))
f586c877 299 (file-name (string-append name "-" version ".tar.gz"))
3919a31a
EB
300 (sha256
301 (base32
87f7625b 302 "0462mal2fxvavxhwjk1a6vsnspx07yniifa687dwg46aplqznin4"))))
3919a31a
EB
303 (build-system python-build-system)
304 (native-inputs `(("python" ,python-2)))
42aa73b3 305 (inputs `(("python2-pysqlite" ,python2-pysqlite)))
3919a31a
EB
306 (arguments
307 ;; The setup.py script expects python-2.
308 `(#:python ,python-2
309 ;; Tests require a modifiable IMAP account.
42aa73b3
EF
310 #:tests? #f
311 #:phases
312 (modify-phases %standard-phases
313 (add-after 'install 'wrap-binary
314 (lambda* (#:key inputs outputs #:allow-other-keys)
315 (let* ((out (assoc-ref outputs "out"))
316 (bin (string-append out "/bin/offlineimap")))
317 (wrap-program bin
318 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
319 #t))))))
3919a31a 320 (home-page "http://www.offlineimap.org")
31e98ca6 321 (synopsis "Sync emails between two repositories")
3919a31a
EB
322 (description
323 "OfflineImap synchronizes emails between two repositories, so that you
324can read the same mailbox from multiple computers. It supports IMAP as REMOTE
325repository and Maildir/IMAP as LOCAL repository.")
7886e23b 326 (license gpl2+)))
3919a31a 327
c21317d4
LC
328(define %mu-gtester-patch
329 ;; Ensure tests have unique names, to placate GLib 2.6's gtester.
330 (origin
331 (method url-fetch)
332 (uri "https://github.com/djcb/mu/commit/b44039ed.patch")
333 (sha256
334 (base32
335 "165hryqqhx3wah8a4f5jaq465azx1pm9r4jid7880pys9gd88qlv"))))
336
d2938d59
EB
337(define-public mu
338 (package
339 (name "mu")
c284e78f 340 (version "0.9.13")
d2938d59
EB
341 (source (origin
342 (method url-fetch)
922eaede 343 (uri (string-append "https://github.com/djcb/mu/archive/v"
d2938d59 344 version ".tar.gz"))
922eaede 345 (file-name (string-append "mu-" version ".tar.gz"))
d2938d59
EB
346 (sha256
347 (base32
c21317d4
LC
348 "0wj33pma8xgjvn2akk7khzbycwn4c9sshxvzdph9dnpy7gyqxj51"))
349 (patches (list %mu-gtester-patch))))
d2938d59
EB
350 (build-system gnu-build-system)
351 (native-inputs
352 `(("pkg-config" ,pkg-config)
9fd571a2 353 ("glib" ,glib "bin") ; for gtester
922eaede
PW
354 ("autoconf" ,autoconf)
355 ("automake" ,automake)
356 ("libtool" ,libtool)
d2938d59
EB
357 ("texinfo" ,texinfo)))
358 ;; TODO: Add webkit and gtk to build the mug GUI.
359 (inputs
360 `(("xapian" ,xapian)
2d32d153 361 ("emacs" ,emacs-no-x)
d2938d59
EB
362 ("guile" ,guile-2.0)
363 ("glib" ,glib)
364 ("gmime" ,gmime)
365 ("tzdata" ,tzdata))) ;for mu/test/test-mu-query.c
366 (arguments
922eaede
PW
367 '(#:phases (alist-cons-after
368 'unpack 'autoreconf
369 (lambda _
370 (zero? (system* "autoreconf" "-vi")))
371 (alist-cons-before
372 'check 'check-tz-setup
373 (lambda* (#:key inputs #:allow-other-keys)
374 ;; For mu/test/test-mu-query.c
375 (setenv "TZDIR"
376 (string-append (assoc-ref inputs "tzdata")
377 "/share/zoneinfo")))
378 %standard-phases))))
d2938d59
EB
379 (home-page "http://www.djcbsoftware.nl/code/mu/")
380 (synopsis "Quickly find emails")
381 (description
382 "Mu is a tool for dealing with e-mail messages stored in the
383Maildir-format. Mu's purpose in life is to help you to quickly find the
384messages you need; in addition, it allows you to view messages, extract
385attachments, create new maildirs, and so on.")
386 (license gpl3+)))
387
1bd3f849
DT
388(define-public notmuch
389 (package
390 (name "notmuch")
866fade9 391 (version "0.21")
1bd3f849
DT
392 (source (origin
393 (method url-fetch)
866fade9 394 (uri (string-append "https://notmuchmail.org/releases/notmuch-"
1bd3f849
DT
395 version ".tar.gz"))
396 (sha256
397 (base32
866fade9 398 "1cr53rbpkcy3pvrmhbg2gq7sjpwb0c8xd7a4zhzxbiv8s7z8yvyh"))))
1bd3f849
DT
399 (build-system gnu-build-system)
400 (arguments
866fade9
EF
401 '(#:tests? #f ;; FIXME: 662 tests; 168 fail and 99 are skipped
402 ;; with perl input: 50 fail and 99 are skipped
eb537f57
DT
403 #:phases (modify-phases %standard-phases
404 (replace 'configure
405 (lambda* (#:key outputs #:allow-other-keys)
406 (setenv "CC" "gcc")
407 (setenv "CONFIG_SHELL" (which "sh"))
ee886454 408
eb537f57
DT
409 (let ((out (assoc-ref outputs "out")))
410 (zero? (system* "./configure"
411 (string-append "--prefix=" out)))))))))
1bd3f849 412 (native-inputs
ee886454
MW
413 `(("pkg-config" ,pkg-config)
414 ("python" ,python-2)
eb537f57
DT
415 ("python-docutils" ,python2-docutils)
416 ("python-sphinx" ,python2-sphinx)
ee886454 417 ("bash-completion" ,bash-completion)))
1bd3f849
DT
418 (inputs
419 `(("emacs" ,emacs)
420 ("glib" ,glib)
421 ("gmime" ,gmime)
422 ("talloc" ,talloc)
423 ("xapian" ,xapian)
424 ("zlib" ,zlib)))
425 (home-page "http://notmuchmail.org/")
426 (synopsis "Thread-based email index, search, and tagging")
427 (description
428 "Notmuch is a command-line based program for indexing, searching, read-
429ing, and tagging large collections of email messages.")
430 (license gpl3+)))
431
8a75c589
AM
432(define-public notmuch-addrlookup-c
433 (package
434 (name "notmuch-addrlookup-c")
435 (version "7")
436 (source (origin
437 (method url-fetch)
438 (uri (string-append
439 "https://github.com/aperezdc/" name "/archive/v"
440 version ".tar.gz"))
441 (file-name (string-append name "-" version ".tar.gz"))
442 (sha256
443 (base32
444 "0rslg2ifgyhl6asv3yr1f62m9xjfcinv7i6qb07h2k217jqlmrri"))))
445 (build-system gnu-build-system)
446 (arguments
447 '(#:tests? #f ; no tests
448 #:make-flags (list "CC=gcc"
449 (string-append "PREFIX="
450 (assoc-ref %outputs "out")))
451 #:phases (modify-phases %standard-phases
452 (delete 'configure)
453 ;; Remove vim code completion config, it's not needed to
454 ;; build (or be patched).
455 (add-before 'patch-source-shebangs 'delete-ycm-file
456 (lambda _ (delete-file ".ycm_extra_conf.py")))
457 (replace 'install
458 (lambda* (#:key outputs #:allow-other-keys)
459 (let ((bin (string-append
460 (assoc-ref outputs "out") "/bin")))
461 (install-file "notmuch-addrlookup" bin)))))))
462 (native-inputs
463 `(("pkg-config" ,pkg-config)))
464 (inputs
465 `(("glib" ,glib)
466 ("notmuch" ,notmuch)))
467 (home-page "https://github.com/aperezdc/notmuch-addrlookup-c")
468 (synopsis "Address lookup tool for Notmuch")
469 (description "This is an address lookup tool using a Notmuch database,
470useful for email address completion.")
471 (license license:expat)))
472
1c74da21
LC
473(define-public python2-notmuch
474 (package
475 (name "python2-notmuch")
476 (version "0.15.2")
477 (source (origin
478 (method url-fetch)
479 (uri (string-append
480 "https://pypi.python.org/packages/source/n/notmuch/notmuch-"
481 version
482 ".tar.gz"))
483 (sha256
484 (base32
485 "18g8701ibr153ngsz258kgcd42wqnbf9ifpqig1bijy6b0zx9xn5"))))
486 (build-system python-build-system)
487 (inputs `(("notmuch" ,notmuch)))
488 (arguments
489 `(#:python ,python-2
490 #:phases (modify-phases %standard-phases
491 (add-before
492 'build 'set-libnotmuch-file-name
493 (lambda* (#:key inputs #:allow-other-keys)
494 (let ((notmuch (assoc-ref inputs "notmuch")))
495 (substitute* "notmuch/globals.py"
496 (("libnotmuch\\.so\\.[0-9]")
497 (string-append notmuch "/lib/libnotmuch.so.4")))
498 #t))))
499 #:tests? #f)) ;no "test" target
500 (home-page "http://notmuchmail.org/")
501 (synopsis "Python bindings of the Notmuch mail indexing library")
502 (description
503 "This package provides Python bindings to use the Notmuch mail indexing
504and search library.")
505 (license gpl3+)))
506
98e9e22f
SB
507(define-public getmail
508 (package
509 (name "getmail")
aadf4625 510 (version "4.48.0")
98e9e22f
SB
511 (source
512 (origin
513 (method url-fetch)
514 (uri (string-append "http://pyropus.ca/software/getmail/old-versions/"
515 name "-" version ".tar.gz"))
516 (sha256
517 (base32
aadf4625 518 "0k5rm5kag14izng2ajcagvli9sns5mzvkyfa65ri4xymxs91wi29"))))
98e9e22f
SB
519 (build-system python-build-system)
520 (arguments
521 `(#:tests? #f ; no tests
522 #:python ,python-2))
523 (home-page "http://pyropus.ca/software/getmail/")
524 (synopsis "Mail retriever")
525 (description
526 "A flexible, extensible mail retrieval system with support for
527POP3, IMAP4, SSL variants of both, maildirs, mboxrd files, external MDAs,
528arbitrary message filtering, single-user and domain-mailboxes, and many other
529useful features.")
530
531 ;; License is specified in file '__init__.py'.
532 (license gpl2)))
533
f58f767b
JL
534(define-public libetpan
535 (package
536 (name "libetpan")
537 (version "1.6")
538 (source (origin
539 (method url-fetch)
540 (uri (string-append "https://github.com/dinhviethoa/" name
541 "/archive/" version ".tar.gz"))
f586c877 542 (file-name (string-append name "-" version ".tar.gz"))
f58f767b
JL
543 (sha256
544 (base32 "05qyqx2c1ppb1jnrs3m52i60f9xlxfxdmb9dnwg4vqjv8kwv2qkr"))))
545 (build-system gnu-build-system)
546 (native-inputs `(("autoconf" ,(autoconf-wrapper))
547 ("automake" ,automake)
3246cc91 548 ("libtool" ,libtool)
f58f767b
JL
549 ("pkg-config" ,pkg-config)))
550 (propagated-inputs
551 ;; 'libetpan-config --libs' returns '-lssl -lcrypto -lsasl2', so these
552 ;; libraries need to be propagated.
553 `(("cyrus-sasl" ,cyrus-sasl)
554 ("openssl" ,openssl)))
555 (inputs
556 `(("curl" ,curl)
557 ("expat" ,expat)))
558 (arguments
722ec722
MW
559 '(#:phases (alist-cons-after
560 'unpack 'autogen
f58f767b 561 (lambda _
722ec722
MW
562 (setenv "NOCONFIGURE" "true")
563 (zero? (system* "sh" "autogen.sh")))
f58f767b
JL
564 %standard-phases)
565 #:configure-flags
566 '("--disable-static" "--disable-db")))
567 (home-page "http://www.etpan.org/libetpan.html")
568 (synopsis "Portable middleware for email access")
569 (description
570 "The purpose of this mail library is to provide a portable, efficient
571framework for different kinds of mail access: IMAP, SMTP, POP and NNTP. It
572provides an API for C language. It's the low-level API used by MailCore and
573MailCore 2.")
166191b3 574 (license (non-copyleft "file://COPYING"))))
f58f767b 575
e8435c4d
JL
576(define-public claws-mail
577 (package
578 (name "claws-mail")
21565719 579 (version "3.13.2")
e8435c4d
JL
580 (source (origin
581 (method url-fetch)
582 (uri (string-append
762b1971 583 "http://www.claws-mail.org/releases/" name "-" version
6ea4b094 584 ".tar.xz"))
e8435c4d 585 (sha256
ec92806a 586 (base32
21565719 587 "1l8ankx0qpq1ix1an8viphcf11ksh53jsrm1xjmq8cjbh5910wva"))))
e8435c4d
JL
588 (build-system gnu-build-system)
589 (native-inputs `(("pkg-config" ,pkg-config)))
590 (inputs `(("bogofilter" ,bogofilter)
591 ("curl" ,curl)
592 ("dbus-glib" ,dbus-glib)
e8435c4d
JL
593 ("enchant" ,enchant)
594 ("expat" ,expat)
595 ("ghostscript" ,ghostscript)
596 ("hicolor-icon-theme" ,hicolor-icon-theme)
597 ("gnupg" ,gnupg)
598 ("gnutls" ,gnutls)
599 ("gpgme" ,gpgme)
600 ("gtk" ,gtk+-2)
601 ("libarchive" ,libarchive)
602 ("libcanberra" ,libcanberra)
603 ("libetpan" ,libetpan)
604 ("libnotify" ,libnotify)
605 ("libsm" ,libsm)
606 ("libxml2" ,libxml2)
607 ("perl" ,perl)
608 ("python-2" ,python-2)))
609 (arguments
610 '(#:configure-flags
611 '("--enable-gnutls" "--enable-pgpmime-plugin" "--enable-enchant")))
612 (synopsis "GTK-based Email client")
613 (description
614 "Claws-Mail is an email client (and news reader) based on GTK+. The
615appearance and interface are designed to be familiar to new users coming from
616other popular email clients, as well as experienced users. Almost all commands
617are accessible with the keyboard. Plus, Claws-Mail is extensible via addons
618which can add many functionalities to the base client.")
619 (home-page "http://www.claws-mail.org/")
620 (license gpl3+))) ; most files are actually public domain or x11
621
d6e941bc
622(define-public msmtp
623 (package
624 (name "msmtp")
72d8b5ba 625 (version "1.6.3")
d6e941bc
626 (source
627 (origin
628 (method url-fetch)
629 (uri (string-append
4c60ce4a 630 "mirror://sourceforge/msmtp/msmtp-" version ".tar.xz"))
d6e941bc 631 (sha256 (base32
72d8b5ba 632 "0mbkflxv2swjz4185inis83v6pxcblpmapwjhgpc6wh7kh3bx0pr"))))
d6e941bc
633 (build-system gnu-build-system)
634 (inputs
635 `(("libidn" ,libidn)
72d8b5ba 636 ("libsecret" ,libsecret)
d6e941bc
637 ("gnutls" ,gnutls)
638 ("zlib" ,zlib)
639 ("gsasl" ,gsasl)))
640 (native-inputs
641 `(("pkg-config" ,pkg-config)))
642 (home-page "http://msmtp.sourceforge.net/")
643 (arguments
644 `(#:configure-flags (list "--with-libgsasl"
645 "--with-libidn"
823e2ed4
LF
646 "--with-tls=gnutls")
647 #:phases
648 (modify-phases %standard-phases
649 (add-after 'install 'install-msmtpq
650 (lambda* (#:key outputs #:allow-other-keys)
651 (let* ((out (assoc-ref outputs "out"))
652 (bin (string-append out "/bin"))
653 (doc (string-append out "/share/doc/msmtp"))
654 (msmtpq (string-append "scripts/msmtpq")))
655 (install-file (string-append msmtpq "/msmtpq") bin)
656 (install-file (string-append msmtpq "/msmtp-queue") bin)
657 (install-file (string-append msmtpq "/README.msmtpq") doc)
658 #t))))))
d6e941bc
659 (synopsis
660 "Simple and easy to use SMTP client with decent sendmail compatibility")
661 (description
662 "msmtp is an SMTP client. In the default mode, it transmits a mail to
663an SMTP server (for example at a free mail provider) which takes care of further
664delivery.")
665 (license gpl3+)))
666
66cc3ab2
TUBK
667(define-public exim
668 (package
669 (name "exim")
c7658f8f 670 (version "4.86.2")
66cc3ab2
TUBK
671 (source
672 (origin
673 (method url-fetch)
fc6fdc05
LF
674 (uri (list (string-append "ftp://ftp.exim.org/pub/exim/exim4/exim-"
675 version ".tar.bz2")
676 (string-append "ftp://ftp.exim.org/pub/exim/exim4/old/exim-"
677 version ".tar.bz2")))
66cc3ab2 678 (sha256
513f8ab4 679 (base32
c7658f8f 680 "1cvfcc1hi60lydv8h3a2rxlfc0v2nflwpvzjj7h7cdsqs2pxwmkp"))))
66cc3ab2
TUBK
681 (build-system gnu-build-system)
682 (inputs
683 `(("bdb" ,bdb)
684 ("gnutls" ,gnutls)
685 ("gzip" ,gzip)
686 ("bzip2" ,bzip2)
687 ("xz" ,xz)
688 ("pcre" ,pcre)
689 ("perl" ,perl)
690 ("libxt" ,libxt)
691 ("libxaw" ,libxaw)))
692 (native-inputs
693 `(("perl" ,perl)))
694 (arguments
695 '(#:phases
696 (alist-replace
697 'configure
698 ;; We'd use #:make-flags but the top-level Makefile calls others
699 ;; recursively, so just set all variables this way.
700 (lambda* (#:key outputs inputs #:allow-other-keys)
701 (substitute* '("Makefile" "OS/Makefile-Default")
702 (("(RM_COMMAND=).*" all var)
703 (string-append var "rm\n")))
704 (copy-file "src/EDITME" "Local/Makefile")
705 (copy-file "exim_monitor/EDITME" "Local/eximon.conf")
706 (let ((out (assoc-ref outputs "out"))
707 (gzip (assoc-ref inputs "gzip"))
708 (bzip2 (assoc-ref inputs "bzip2"))
709 (xz (assoc-ref inputs "xz")))
710 (substitute* '("Local/Makefile")
711 (("(BIN_DIRECTORY=).*" all var)
712 (string-append var out "/bin\n"))
713 (("(CONFIGURE_FILE=).*" all var)
714 (string-append var out "/etc/exim.conf\n"))
715 (("(EXIM_USER=).*" all var)
716 (string-append var "nobody\n"))
717 (("(FIXED_NEVER_USERS=).*" all var)
718 (string-append var "\n")) ;XXX no root in build environment
719 (("(COMPRESS_COMMAND=).*" all var)
720 (string-append var gzip "/bin/gzip\n"))
721 (("(ZCAT_COMMAND=).*" all var)
722 (string-append var gzip "/bin/zcat\n")))
723 ;; This file has hardcoded names for tools despite the zcat
724 ;; configuration above.
725 (substitute* '("src/exigrep.src")
726 (("'zcat'") (string-append "'" gzip "/bin/zcat'"))
727 (("'bzcat'") (string-append "'" bzip2 "/bin/bzcat'"))
728 (("'xzcat'") (string-append "'" xz "/bin/xzcat'"))
729 (("'lzma'") (string-append "'" xz "/bin/lzma'")))))
730 (alist-cons-before
731 'build 'fix-sh-paths
732 (lambda* (#:key inputs #:allow-other-keys)
733 (substitute* '("scripts/lookups-Makefile" "scripts/reversion")
734 (("SHELL=/bin/sh") "SHELL=sh"))
735 (substitute* '("scripts/Configure-config.h")
736 (("\\| /bin/sh") "| sh"))
737 (let ((bash (assoc-ref inputs "bash")))
738 (substitute* '("scripts/Configure-eximon")
739 (("#!/bin/sh") (string-append "#!" bash "/bin/sh")))))
740 %standard-phases))
741 #:make-flags '("INSTALL_ARG=-no_chown")
742 ;; No 'check' target.
743 #:tests? #f))
744 (home-page "http://www.exim.org/")
745 (synopsis
746 "Message Transfer Agent (MTA) developed at the University of Cambridge")
747 (description
748 "Exim is a message transfer agent (MTA) developed at the University of
749Cambridge for use on Unix systems connected to the Internet. In style it is
750similar to Smail 3, but its facilities are more general. There is a great
751deal of flexibility in the way mail can be routed, and there are extensive
752facilities for checking incoming mail.")
753 (license gpl2+)))
754
7d2b784b
MW
755(define-public dovecot
756 (package
757 (name "dovecot")
9832ecf0 758 (version "2.2.19")
7d2b784b
MW
759 (source
760 (origin
761 (method url-fetch)
762 (uri (string-append "http://www.dovecot.org/releases/"
763 (version-major+minor version) "/"
764 name "-" version ".tar.gz"))
765 (sha256 (base32
9832ecf0 766 "17sf5aancad4pg1vx1606k99389wg76blpqzmnmxlz4hklzix7km"))))
7d2b784b
MW
767 (build-system gnu-build-system)
768 (native-inputs
769 `(("pkg-config" ,pkg-config)))
770 (inputs
771 `(("openssl" ,openssl)
772 ("zlib" ,zlib)
773 ("bzip2" ,bzip2)
fd5c70f8
AW
774 ("sqlite" ,sqlite)
775 ("linux-pam" ,linux-pam)))
7d2b784b
MW
776 (arguments
777 `(#:configure-flags '("--sysconfdir=/etc"
778 "--localstatedir=/var")
779 #:phases (modify-phases %standard-phases
780 (add-before
781 'configure 'pre-configure
782 (lambda _
783 ;; Simple hack to avoid installing in /etc
784 (substitute* '("doc/Makefile.in"
785 "doc/example-config/Makefile.in")
786 (("pkgsysconfdir = .*")
787 "pkgsysconfdir = /tmp/etc"))
788 #t)))))
789 (home-page "http://www.dovecot.org")
790 (synopsis "Secure POP3/IMAP server")
791 (description
792 "Dovecot is a mail server whose major goals are security and reliability.
793It supports mbox/Maildir and its own dbox/mdbox formats.")
794 ;; Most source files are covered by either lgpl2.1 or expat. The SHA code
795 ;; is covered by a variant of BSD-3, and UnicodeData.txt is covered by the
796 ;; Unicode, Inc. License Agreement for Data Files and Software.
797 (license (list lgpl2.1 license:expat (non-copyleft "file://COPYING")))))
798
81ce19f4
799(define-public isync
800 (package
801 (name "isync")
2c3d13fe 802 (version "1.2.1")
81ce19f4
803 (source
804 (origin
805 (method url-fetch)
806 (uri (string-append "mirror://sourceforge/isync/isync/"
807 version "/isync-" version ".tar.gz"))
808 (sha256 (base32
2c3d13fe 809 "1bij6nm06ghkg98n2pdyacam2fyg5y8f7ajw0d5653m0r4ldw5p7"))))
81ce19f4
810 (build-system gnu-build-system)
811 (inputs
812 `(("bdb" ,bdb)
813 ("openssl" ,openssl)))
814 (home-page "http://isync.sourceforge.net/")
815 (synopsis "Mailbox synchronization program")
816 (description
817 "isync/mbsync is command line tool for two-way synchronization of
818mailboxes. Currently Maildir and IMAP are supported types.")
819 (license gpl2+)))
820
26b8de19
EB
821(define-public perl-email-abstract
822 (package
823 (name "perl-email-abstract")
824 (version "3.008")
825 (source
826 (origin
827 (method url-fetch)
828 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
829 "Email-Abstract-" version ".tar.gz"))
830 (sha256
831 (base32
832 "0h42rhvp769wb421cpbbg6v6xjp8iv86mvz70pqgfgf4nsn6jwgw"))))
833 (build-system perl-build-system)
834 (propagated-inputs
835 `(("perl-email-simple" ,perl-email-simple)
a2190ccc 836 ("perl-module-pluggable" ,perl-module-pluggable)
26b8de19
EB
837 ("perl-mro-compat" ,perl-mro-compat)))
838 (home-page "http://search.cpan.org/dist/Email-Abstract")
839 (synopsis "Interface to mail representations")
840 (description "Email::Abstract provides module writers with the ability to
841write simple, representation-independent mail handling code.")
842 (license (package-license perl))))
843
ebda902f
EB
844(define-public perl-email-address
845 (package
846 (name "perl-email-address")
847 (version "1.907")
848 (source
849 (origin
850 (method url-fetch)
851 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
852 "Email-Address-" version ".tar.gz"))
853 (sha256
854 (base32
855 "1ai4r149pzjv9dc2vddir8zylj0z1pii93rm4g591lx7avim71hx"))))
856 (build-system perl-build-system)
857 (home-page "http://search.cpan.org/dist/Email-Address")
858 (synopsis "Email address parsing and creation")
859 (description "Email::Address implements a regex-based RFC 2822 parser that
860locates email addresses in strings and returns a list of Email::Address
861objects found. Alternatively you may construct objects manually.")
862 (license (package-license perl))))
863
aa86a3be
EB
864(define-public perl-email-date-format
865 (package
866 (name "perl-email-date-format")
867 (version "1.005")
868 (source
869 (origin
870 (method url-fetch)
871 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
872 "Email-Date-Format-" version ".tar.gz"))
873 (sha256
874 (base32
875 "012ivfwpnbl3wr50f9c6f4azhdlxnm31pdn72528g79v61z6372p"))))
876 (build-system perl-build-system)
877 (home-page "http://search.cpan.org/dist/Email-Date-Format")
878 (synopsis "Produce RFC 2822 date strings")
879 (description "Email::Date::Format provides a means for generating an RFC
8802822 compliant datetime string.")
881 (license (package-license perl))))
882
08bf7095
EB
883(define-public perl-email-messageid
884 (package
885 (name "perl-email-messageid")
886 (version "1.405")
887 (source
888 (origin
889 (method url-fetch)
890 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
891 "Email-MessageID-" version ".tar.gz"))
892 (sha256
893 (base32
894 "09216naz21x99ff33wdm3j3zq1zhdbxhrsmx8bvavjrw3gjsvrq3"))))
895 (build-system perl-build-system)
896 (home-page "http://search.cpan.org/dist/Email-MessageID")
897 (synopsis "Generate world unique message-ids")
898 (description "Email::MessageID generates recommended message-ids to
899identify a message uniquely.")
900 (license (package-license perl))))
901
0a4c49f6
EB
902(define-public perl-email-mime
903 (package
904 (name "perl-email-mime")
905 (version "1.929")
906 (source
907 (origin
908 (method url-fetch)
909 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
910 "Email-MIME-" version ".tar.gz"))
911 (sha256
912 (base32
913 "1sf7dldg4dvicyw6dl1vx6s1gjq3fcppi0103ikl0vi6v5xjdjdh"))))
914 (build-system perl-build-system)
915 (propagated-inputs
916 `(("perl-email-address" ,perl-email-address)
917 ("perl-email-messageid" ,perl-email-messageid)
918 ("perl-email-mime-contenttype" ,perl-email-mime-contenttype)
919 ("perl-email-mime-encodings" ,perl-email-mime-encodings)
920 ("perl-email-simple" ,perl-email-simple)
921 ("perl-mime-types" ,perl-mime-types)))
922 (home-page "http://search.cpan.org/dist/Email-MIME")
923 (synopsis "MIME message handling")
924 (description "Email::MIME is an extension of the Email::Simple module, to
925handle MIME encoded messages. It takes a message as a string, splits it up
926into its constituent parts, and allows you access to various parts of the
927message. Headers are decoded from MIME encoding.")
928 (license (package-license perl))))
929
55025bb5
EB
930(define-public perl-email-mime-contenttype
931 (package
932 (name "perl-email-mime-contenttype")
933 (version "1.017")
934 (source
935 (origin
936 (method url-fetch)
937 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
938 "Email-MIME-ContentType-" version ".tar.gz"))
939 (sha256
940 (base32
941 "1cl1l97lg690dh7i704hqi7yhxalq1chy7ylld5yc5v38jqa6gcn"))))
942 (build-system perl-build-system)
943 (native-inputs
944 `(("perl-capture-tiny" ,perl-capture-tiny)))
945 (home-page "http://search.cpan.org/dist/Email-MIME-ContentType")
946 (synopsis "Parse MIME Content-Type headers")
947 (description "Email::MIME::ContentType parses a MIME Content-Type
948header.")
949 (license (package-license perl))))
950
02e29936
EB
951(define-public perl-email-mime-encodings
952 (package
953 (name "perl-email-mime-encodings")
954 (version "1.315")
955 (source
956 (origin
957 (method url-fetch)
958 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
959 "Email-MIME-Encodings-" version ".tar.gz"))
960 (sha256
961 (base32
962 "0p5b8g9gh35m8fqrpx60g4bp98rvwd02n5b0vm9wh7mk0xah8wac"))))
963 (build-system perl-build-system)
964 (native-inputs
965 `(("perl-capture-tiny" ,perl-capture-tiny)))
966 (home-page "http://search.cpan.org/dist/Email-MIME-Encodings")
967 (synopsis "Unified interface to MIME encoding and decoding")
968 (description "This module wraps MIME::Base64 and MIME::QuotedPrint.")
969 (license (package-license perl))))
970
a24c5420
EB
971(define-public perl-email-sender
972 (package
973 (name "perl-email-sender")
974 (version "1.300016")
975 (source
976 (origin
977 (method url-fetch)
978 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
979 "Email-Sender-" version ".tar.gz"))
980 (sha256
981 (base32
982 "18x26fjh399q3s2g8dajb9r10633c46jrnbvycpnpclgnzhjs100"))))
983 (build-system perl-build-system)
984 (native-inputs
985 `(("perl-capture-tiny" ,perl-capture-tiny)))
986 (propagated-inputs
987 `(("perl-email-abstract" ,perl-email-abstract)
988 ("perl-email-address" ,perl-email-address)
989 ("perl-email-simple" ,perl-email-simple)
990 ("perl-list-moreutils" ,perl-list-moreutils)
991 ("perl-module-runtime" ,perl-module-runtime)
992 ("perl-moo" ,perl-moo)
993 ("perl-moox-types-mooselike" ,perl-moox-types-mooselike)
994 ("perl-sub-exporter" ,perl-sub-exporter)
995 ("perl-throwable" ,perl-throwable)
996 ("perl-try-tiny" ,perl-try-tiny)))
997 (home-page "http://search.cpan.org/dist/Email-Sender")
998 (synopsis "Perl library for sending email")
999 (description "Email::Sender replaces the old and sometimes problematic
1000Email::Send library.")
1001 (license (package-license perl))))
1002
151ef3ed
EB
1003(define-public perl-email-simple
1004 (package
1005 (name "perl-email-simple")
1006 (version "2.206")
1007 (source
1008 (origin
1009 (method url-fetch)
1010 (uri (string-append "mirror://cpan/authors/id/R/RJ/RJBS/"
1011 "Email-Simple-" version ".tar.gz"))
1012 (sha256
1013 (base32
1014 "19dpy3j5na2k9qw1jcpc8ia25038068r9j1bn34f9yyrisz7s522"))))
1015 (build-system perl-build-system)
1016 (propagated-inputs
1017 `(("perl-email-date-format" ,perl-email-date-format)))
1018 (home-page "http://search.cpan.org/dist/Email-Simple")
1019 (synopsis "Parsing of RFC 2822 messages")
1020 (description "Email::Simple provides simple parsing of RFC 2822 message
1021format and headers.")
1022 (license (package-license perl))))
1023
f5dceecb
AW
1024(define-public libesmtp
1025 (package
1026 (name "libesmtp")
1027 (version "1.0.6")
1028 (source
1029 (origin
1030 (method url-fetch)
1031 (uri (string-append "http://www.stafford.uklinux.net/libesmtp/libesmtp-"
1032 version ".tar.bz2"))
1033 (sha256
1034 (base32
1035 "02zbniyz7qys1jmx3ghx21kxmns1wc3hmv80gp7ag7yra9f1m9nh"))))
1036 (build-system gnu-build-system)
1037 (propagated-inputs
1038 `(("openssl" ,openssl)))
1039 (home-page "http://www.stafford.uklinux.net/libesmtp/")
1040 (synopsis "Library for sending mail via remote hosts using SMTP")
1041 (description "libESMTP is an SMTP client which manages posting (or
1042submission of) electronic mail via a preconfigured Mail Transport Agent (MTA).
1043It may be used as part of a Mail User Agent (MUA) or other program that must
1044be able to post electronic mail where mail functionality may not be that
1045program's primary purpose.")
1046 (license (list lgpl2.1+ gpl2+))))
1047
f8ae32a2
AW
1048(define-public esmtp
1049 (package
1050 (name "esmtp")
1051 (version "1.2")
1052 (source
1053 (origin
1054 (method git-fetch)
1055 (uri (git-reference
1056 (url "https://github.com/andywingo/esmtp.git")
1057 (commit "01bf9fc")))
1058 (sha256
1059 (base32
1060 "1ay282rrl92h0m0m8z5zzjnwiiagi7c78aq2qvhia5mw7prwfyw2"))
1061 (file-name (string-append name "-" version "-checkout"))))
1062 (arguments
1063 `(#:phases (modify-phases %standard-phases
1064 (add-before
1065 'configure 'autoconf
1066 (lambda _ (zero? (system* "autoreconf" "-vfi")))))))
1067 (build-system gnu-build-system)
1068 (native-inputs
1069 `(("bison" ,bison)
1070 ("flex" ,flex)
1071 ("autoconf" ,autoconf)
1072 ("automake" ,automake)
1073 ("libtool" ,libtool)))
1074 (inputs
718c5dd6 1075 `(("libesmtp" ,libesmtp)))
f8ae32a2
AW
1076 (home-page "http://sourceforge.net/projects/esmtp/")
1077 (synopsis "Relay-only mail transfer agent (MTA)")
1078 (description "Esmtp is a simple relay-only mail transfer agent built using
1079libESMTP. It sends e-mail via a remote SMTP server using credentials from the
1080user's @file{$HOME/.esmtprc} configuration file; see the @command{esmtprc} man
1081page for more on configuration. This package also provides minimal
1082compatibility shims for the @command{sendmail}, @command{mailq}, and
1083@command{newaliases} commands.")
1084 (license gpl2+)))
1085
34dd26af
CAW
1086(define-public fdm
1087 (package
1088 (name "fdm")
1089 (version "1.9")
1090 (source (origin
1091 (method url-fetch)
1092 (uri (string-append "https://github.com/nicm/fdm/releases/download/"
1093 version "/fdm-"
1094 version ".tar.gz"))
1095 (file-name (string-append name "-" version ".tar.gz"))
1096 (sha256
1097 (base32 "054rscijahiza5f9qha79rg3siji3bk5mk10f8c2vqx7m4w6qh8n"))))
1098 (build-system gnu-build-system)
1099 (inputs
1100 `(("tdb" ,tdb)
1101 ("openssl" ,openssl)
1102 ("zlib" ,zlib)))
1103 (home-page "https://github.com/nicm/fdm")
1104 (synopsis "Mail Retrieval Agent (MRA) and Mail Delivery Agent (MDA)")
1105 (description "fdm is a program designed to fetch mail from POP3
1106or IMAP servers, or receive local mail from stdin, and
1107deliver it in various ways.")
1108 (license
1109 ;; Why point to a source file? Well, all the individual files have a
1110 ;; copy of this license in their headers, but there's no seprate file
1111 ;; with that information.
16966d5b 1112 (non-copyleft "https://github.com/nicm/fdm/blob/master/command.c"))))
34dd26af 1113
e90819c4
LG
1114
1115(define-public procmail
1116 (package
1117 (name "procmail")
1118 (version "3.22")
1119 (source
1120 (origin
1121 (method url-fetch)
1122 (uri (string-append
1123 "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-"
1124 version
1125 ".tar.gz"))
1126 (sha256
1127 (base32
1128 "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08"))
1129 ;; The following patch fixes an ambiguous definition of
1130 ;; getline() in formail.c. The patch is provided by Debian as
1131 ;; patch 24.
fc1adab1 1132 (patches (search-patches "procmail-ambiguous-getline-debian.patch"))))
e90819c4
LG
1133 (arguments
1134 `(#:phases (modify-phases %standard-phases
1135 (replace 'configure
1136 (lambda _
1137 (substitute* "Makefile"
1138 (("/bin/sh")
1139 (which "sh"))
1140 (("/usr")
1141 (assoc-ref %outputs "out"))
1142 (("/bin/rm")
1143 (which "rm")))
1144 #t)))
1145 #:tests? #f)) ;; There are no tests indicating a successful
1146 ;; build. Some tests of basic locking mechanisms provided by the
1147 ;; filesystem are performed during 'make install'. However, these
1148 ;; are performed before the actual build process.
1149 (build-system gnu-build-system)
1150 (inputs `(("glibc" ,glibc)
1151 ("exim" ,exim)))
1152 (home-page "http://www.procmail.org/")
1153 (synopsis "Versatile mail delivery agent (MDA)")
1154 (description "Procmail is a mail delivery agent (MDA) featuring support
1155for a variety of mailbox formats such as mbox, mh and maildir. Incoming mail
1156can be sorted into separate files/directories and arbitrary commands can be
1157executed on mail arrival. Procmail is considered stable, but is no longer
1158maintained.")
1159 (license gpl2+))) ;; procmail allows to choose the
1160 ;; nonfree Artistic License 1.0
1161 ;; as alternative to the GPL2+.
1162 ;; This option is not listed here.
e90819c4 1163
61c30e9d
LF
1164(define-public khard
1165 (package
1166 (name "khard")
1167 (version "0.8.1")
1168 (source (origin
1169 (method url-fetch)
1170 (uri (pypi-uri name version))
1171 (sha256
1172 (base32
1173 "098gs94qmnspdfn6ar8lycx7dbsz9bcff90aps0cmn47mw7llch0"))))
1174 (build-system python-build-system)
1175 (arguments
1176 `(#:python ,python-2 ; only python-2 is supported.
1177 #:phases
1178 (modify-phases %standard-phases
1179 (add-before 'build 'disable-egg-compression
1180 ;; Do not compress the egg.
1181 (lambda _
1182 (let ((port (open-file "setup.cfg" "a")))
1183 (display "\n[easy_install]\nzip_ok = 0\n"
1184 port)
1185 (close-port port)
1186 #t)))
1187 (add-after 'install 'install-doc
1188 (lambda* (#:key outputs #:allow-other-keys)
1189 (let* ((out (assoc-ref outputs "out"))
1190 (doc (string-append out "/share/doc/khard")))
1191 (copy-recursively "misc/khard" doc)))))))
1192 (native-inputs
1193 `(("python2-setuptools" ,python2-setuptools)))
1194 (propagated-inputs
1195 `(("python2-vobject" ,python2-vobject)
1196 ("python2-pyyaml" ,python2-pyyaml)
1197 ("python2-atomicwrites" ,python2-atomicwrites)
1198 ("python2-configobj" ,python2-configobj)))
1199 (synopsis "Console address book using CardDAV")
1200 (description "Khard is an address book for the console. It creates, reads,
1201modifies and removes CardDAV address book entries at your local machine. For
1202synchronizing with a remote address book, @command{vdirsyncer} is recommended.
1203Khard can also be used from within the email client @command{mutt}.")
1204 (home-page "https://github.com/scheibler/khard")
1205 (license gpl3+)))