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