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