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