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