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